I am testing the XSI exporter and been having some problems, what i have is a simple cube wich i animate it moving around and i put this animation in the animation mixer and just export it all, now loading the mesh and creating an entity works fine but when i try to set the animation i get an error.
I have debuged the program and it seems that when i try to get the animation state object i get a null pointer or somthing, thats the conclusion i got, I also thought that myebe i am not using the right name of the animation state so i thoght to iterate through the animation states and dump then into a text file but when that didn't work i understood that i get a NULL pointer.
I By the way I am not using any skeleton animation.
exporting from XSI
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
-
the_darkone
- Greenskin
- Posts: 129
- Joined: Wed Jun 21, 2006 1:37 am
- x 1
- Kentamanos
- Minaton
- Posts: 980
- Joined: Sat Aug 07, 2004 12:08 am
- Location: Dallas, TX
-
the_darkone
- Greenskin
- Posts: 129
- Joined: Wed Jun 21, 2006 1:37 am
- x 1
- Kentamanos
- Minaton
- Posts: 980
- Joined: Sat Aug 07, 2004 12:08 am
- Location: Dallas, TX
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
You also may need to do the XSI shape animation tutorials. Demo_FacialAnimation is directly out of one of those tutorials and uses the shape manager. But yes, as Kentamanos says it won't animate on it's own, you have to write some code to activate the animation and advance the time on it to actually make it happen on screen, since an application has to have control of that kind of thing. For example, the facial animation demo does something like this:
Setup:
Each frame:
Setup:
Code: Select all
Entity* head = mSceneMgr->createEntity("Head", "facial.mesh");
AnimationState* speakAnimState = head->getAnimationState("Speak");
speakAnimState->setEnabled(true);
Code: Select all
speakAnimState->addTime(evt.timeSinceLastFrame);