Page 1 of 1

3ds model that import doesn't like in 3ds max

Posted: Thu Sep 28, 2006 9:49 pm
by fon3m
I'm import 3ds file but when i render model,polygon so confuse

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"));
but when i render,polygons is unorder and it's don't animate.

How can i load animation model , please help me?

[/img]

Posted: Thu Sep 28, 2006 9:58 pm
by hybrid
You have to use a different file format. 3ds does not support animations in Irrlicht.

Posted: Fri Sep 29, 2006 2:00 pm
by Lynxeye
I had the same Problem with cracked Modells if they are not only one mesh. So you only could solve the Problem by making the whole modell to one mesh.

@Hybrid: What do you say is the best supported modell format into Irrlicht? I want to know this because our modellartist wants to know into witch format he should save the modell data.

Thanks for your answer.
Lynxeye

Posted: Fri Sep 29, 2006 2:10 pm
by hybrid
For static models probably .x format as it supports smoothed normals. The 3ds loader does not and I'm not sure for .obj. Only if you are using lightmaps you will need something else.
For animations it's either .x or .b3d (or .ms3d if you own Milkshape). Only if you have simple keyframed animations it might be good to use .md2. .md3 is available as a patch, might also be worth looking at - it should become part of Irrlicht sooner or later (I just wanted to see if the .b3d integration already cleans up the animation interface - .md3 will bring some more methods for the AMSN interface).