
Picture above shows dwarf.x and player.ms3d
While the lightnode is behind both, the dwarf is getting a little bit darker in front, but my Player and all other objects gets black on non lighted sides.
I put the same texturefile from the dwarf on my Player, but it's still the same problem. How could it be and how can I change it, so the Player gets only darker, but not black?
Code: Select all
//Code for import both
IAnimatedMesh* MeshModel0 = smgr->getMesh("./media/player.ms3d");
MeshModel0->setMaterialFlag(video::EMF_NORMALIZE_NORMALS ,true ); //Doesn't change anything
Player[0] = smgr->addAnimatedMeshSceneNode(MeshModel0);
IAnimatedMesh* MeshModel5=smgr->getMesh("./media/dwarf.x");
Player[1] = smgr->addAnimatedMeshSceneNode(MeshModel5);
€dit:
After some trying i get the problem. I have to put the emissive color lighter in my model designer. Now, i gets only a little bit darker.
What a fault by me...
