That is one node, but each block uses a different material (probably because I set my material settings when I create the each cube, I should probably pass a material pointer but for now I just want to merge all the materials).
How would I set the same material for every face/vertex and then remove the redundant materials?
and to my light issues
All of these materials have the EMF_LIGHTING flag set to true, however regardless of how many lights I add I don't see anything change (they were completely black until I added global light at a strength of 0.3f)
This is the current lights in my scene (I've tried with up to 9 all at different positions, radii and colors)
Code: Select all
smgr->setAmbientLight(video::SColorf(0.3,0.3,0.3,1));
scene::ISceneNode* lightOne = smgr->addLightSceneNode(0, core::vector3df(2,2,2), video::SColorf(0.8f,0.8f,0.8f,0.8f), 3.0f);
ILightSceneNode* light1 = smgr->addLightSceneNode( 0, core::vector3df(0,400,-200), video::SColorf(0.3f,0.3f,0.3f), 100.0f,4);