terrain lighting - seams

BlitzMax Forums/MiniB3D Module/terrain lighting - seams

KronosUK(Posted 2008) [#1]
Hi,

Regarding Klepto's mod plus pretty much every piece of terrain code in the archives.

Anyone know why you get visible seams on chunked terrains when using lights but not under ambient light alone? Anyway to stop em appearing when using lights?

At first i thought this was an artifact of chopping up the terrain texture but having written my own terrain code stretching 1 texture over many chunks i still get the damn seams.

edit: i guess as its not a continuous surface the lighting can't interpolate smoothly between the chunks so I'll have to render terrain under ambient light only and everything else with lights..(Bit of a pain)


Mr. Write Errors Man(Posted 2008) [#2]
I guess (and it's only a guess), but you might get rid of the seams if you manipulated terrain normals by hand. Or you could make your own light/shadow system by adjusting vertex colors.

-AF