Adding texture to cube

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.
StargateSG1
Posts: 15
Joined: Sun Aug 22, 2004 2:06 pm
Location: Estonia

Post by StargateSG1 »

Ok, thanks arras :D
thanvilk
Posts: 23
Joined: Tue Mar 15, 2011 6:39 pm
Location: india

Beaking One texture file in more then one for single model !

Post by thanvilk »

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.
But How should be break one texture file for different texture for different sides of model??? is there in facility in irrlicht then please notify me for that !
Laxmikant Thanvi
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

It should be done in modeling program rather than irrlicht. Look at the second post of the thread for a hint on what the technique called.
Working on game: Marrbles (Currently stopped).
Post Reply