Then I created a cube in Irrlicht addCubeSceneNode(1), awarded him the material from the temporary node generated from .dae file and get a completely different picture:
Why does the color and reflection of the cube so different? The material used is the same.
The CODE:
Code: Select all
scene::IAnimatedMesh* Mesh = g_GraphicalWorld->SceneManager()->getMesh("Resources/IndividCubePart.dae");
scene::ISceneNode* TempNode = g_GraphicalWorld->SceneManager()->addMeshSceneNode(Mesh);
video::SMaterial Material = TempNode->getMaterial(0);
_Node = g_GraphicalWorld->SceneManager()->addCubeSceneNode(1);//g_GraphicalWorld->SceneManager()->addMeshSceneNode(Mesh);
_Node->setMaterialFlag(video::EMF_FOG_ENABLE, true);
_Node->setMaterialFlag(video::EMF_LIGHTING, true);