How to set a different texture to each face of a mesh ?

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.
Post Reply
thefuzion
Posts: 10
Joined: Tue Mar 06, 2007 11:31 am

How to set a different texture to each face of a mesh ?

Post by thefuzion »

I create my own mesh (to make simple, it's a cube) with this code and it works fine :)

Now, i would like to apply different textures on each face of the mesh but I didn't find how to do...
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

You need to make each face of the cube it's own meshBuffer, then have a material for each meshBuffer.
Image
thefuzion
Posts: 10
Joined: Tue Mar 06, 2007 11:31 am

Post by thefuzion »

ok, that's what i though, but i wasn't sure.
Thanks
Post Reply