3ds model that import doesn't like in 3ds max
Posted: Thu Sep 28, 2006 9:49 pm
I'm import 3ds file but when i render model,polygon so confuse
I load model by
but when i render,polygons is unorder and it's don't animate.
How can i load animation model , please help me?
[/img]
I load model by
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("aa/d1.3ds");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
node->setMaterialFlag(video::EMF_LIGHTING, false);
node->setFrameLoop(0, 100);
node->setAnimationSpeed(10);
node->setPosition(core::vector3df(0,0,0));
node->setRotation(core::vector3df(0,0.0f,0));
node->setMaterialTexture(0, driver->getTexture("aa/vaderbuckle.jpg"));
node->setMaterialTexture(1, driver->getTexture("aa/vaderbucklepart.jpg"));
node->setMaterialTexture(2, driver->getTexture("aa/vaderbutton.jpg"));
node->setMaterialTexture(3, driver->getTexture("aa/vaderchestplate.jpg"));
node->setMaterialTexture(4, driver->getTexture("aa/vader'sbutton.jpg"));
node->setMaterialTexture(5, driver->getTexture("aa/vader'sbutton2.jpg"));
How can i load animation model , please help me?
[/img]