MS3D Animation

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
TheGibberingFool

MS3D Animation

Post 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?
Keanu
Posts: 13
Joined: Sun Jan 04, 2004 11:10 am
Location: Italy
Contact:

Post by Keanu »

Yes is already included, maybe there's something wrong with your code.
P4 2.53MHz 256MB GeForce4Mx VC++6.0
TheGibberingFool

Hm

Post 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]
tstuefe
Posts: 40
Joined: Wed Jan 07, 2004 12:53 pm
Location: Heidelberg, Germany
Contact:

Post 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
Post Reply