Hi,
I've just tried importing a MS3D model into the Irrlicht tutorial 1. It loads, but does not animate - is animation for this format included yet?
MS3D Animation
Hm
I have a feeling it's my model - I'm no modellist
Anyway, there's my code:[/code]
Anyway, there's my code:
Code: Select all
...
//Load a model, sah
IAnimatedMesh* mesh = smgr->getMesh( "data/gf1.ms3d" );
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
//Get a material
if ( node )
{
node->setMaterialFlag( EMF_LIGHTING, false );
node->setFrameLoop( 0, 32 );
node->setMaterialTexture( 0, driver->getTexture( "data/gfs.tga" ) );
}
//Place the camera
smgr->addCameraSceneNode( 0, vector3df( 0, 10, -40), vector3df( 0, 0, 0 ) );
//Draw everything! Yaaay!
while( device->run() )
{
driver->beginScene( true, true, SColor( 0, 128, 128, 128 ) );
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
...
Hi, I don't think its your model, the milkshape importer seems to be broken.
See http://irrlicht.sourceforge.net/phpBB2/ ... shape#4882
See http://irrlicht.sourceforge.net/phpBB2/ ... shape#4882