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.
[SOLVED] Q about loading 3ds
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)
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]
Genre: 3D Shooter \ RTS
Programming Language: VB .NET
Engine: Irrlicht 11 [.NET Wrapper]
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
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 !!!
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:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:

http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java