destroyed model in MeshScenNode,but AnimatedMeshSceneNode/

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
bongse1
Posts: 14
Joined: Mon Jul 26, 2010 11:41 am

destroyed model in MeshScenNode,but AnimatedMeshSceneNode/

Post by bongse1 »

I have a model in x-file.when I load it to AnimatedMeshSceneNode it's fine.But if I load it into MeshSceneNode,the model is destroyed.Does anyone know why and have solution for that?

IAnimatedMesh* animMesh = pSceneManager->getMesh("model.X") ;
MeshSceneNode* mCstle_ForCollisionTest = pSceneManager->addMeshSceneNode(animMesh->getMesh(0),0,0);

=>the model destroyed.


IAnimatedMesh* animMesh = pSceneManager->getMesh("model.X") ;
IAnimtedMeshSceneNode* mCstle_ForCollisionTest = pSceneManager->addMeshSceneNode(animMesh->getMesh(0),0,0);

->the model is fine.


I need to load it to IMeshSceneNode,since triangleSelector for collision detect seems only compatible for IMesh not IAnimatedMesh.

Plz,help me.
Post Reply