this is my first post in this forum, i'm new in irrlicht programation, i'm french so, sorry about grammar errors.
Code: Select all
irr::scene::IAnimatedMesh *room = sceneManager->getMesh("room.3ds"); // Create the room
irr::scene::IMeshSceneNode *Nroom = sceneManager->addMeshSceneNode(room->getMesh(0));
Nroom->setMaterialFlag(irr::video::EMF_LIGHTING, true); // Unable the light sensivity
sceneManager->getMeshManipulator()->makePlanarTextureMapping(room->getMesh(0), 0.04f); // define the number of repetition of the texture
Nroom->setMaterialTexture( 0, driver->getTexture("rockwall.jpg") ); // Apply the texture
When i launch the "game", i have the room but it seem to be solid (black), but model and texture are correctly loaded according to the logfile.
Another question: what are the function of the second line ?
Thanks again.