Terrain not shaded.

63 views
Skip to first unread message

Tassos Stamadianos

unread,
Jan 14, 2014, 6:27:13 PM1/14/14
to urh...@googlegroups.com
Hello,

I have some fairly large terrain in the editor (scaled 10x10x10), and I cannot get the scene to light up properly. A directional light only lights a small portion of the scene. I tried playing with the light's parameters, but to no avail. Is this a bug or am I incorrectly creating terrain?

Tassos Stamadianos

unread,
Jan 14, 2014, 6:32:05 PM1/14/14
to urh...@googlegroups.com
Okay, so I made the terrain via script, and I'm experiencing the same problem -- past a certain point, no light is cast on the terrain. I guess it's not an editor issue then. Is the terrain not supposed to exceed a certain size?

Lasse Öörni

unread,
Jan 14, 2014, 6:39:11 PM1/14/14
to urh...@googlegroups.com
If you have a zone component for the ambient light & fog control, make sure its bounding box parameters are large enough to contain the whole terrain. Terrain patches which are outside are put into the Renderer's default zone, which has a black fog at quite close distance.


Tassos Stamadianos

unread,
Jan 14, 2014, 9:33:02 PM1/14/14
to urh...@googlegroups.com
Ah, that makes sense. However, I do not have a zone component. Is there a default zone assumed if no zone is provided?

Lasse Öörni

unread,
Jan 15, 2014, 2:54:06 AM1/15/14
to urh...@googlegroups.com
Yes. In code you can get it with Renderer::GetDefaultZone() and in the editor it's the one whose fog settings etc. you can edit in the "Editor preferences" window.

Reply all
Reply to author
Forward
0 new messages