Hi all,
for my program i use .x models, and i've just seen that a class called IAnimatedMeshX exists, but i don't know how to use it to animated my model.
Can you help me with an example of code using this class?
Thanks a lot
How to use the class IAnimatedMeshX
-
- Posts: 73
- Joined: Thu Apr 05, 2007 7:01 pm
- Location: France
- Contact:
How to use the class IAnimatedMeshX
When you want you can!
Quand on veut on peut!
Quand on veut on peut!
You don't need to use it...
You load all meshes the same way (like in the tutorials) and Irrlicht decides what format should be used then !!!
if you load a X-model Irrlicht uses IAnimatedMeshX and if you load (for example) a md2-model Irrlicht uses IAnimatedMeshMD2 and so on...
You load all meshes the same way (like in the tutorials) and Irrlicht decides what format should be used then !!!
if you load a X-model Irrlicht uses IAnimatedMeshX and if you load (for example) a md2-model Irrlicht uses IAnimatedMeshMD2 and so on...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 73
- Joined: Thu Apr 05, 2007 7:01 pm
- Location: France
- Contact:
Well, don't know if that's is what you were asking but I only wanted to mention that, if you want to use the specific functions for X meshes, you need to make a cast conversion to the pointer that getMesh provides, i.e:
Well, it's a basic matter but just in case you didn't know...
Code: Select all
yourXMeshPointer = (irr::scene::IAnimatedMeshX*) sceneManager->getMesh(meshFileName);
Get away from her, you B*TCH !!! - Ellen Ripley