Page 1 of 1

ISkinnedMesh?

Posted: Mon Nov 10, 2008 3:34 pm
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.

Posted: Mon Nov 10, 2008 4:06 pm
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.

Posted: Thu Nov 13, 2008 10:54 am
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?

Posted: Thu Nov 13, 2008 10:57 am
by JP
Yup, so long as the model in the .ms3d file is actually skinned i guess ;)

Posted: Thu Nov 13, 2008 11:01 am
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?