I have a problem with texture in Irrlicht.
Here a screenshot of my little demo.

How you can see the texture in the front of camera is quite good, instead the faces far of the camera are rendered with a strange noise. Also, when I move the camera around the scene, the noise effect is more marked...
For what I have saw from the tutorials images like that

the texture far away from the camera haven't this horrible effect...
Here I post a piece of my code about the map materials:
Code: Select all
map_model = scene->getMesh(path.c_str());
if(!map_model)
{
return false;
}
map_node = scene->addMeshSceneNode(map_model);
map_node->setMaterialTexture(1, device->getVideoDriver()->getTexture("./data/models/Maps/lightmap.png"));
map_node->setMaterialType(irr::video::EMT_LIGHTMAP_M4);
map_model->setMaterialFlag(irr::video::EMF_LIGHTING, true);
map_model->setMaterialFlag(irr::video::EMF_FOG_ENABLE, false);
map_model->setMaterialFlag(irr::video::EMF_ANISOTROPIC_FILTER, true);
map_model->setMaterialFlag(irr::video::EMF_ANTI_ALIASING, true);
map_model->setMaterialFlag(irr::video::EMF_TRILINEAR_FILTER, true);
map_node->getMaterial(0).SpecularColor.set(255,255,255,255);
map_node->getMaterial(0).DiffuseColor.set(255,255,255,255);
map_node->getMaterial(0).AmbientColor.set(170,170,170,170);
thanks
