ISkinnedMesh?

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
darkmaster83
Posts: 24
Joined: Tue Oct 14, 2008 7:41 am

ISkinnedMesh?

Post by darkmaster83 »

Hi! I'd like to know the differences between ISkinnedMesh and IAnimatedMesh and how to create an ISkinnedMesh from a mesh.
I watch the documentation but I cannot understand...
Thanks.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

ISkinnedMesh is for meshes that are skinned (look it up on google if you don't know what it means).

You can't create one yourself you just get given one from smgr->getMesh(..) if the mesh you're loading is of a format that uses skinning.
Image Image Image
darkmaster83
Posts: 24
Joined: Tue Oct 14, 2008 7:41 am

Post by darkmaster83 »

JP wrote: You can't create one yourself you just get given one from smgr->getMesh(..) if the mesh you're loading is of a format that uses skinning.
I have an .ms3d file, does it support skinning?
Last edited by darkmaster83 on Thu Nov 13, 2008 11:00 am, edited 2 times in total.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Yup, so long as the model in the .ms3d file is actually skinned i guess ;)
Image Image Image
darkmaster83
Posts: 24
Joined: Tue Oct 14, 2008 7:41 am

Post by darkmaster83 »

JP wrote:Yup, so long as the model in the .ms3d file is actually skinned i guess ;)
OK! Thanks! :D

I use that code to create it:

Code: Select all

scene::ISkinnedMesh* mesh2 = (ISkinnedMesh*) smgr->getMesh("humanoid.ms3d");
Is it correct?
Post Reply