Trouble in loading 3ds file format

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
alvin

Trouble in loading 3ds file format

Post by alvin »

Hi, I'm newbie in using Irrlicht engine. Currently, I'm doing my assignment project using the engine and I can say that it helps me a lot. However, currently I'm unable to load 3DS file. Or I should say I'm unable to load the texture into the object. From what I've learned from the forums and stuffs, everyone keeps mentioning that the texture is loaded automatically for 3DS files. Anyway, I'll just show you a part of my code:

Code: Select all

irr::scene::IAnimatedMesh *itemMesh = smgr->getMesh("Model/Items/OLDBOOK.3DS");
irr::scene::IAnimatedMeshSceneNode *itemNode = smgr->addAnimatedMeshSceneNode(itemMesh);
itemNode->setMaterialFlag(video::EMF_LIGHTING, false);
// set item's scale
itemNode->setScale(irr::core::vector3df(1,1,1));
// set item's position
itemNode->setPosition(irr::core::vector3df(10,10,10));
Is there anything wrong with my code? There's no compilation error and I can load the file perfectly with 3D Max Studio 6. Any idea would be appreciated. Thx
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Are all files in the same folder ???
Are the texture files named in old DOS style (8.3) ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
alvin

Post by alvin »

well.....to be precise I think the texture file is embedded inside the 3DS file itself, so I don't think there's any texture taken from other picture file. Does this mean that irrlicht can't load the texture from 3DS files if it is not taken from an external file?
Hellcat

yea.....

Post by Hellcat »

I'm pretty sure .3ds has a separate texture file
alvin

Post by alvin »

In that case, hm..... I'm not so sure about 3D Max but does it have a function that allows us to export the materials into a texture file?
Hellcat

Post by Hellcat »

hmm....i'm not sure about that. i think when u export to 3ds thats gone...what're you modeling? maybe i can help make u a texture for it rabidlockergnome@hotmail.com if u want to contact me about it.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Textures embeddet in 3ds file ???
I hear that the first time now... :shock:

I think your modell has no textures, just colors !?!?!
Irrlicht supports only textures...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
alvin

Post by alvin »

Kekekeke :oops:

Sorry, I'm not really familiar with all the terms. Anyway, can you teach me how to apply a testure into the model using 3D Max? Any useful link that I can use? Thx.....
spsteam
Posts: 9
Joined: Mon Oct 04, 2004 8:52 am
Location: Spain
Contact:

Post by spsteam »

try this link:

http://discovery.scifi-art.com/texturing/

and remember to use always textures with a bitmap linked to it. And the bitmaps need to be in a Irrlicht readable format.
---------------------------------------------
http://usuarios.lycos.es/spsteam/
Post Reply