Juso
New Member
Posts: 16
|
Post by Juso on Jan 27, 2005 0:00:51 GMT 1
So which is right form to make ragdoll? I have found two different versions with 3 parameters: Head = NDB_NewtonRagDollAddBone(RagDoll, Chest, headmass#) or with 4 parameters Head = NDB_NewtonRagDollAddBone( RagDoll, Chest, Col, headmass#) And what version is the latest tutorial? And where it is?
|
|
|
Post by Kjelle69 on Jan 27, 2005 0:35:26 GMT 1
as of wrapper version 1.30 and above, the second one is correct (4 things passed).
the latest version of the tutorial should be in the wrapper download...
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Jan 27, 2005 19:41:49 GMT 1
In newest document (Jan 16) there still stands 3 parameters: NDB_NewtonRagDollAddBone syntax: int = NDB_NewtonRagDolladdBone( ragdoll, p_bone, mass ) So whats the fourth element?
|
|
|
Post by zircher on Jan 28, 2005 0:01:28 GMT 1
'Col' is a collision box (or other shape) index number.
for example...
`now make the head bone! Col = NDB_NewtonCreateSphere( 2.0*size# ) `this matrix is a local matrix, in relation to the parent bone! NDB_BuildMatrix 0.0, 0.0, 0.0, 3.0*size#, 0.0, 0.0 NDB_SetVector 1, 4.0*size#, 4.0*size#, 4.0*size# Head = NDB_NewtonRagDollAddBone( RagDoll, Chest, Col, mass#/11.0 )
-- TAZ
|
|
|
Post by kjelle69 on Jan 28, 2005 9:33:34 GMT 1
I will try to update the documentation, had no time to go through the ragdoll part yet , is there other ragdoll commands which has changed?
|
|
|
Post by Kjelle69 on Jan 28, 2005 11:12:41 GMT 1
yeah, if I remember correctly I changed the "NDB_RagdollSetGravity" to be a 0,1 function, just like NDB_BodySetGravity... it just turns gravity on/off...
anything else should be in the changelog...
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Jan 29, 2005 11:05:24 GMT 1
OK and thanks, it works. I ve just made my first rag doll (except some leg or arm are a bit wrong , but it works)
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Feb 1, 2005 18:59:08 GMT 1
My rag doll acts still strange: if I move right arm, left leg is moving etc. I know its the left hand system of DBPro, but how to fix it?
I made the skeleton in CharacterFX, it cant move to Milkshape in x-file! Should I make the skeleton again in MilkShape?
|
|
|
Post by zircher on Feb 1, 2005 23:07:42 GMT 1
If you're looking at the comments in the code I sent you, take them with a grain of salt since I was viewing my ragdol from behind - ala 3rd person camera. So, the comments are reversed for the sides. -- TAZ
|
|
|
Post by Kjelle69 on Feb 2, 2005 4:06:13 GMT 1
do NOT make the skeleton in Milkshape. it aligns the bones on their local Z axis, and Newton requires they be aligned on their local X axis... CharacterFX lets you do this, which is why I recommend it...
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Feb 3, 2005 18:51:02 GMT 1
Now Im confused So how do I fix the wrong right hand/left hand movement? In Walabers tutorial is written: ...solution is to export your model "right-handed" with a program like Milkshape... Milkshape cant import CharacterFX models. .... edited: OK there is Zirchers advise to watch models from behind... I try that tomorrow !
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Feb 3, 2005 22:09:57 GMT 1
to Zircher Well I decided to spend 4 hours more to this problem even today ;D I simplify my model to this in CharacterFX If I write limbs in Zircher's code like this it wont work: jtCenter = 2 jtLArm = 3 jtRArm = 4 jtHead = 5 jtLHip = 6 jtRHip = 7 So how to number limbs right?
|
|
|
Post by Kjelle69 on Feb 4, 2005 4:33:02 GMT 1
the limb numbers in DBPro seem to be completely random, and have no relation to the order in character FX. you need to use a viewer to determing the limb numbers in DBPro.
the object viewer tool available from my website can do this.
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Feb 4, 2005 20:00:14 GMT 1
Thanks, I checked it, so e.g limb #132 is before limb #138 even it is after #138 on Keyframer! So right order in DPPro is 124,root,135,132,125,138,129 and 126. BTW... Are you sure your Object Wiewer is showing all limbs? If I use checklist of limbs -command in DBPro I get one more limb! E.g. if there is limbs 1..8 in Object Viewer there is limbs 0..8 in DBPRo. Object Viewer didnt show limb #126 and definitely its there!
|
|
Juso
New Member
Posts: 16
|
Post by Juso on Feb 4, 2005 22:00:29 GMT 1
OK, now limbs are right... ... but when I e.g move arm up it goes down. In pic here you can see that all arms and legs are pointing opposite direction than their 'newton boxes' So whats wrong this time
|
|