Lightmap Calculation *BUG*

stealth977

06-02-2009 14:04:29

Hi,

I had some crashing issues during lightmap calculations and debugging showed me that you are only bounds checking according to light direction x and z, but when they are 0 it either causes an out of array exception or continues forever.

Try LightVector (0,-1,0) for example :) I know it is a rare case, but it can happen for example when user uses day/night cycles and the sun is at top etc. (in case of calculating according to sun). A min/max height bound check would be nice.

Stealth,