Terrain & created Lights

Problems building or running the engine, queries about how to use features etc.
Mightimus
Gnoblar
Posts: 4
Joined: Thu Jan 20, 2005 9:21 am

Terrain & created Lights

Post by Mightimus »

How to do that was lighted a landscape depending on the sources of lighting in a scene?
It is now lighted him regardless of them, even if sources generally are not present in a scene...
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67

Post by sinbad »

Yes, the terrain lighting is static in the demo. Because of the LOD on the terrain standard vertex lighting does not look very good, if you want dynamic lighting I advise using a custom terrain material (see terrain.cfg) and using shaders, perhaps a world-space normal map for example which will retain the lighting precision even in the distance.