I simply cannot figure out how to add a texture to a box. I searched the whole forum and googled alot but still can't get it to work.
Here's what i have done. I created a box in 3d studio, i applied a wooden texture on it, "default_texture.png", which come with irrEdit.
after i applied the texture on it i export it as a 3DS file.
But then what? If i load the 3DS file directly into irrlicht then all i see is a black box. I disabled lighting, tried to add an ambient light but it simply has no texture on it yet...
What do i have to do in order to add the texture to it? Do i have to tell irrlicht where the texture is located or something...??? I really have no clue how to do it with a 3DS file...
The texture should probably be in the same directory as the model. Check your command prompt output to see if Irrlicht actually managed to load the texture or not.
If it is loading the texture but still not displaying it on the model then maybe you've not exported the UV coordinates from 3DStudio...
whoa, i feel so stupid. Max renamed the texture for some reason to texture_.png instead of keeping the original 'texture_default.png'.
But it seems to be working I'm now going to check if how i can add more than 1 texture to the box ^^
Graydon wrote:Max renamed the texture for some reason to texture_.png instead of keeping the original 'texture_default.png'.
the reason is because 3ds files are in good old DOS style, so the texture names must be in 8.3 format !!!
Ahh yeh, i see
Is there anyway though, to put all the images in a folder or something instead of putting it at the same location as the 3DS file? So i can keep things organized?
Graydon wrote:Max renamed the texture for some reason to texture_.png instead of keeping the original 'texture_default.png'.
the reason is because 3ds files are in good old DOS style, so the texture names must be in 8.3 format !!!
Ahh yeh, i see
Is there anyway though, to put all the images in a folder or something instead of putting it at the same location as the 3DS file? So i can keep things organized?
You could always just apply the texture yourself. That's what I do.
Graydon wrote:
Is there anyway though, to put all the images in a folder or something instead of putting it at the same location as the 3DS file? So i can keep things organized?
you can put them in an archive (zip), or you can set the working path to the image path...
Graydon wrote:
Is there anyway though, to put all the images in a folder or something instead of putting it at the same location as the 3DS file? So i can keep things organized?
or you can set the working path to the image path...
Doesn't work. 3ds max will remove any folders from the texture path as well as truncate the file name.
Pyritie wrote:Doesn't work. 3ds max will remove any folders from the texture path as well as truncate the file name.
it's the other way around: if 3ds max didn't remove the pathes then it won't work !!!
Irrlicht searches for textures in the mesh path, current working dir and zip archives...
so if you copy all textures to a dir (image path) and then set the current working dir to that folder it should work, b.c. you have just file names without pathes...