[SOLVED] Multi-Texturing

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
mayorandrew
Posts: 3
Joined: Sat May 14, 2011 7:32 pm

[SOLVED] Multi-Texturing

Post by mayorandrew »

Hi!

Is this possible in Irrlicht to texture one custom mesh with different texture layers, so each vertex has different texture coordinates for each layer? Can it be done on high-level with Irrlicht functions or I should use shaders?

Example:
Image
Last edited by mayorandrew on Fri Jun 17, 2011 7:01 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This is also possible without shaders. Irrlicht provides two texture coordinates per vertex. You can load these via mesh formats supporting light maps. Or you do thise programatically.
mayorandrew
Posts: 3
Joined: Sat May 14, 2011 7:32 pm

Post by mayorandrew »

Thank you for your reply!
After some time studying Irrlicht and OpenGL, I've written S3DVertexNTCoords, which supports up to 8 texture coordinates for Irrlicht 1.7.1, and it works! (But I think it useless without corresponding shader.)
So, if someone intrested, I can post it here.
TerryRussell
Posts: 12
Joined: Wed Mar 30, 2011 7:14 pm

Post by TerryRussell »

Please do post it. That information would be most interesting.

In any case, I'd like to understand more fully what you did.

Thank you!
Regards,

Terry
Post Reply