Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Model help... Please anyone... it's urgent  (Read 950 times)
adnanbobo
Community Member
*
Posts: 12


« on: April 15, 2008, 03:04:48 PM »

I've been working on a project in 6.3 and I put it in hold because of 1 issue:
The Half Life, Counter Strike and similar games use 2 models for the opponent:

   1. the model of the opponent (for example arctic.mdl)
   2. the model of the weapon with the partial skeleton (in the p_name.mdl format - p_mac10.mdl)

I can't make the weapon be attached to the opponent. Does anyone know how to do that?
Logged
jviper
Community Member
*
Posts: 1281

Discipline in training


« Reply #1 on: April 15, 2008, 09:13:09 PM »

.attachto?  .setparent? .setmatrix?
Logged

JAbstract.....Don't just imagine, make it happen!
JukkaKevät
Customers
Community Member
*****
Posts: 182


« Reply #2 on: April 16, 2008, 01:03:12 AM »

Nadjibus made a nice tutorial for this not long ago.

http://wiki.truevision3d.com/tutorialsarticlesandexamples/bindtoactor
Logged
adnanbobo
Community Member
*
Posts: 12


« Reply #3 on: April 16, 2008, 07:48:51 AM »

Nadjibus made a nice tutorial for this not long ago.

http://wiki.truevision3d.com/tutorialsarticlesandexamples/bindtoactor

Well, that's for 6.5

6.3 doesn't have that command, and 6.5 doesn't support my model format. Thnx for the help though
Logged
nadjibus
Community Member
*
Posts: 97


WWW
« Reply #4 on: April 19, 2008, 07:38:45 AM »

C:\Program Files\TV3D SDK 6.3\VB\Samples\TV3D - AttachToBone

Peace.
Logged


Holy War official website http://www.newvisiongames.com
adnanbobo
Community Member
*
Posts: 12


« Reply #5 on: April 21, 2008, 02:21:57 AM »

I see that you don't get it  Grin
But, it doesn't matter. The model that needs to be attached has its own skeleton, but no animations
Logged
newborn
Customers
Community Member
*****
Posts: 2422


WWW
« Reply #6 on: April 21, 2008, 05:48:32 AM »

I see that you don't get it  Grin

BindToActor is exactly what the answer is to your question.

So either you were not clear enough, or you do not understand the answer.
Logged

adnanbobo
Community Member
*
Posts: 12


« Reply #7 on: April 22, 2008, 03:01:36 PM »

6.3 !!!!!!!!!!!
I am using 6.3 which unfortionately doesn't have this command
I would use 6.5 if I had a team which would help me model. I am just taking models from the internet. In the end I found a, not really easy, way to make it... here's a screenshot Cheesy
Logged
Raine
Customers
Community Member
*****
Posts: 1099


« Reply #8 on: April 22, 2008, 06:19:32 PM »

C:\Program Files\TV3D SDK 6.3\VB\Samples\TV3D - AttachToBone

...am I missing something? :S
Logged

adnanbobo
Community Member
*
Posts: 12


« Reply #9 on: April 23, 2008, 03:56:05 AM »

C:\Program Files\TV3D SDK 6.3\VB\Samples\TV3D - AttachToBone

...am I missing something? :S

Let me be honest... YES!!! xD
The models in the sample have no skeleton
The axe that my character in the screenshot is holding HAS a skeleton
The skeleton of the weapon, in the Valve engine from HalfLife, CounterStrike... copies the animation from the character. I made a solution by adding the axe, sword and other models to the character model. It's complicated, but it works xD
Logged
nadjibus
Community Member
*
Posts: 97


WWW
« Reply #10 on: April 23, 2008, 04:59:45 PM »

We all get it, and I repeat :

C:\Program Files\TV3D SDK 6.3\VB\Samples\TV3D - AttachToBone


Quote from: TV3D's Documentation
TVActor.AttachTo( Actor As TVActor, AttachmentPoint As Integer)

AttachmentPoint is the bone number.

So it'll be : Axe.AttachTo(Body,4)   '4 is the bone number of the right hand, for eg.
if the Axe doesnt fit well with the body, just call a .MoveRelative.

edit: And about using 6.3 just for models, it's a bad idea. U can convert your models to 6.5's TVA.

edit2: You can also use .SetMatrix with .GetBoneMatrix, u'll have 1 call to pass! (Axe.SetMatrix(Body.GetBoneMatrix(Bone))

Peace.
« Last Edit: April 23, 2008, 05:06:14 PM by nadjibus » Logged


Holy War official website http://www.newvisiongames.com
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks