Both of these patches should fix the fog flashing to white(black?) bug. The first one just checks for the Not a Number condition that results from acos(1+small_delta). The second patch uses atan2, but doesn't quite make it near 0 or PI at the edge cases near 1 or -1. I can't really tell the difference between the two, but I'm sure there is one.
I've committed a patch that simply checks whether 'dot' is greater than 1.0 and then prints an error message and set 'dot' to 1.0
It looks to me like this approach isn't really slower than the ones you proposed.
Erik
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
