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

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
fon3m
Posts: 32
Joined: Thu Sep 28, 2006 9:34 pm

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

Post 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]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to use a different file format. 3ds does not support animations in Irrlicht.
Lynxeye
Posts: 17
Joined: Thu Jul 27, 2006 12:19 pm
Location: Germany
Contact:

Post 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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

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