arras wrote:StargateSG1>> no, texture is not inside model file, it contain only data about vertex position, normals, UV and possibly animation. But normaly it links to texture file which usualy have the same name like model (not neceserily). Normaly when you load model in to the Irrlicht, it automaticly load texture too if its at the right path (usualy along model file)
If not, you have to load texture separately. Bye the way, you can load any texture on any model if it have been UV maped. And in any time during your program is running you can change texture.
As for several textures on one model ...up to my knoweledge you can use only one texture in Irrlicht for one model (you can use more but you have to apply them to diferent layers which owerlap so its not what you ask about)
If you want to have more, you have to put those two or more textures in to the one texture file (for example like diferent tilles) and UV map your model in way that diferent sides of cube use diferent parts of texture (diferent tiles).
Or you have to broke your model and load its parts separately and make them child to each other.
Users browsing this forum: No registered users and 1 guest