Game Development Community

Strange light effect

by Claude-Alain Fournier · in Torque Game Engine Advanced · 12/18/2006 (12:22 pm) · 4 replies

Hi,

I am playing around with L3DT and Atlas2.

And I have a strange effect where the terrain is lighted only at a certain radius around my camera position. The spot actually move with the camera. On another project I have a much bigger terrain (32km x 32km) and it light all the way thru, here is a picture from high above, the spot show nicely.

I am working on a TSE version I downloaded a few days ago, with on the Terrain Atlas2 GUI ressource added.

So I suspect it could be a L3DT export or Atlas2 import parameters that cause that. But I have no clue.

So any help is appreciated.

www.wcaf.com/public_pics/terrain_light.jpg
thanks.

#1
12/18/2006 (4:08 pm)
It looks like thats the fog radius kicking in - is fog enable in the mission and is it set to black?
#2
12/19/2006 (12:22 am)
Visible distance and fog are both set to 10'000. If I decrease the fog then it is his standard grey.
#3
12/20/2006 (9:04 am)
Claude-Alain,

I had the same problem. I was processing my unique terrain textures at the lowest treedepth (so that each leaf was at the 1024 PNG size limit) i.e. for a 4096 pixel texture a treedepth of 3, for a 8192 texture a treedepth of 4, for a 16384 pixel texture a treedepth of 5.

At some point, I started getting these "spotlights" on each terrain instance displayed. I found that just by bumping the treedepth up by one (so that the leafs are now 512x512) that the problem went away. I hope this helps.
#4
12/22/2006 (12:08 am)
I will try thanks