Page 1 of 1

MS3D Animation

Posted: Sat Jan 17, 2004 8:44 pm
by TheGibberingFool
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?

Posted: Sun Jan 18, 2004 10:24 am
by Keanu
Yes is already included, maybe there's something wrong with your code.

Hm

Posted: Sun Jan 18, 2004 3:27 pm
by TheGibberingFool
I have a feeling it's my model - I'm no modellist :D

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();
	}
...
[/code]

Posted: Mon Jan 19, 2004 6:48 am
by tstuefe
Hi, I don't think its your model, the milkshape importer seems to be broken.

See http://irrlicht.sourceforge.net/phpBB2/ ... shape#4882