Mesh with Lightmap texture and normal texture
Posted: Wed Feb 06, 2008 8:47 am
Im trying to use a lightmap texture in combine with a normal texture for my project. Ive tried alot of different ways
I want the lightmap texture and normal texture to blend and to be affected by dynamic lighting.
Anyone have a solution or know of anything i could test?
Thx
Code: Select all
//load Mesh
scene::IAnimatedMesh* MechWarrior = smgr->getMesh("mech-01_no-vert.X");
node = smgr->addAnimatedMeshSceneNode(MechWarrior);
//load texture in different layer
node->setMaterialTexture(1, driver->getTexture("mech-1-01.jpg"));
node->setMaterialTexture(0, driver->getTexture("mech-1-illum.jpg"));
//set material flag and ive tried them all
node->setMaterialType(video::EMT_LIGHTMAP);
Anyone have a solution or know of anything i could test?
Thx