I need some help with Color and Normal maps...
For better quality i'm using multiple materials on one mesh,
the problem is: I need to get it to work together with Perpixel-lighting,
Im applying my normal map like this:
Code: Select all
normalMap =driver->getTexture("media/norm1.bmp");
driver->makeNormalMapTexture(normalMap,1.50f);
//....
Node->setMaterialTexture(1, normalMap );
This mean, I have multiple materials (with their own UV-mappings) and only one single normal map for one mesh.
Is it possible, to adjust manually (in Blender or Max) the UV-mapping of this single Normal map (separately from Color-mappings) and load so prepared mesh in Irrlicht?
I'v tried to do it by applying UV-maps to another Map-channel (2nd, 3rd and 4th) and export so prepared model as .b3d (which supports multiple UVs/channels ).
But it seems, that for normal-mapping Irricht always takes the UVs from the 1st Channel (from the Color-one), what makes the whole per-pixel mapping messed up.
I other words:
Is it possible to have multiple UV-mappings for many materials (1st channel /color-maps), + one separate and global UV-mapping for normal-map (e.g. in the 2nd channel) ?
or alternatively: Is it possible to apply multiple normal-map textures to one mesh in Irrlicht? (if yes, then I would have no problems with separate UV-mappings more).
Thank you
-mike