It might seem that I'm trying to hijack the help forum, but this is certainly not my intention ...
I have a strange problem, which I'm not sure even how to diagnose: I have put a simple flat terrain 32 vertices in size. When I render it at first everything seems okay, but a second or so after that it darkens. And indeed I seem to lose some reflections, like there is no light. Curiously enough if I make its world size larger (no other changes whatsoever), by a factor of 20 for example, the problem is not present and I get the terrain nicely rendered. To be fully honest I am using the terrain paging component, but I firmly believe this is unrelated to my problem.
And since they say a picture is worth a thousand words ...
This is what it should look like:
https://drive.google.com/file/d/0B77vjX ... sp=sharing
but few seconds later it changes into this:
https://drive.google.com/file/d/0B77vjX ... sp=sharing
Strangely I still have shadows but somehow the "specular component" of the terrain is lost.
Here is how I set up lighting:
Code: Select all
Ogre::TerrainGlobalOptions * options = Ogre::TerrainGlobalOptions::getSingletonPtr();
if (light) {
Ogre::Light * ogreLight = qogre_cast(light);
options->setLightMapDirection(ogreLight->getDerivedDirection());
options->setCompositeMapDiffuse(ogreLight->getDiffuseColour());
}
options->setCompositeMapAmbient(sceneManager->getAmbientLight());
Kind regards.