.X File - one file with all animations ???

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

.X File - one file with all animations ???

Post by mcunha98 »

The .x file format dont have a hierarchy of frames ?

For example, the md2 format count with a "description" file tell to engine 1 to 20 is the walk animation, 21 to 30 is stand animaton, etc...

In .x file i need export each animaton for a specific file, as walk.x, run.x and attack.x or is possible export an unique .x file with all frames and say to IRR Engine load and play from frame 0 to 20 ?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

use animatedMeshNode->setFrameLoop
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

just to make it clear for you: you can have all your animations in one x file. Walk can be from frame 0 -to frame 100 run from 101 to 200 idle 201 to 300. Then you use that setFrameLoop function to run one animation around.
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Post by mcunha98 »

Thanks for reply.

I have another question.
When i export the .x file from Blender, in IRRLicht enviroment the point where frames end ( and the loop start ) the object produce a strange "blink"

Blender:
Image

IRR window:
Image
Post Reply