Horde3D http://horde3d.org/forums/ |
|
ragoll implementation http://horde3d.org/forums/viewtopic.php?f=1&t=366 |
Page 1 of 1 |
Author: | pablito3dartist [ 10.06.2008, 16:38 ] |
Post subject: | ragoll implementation |
joints have absolute and relative transform matrices.if i update absolute with physic i think that i can render ragdoll without problem but how i can prevent to parents or animation sys to update those matrix?ho i can revert from ragdoll to animation with blending? So i want to know before to look in code 1) what animation acts on? relative or absolute? 2)Can i blend from some external positioned bone to animation? 3)updating relative matrix update also absolute?...and updating absolute not update relative or position rotation and scale? |
Author: | Volker [ 10.06.2008, 17:12 ] |
Post subject: | Re: ragoll implementation |
Now you've lost me! Horde3D has a scenegraph. The transformations for each node are relative to it's parent. The absolute matrix is just the multiplications of all nodes within one branch. So if you have a structure like this: Code: RootNode + | +---+ Model | +--- Mesh The mesh's relative transformation is stored in the scene graph and it's absolute matrix will be calculated using Code: RootNode's Relative Matrix * Model's Relative Matrix * Mesh's Relative Matrix You can create animation data on the fly that you can use to create ragdoll animations. If you upload the animation as a normal Horde3D resource you can use the animation system to blend as you would do it if it's a keyframe animation. You also don't have to set the absolute matrix. You can instead convert the absolute matrix to a relative one by using the absolute matrix of the parent. |
Author: | pablito3dartist [ 10.06.2008, 22:04 ] |
Post subject: | Re: ragoll implementation |
is not so slow to convert in relative matrix for comples hierarchies?convert to relative then it have to reconvert in absolute...howevcer i'll try that maibe if it's too slow i'll change something. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |