Skeleton animation

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Boz the virtual being
Posts: 10
Joined: Mon Mar 08, 2004 9:01 pm
Location: Omikron

Skeleton animation

Post by Boz the virtual being »

I didn't see a topic about skeleton animation.
On the engine features list I read:
Skeletal animation: A skin is manipulated by animated joints. The Irrlicht Engine will do this when loading .ms3d or .x files.[...]
Is it already implemented? Is there any example showing this? Where do I start?
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Yes.

Add an AnimatedMeshSceneNode with your animated mesh.

Also, you can pull joints using GetMS3DJointNode or on a mesh level, getMatrixofJoint

There is a discussion about that at:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1583
Crud, how do I do this again?
Boz the virtual being
Posts: 10
Joined: Mon Mar 08, 2004 9:01 pm
Location: Omikron

Post by Boz the virtual being »

Ah that's what I was thinking of.
I don't want to use ms3d but I think I know how to start now, thanks.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

X format has the same getJoint calls. I just use MS3D's, so it's stuck in my mind.
Crud, how do I do this again?
buhatkj
Posts: 444
Joined: Fri Dec 12, 2003 4:53 am
Contact:

does it??

Post by buhatkj »

does x really have the same joint calls?? i didnt see them in there...
i tried writing my own with the intent to make them a tpim, but they seemingly just dont work. no error, or crash, just has no effect on the position of the child mesh.....wierd...
is the call different??
-Ted

update:digging through the code i think that what may be happening is that the relativetransformationMatrix in C/IdummyTransformationSceneNode may not be getting set for x model the same way as it must for ms3d....now if i can just figure out where that gets set at all.....

update again: found it, it was right under my nose right in the canimatedmeshscenenode, so its fixed now, it updates the dummy node but the matrix appears to be mirrored. its supposed to be attached to his hand, but when his hand move back, the sword moves forward, and its on the wrong side relative to the joint i assigned it.....
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
Post Reply