Importing *.3ds files

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
OffBeatMonkey

Importing *.3ds files

Post by OffBeatMonkey »

I tried to put a *.3ds file into the program but it never shows up in the window!!! Could anyone help me please, thank you already in advance.
pyromancy
Posts: 4
Joined: Sun Oct 05, 2003 9:13 pm
Location: usa
Contact:

heres a clip of a tutorial on the site

Post by pyromancy »

hope this helps...

/*
For our environment, we load a .3ds file. It is a small room I modelled
with Anim8or and exported it into the 3ds format because the Irrlicht Engine
did not support the .an8 format when I wrote this tutorial. I am a very bad
3d graphic artist, and so the texture mapping is not very nice in this model.
Luckily I am a better programmer than artist, and so the Irrlicht Engine
is able to create a cool texture mapping for me: Just use the mesh manipulator
and create a planar texture mapping for the mesh. If you want to see the mapping
I made with Anim8or, uncomment this line.
*/

scene::IAnimatedMesh* mesh = smgr->getMesh(
"../../media/room.3ds");

smgr->getMeshManipulator()->makePlanarTextureMapping(
mesh->getMesh(0), 0.008f);

scene::ISceneNode* node = 0;

node = smgr->addAnimatedMeshSceneNode(mesh);
node->setMaterialTexture(0, driver->getTexture("../../media/wall.jpg"));
_.'~Pyromancy
OffBeatMonkey

Post by OffBeatMonkey »

Thanks a lot, that didn't solve my problem but it did put me on the right track and I found the solution! Thanks again!
unknown_usr
Posts: 14
Joined: Thu Oct 02, 2003 7:03 pm

Post by unknown_usr »

I had a similar problem. See, if you create a box in '3ds max' and w/o applying any materials to it export it into a 3ds file you won't see anything. However if you then import the model and export it again everything shows up! I think it's some bug or something....
Post Reply