Page 1 of 1

MutiTexturing

Posted: Tue Nov 03, 2009 12:03 pm
by spidersharma
How to do multitexturing in Irrlicht?

Posted: Tue Nov 03, 2009 2:22 pm
by CuteAlien
Some formats might already support that (don't know which ones right now).

If you want to do it by hand then you first have to set a material which supports more than one texture. Check the MaterialType documentation to find out what each material does. Next you have to make sure your mesh has the right vertex format (usually S3DVertex2TCoords). And lastly you have to set the other texture(s). It seems for OpenGL you can even ignore setting the vertex format if you don't need a second set of UV-coordinates as for multitexture materials a copy of the UV's of the first texture will be passed.