[SOLVED] Q about loading 3ds

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
Mong
Posts: 8
Joined: Sat Dec 18, 2004 1:20 am

[SOLVED] Q about loading 3ds

Post by Mong »

I downloaded some 3ds model with multiple textures, and want to display it.

I used the code in the tutorial with

battleshipnode->setMaterialTexture( 0, driver->getTexture("../media/Alien_battleship_3ds/scifi05.jpg") );
node->setMaterialTexture( 1, driver->getTexture("../media/Alien_battleship_3ds/scifi05.jpg") );

And it does not work. so anybody knows how to display that correctly? maybe give me the address of the previous post? I tried to use search function of the forum and it did not work.

Thank you very much.
WalterWzK
Posts: 72
Joined: Wed Jan 12, 2005 2:57 pm
Location: Netherlands
Contact:

Post by WalterWzK »

1. Ur absolutely sure that your path to the images are correct?

2. Isnt the 3DS already textured like most of them

3. Have you set multi-texturing ON when you work in linux?
(under win32 its ON by default)
Current Project: Don Salvatore's Mafia
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
Mong
Posts: 8
Joined: Sat Dec 18, 2004 1:20 am

Post by Mong »

WalterWzK wrote:1. Ur absolutely sure that your path to the images are correct?

2. Isnt the 3DS already textured like most of them

3. Have you set multi-texturing ON when you work in linux?
(under win32 its ON by default)

The paths are correct, and the mesh is correctly loaded. But in the console window, for each texture it loads will have 3 lines corresponding to it. The first line it says can not open the file of texture, and sencond lines can not loaded, third line said it is loaded with the relative path of the model. The actual output is some of texture is not loaded, some of them does. I am using windows as well.
please somebody help or explain to me what that is.

Another Q, how to handle the too many vertexs problem while loading the .3ds file?

Many thanks
Munku
Posts: 66
Joined: Tue Nov 30, 2004 4:04 pm

Alright.,

Post by Munku »

The texture HAS to be in the same directory as the model, also the texture HAS to be in the old dos format (8.3). Hope this helps.
Umm, don't look at me that way. I'M not the dead one here.

--The One True Marshmellow
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Right, all files have to be in the same folder !!!
The texture files have to be in DOS format (8.3 letters) !!!
And the most important think about 3ds and multi texturing:
!!!!!!!!!! Don't use setMaterialTexture() on 3DS files !!!!!!!!!!
All textures will be loadet by Irrlicht !!!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Whoa!!!! Acki??? I can't believe it!!!!!

You came out of the cave you were hiding in!!!!!!!


man where've you been!!!!

happy new year!!! :D
Post Reply