Game Development Community

sun vs. mplane

by Desmond Fletcher · in Torque Game Engine · 02/08/2002 (2:46 pm) · 1 replies

When the sun direction parameters in the mission file are set to 0 0 -1, there is a fatal error "no plane possible". This comes from math/mplane.h@228. Obviously, in this case of the sun directly overhead, there are only two points defining the plane so the normal can't be calculated.

#1
02/08/2002 (6:54 pm)
I'm not familiar with this code, so I'm not sure what the solution is. I tried simply ignoring those edges (all the edges on a polygon parallel to the sun's rays are degenerate), but then the lighting didn't work. I put it on the bug list for now.