hey folks... Just reading the special effects tutorial and trying some stuff out. I can get things to work (ish) but I was wondering if anyone could go through the following code and explain it line for line, it'd be really appreciated as I'm not quite sure what its doing
//create an IAnimatedMesh called "mesh" and load the model "room.3ds"
scene::IAnimatedMesh* mesh = smgr->getMesh(
"../../media/room.3ds");
//tell the scenemanager to create a planar texture mapping on the mesh (the way the texture gets mapped on the mesh)
smgr->getMeshManipulator()->makePlanarTextureMapping(
mesh->getMesh(0), 0.004f);
// create an ISceneNode called "node"
scene::ISceneNode* node = 0;
// attach the mesh "mesh" to the node so that it has a mesh to display
node = smgr->addAnimatedMeshSceneNode(mesh);
// apply the first texture (0) called "wall.jpg" to the node
node->setMaterialTexture(0, driver->getTexture("../../media/wall.jpg"));
// set the emissive color (ammount of light which the node emits) to 0
node->getMaterial(0).EmissiveColor.set(0,0,0,0);