Page 1 of 1

Half star! (built 4903 for Windows)

Posted: 08.11.2009, 20:19
by Teto
I've found a problems with stars if I use the built 4903 (not done by me, I must admit, but by Cartrite).
The problem is shown in another thread, you'll find below the links:
http://www.shatters.net/forum/viewtopic.php?f=4&t=12221&start=135#p119782
and
http://www.shatters.net/forum/viewtopic.php?f=4&t=12221&start=135#p119784 (thanks @abramson)

I put again the picture.
I have nothing to add. Except that's funny. :lol:
Teto.

Re: Half star! (built 4903 for Windows)

Posted: 10.11.2009, 01:41
by chris
Here's a patch that fixes this bug:

http://www.celestiaproject.net/~claurel/celest ... here.patch

The problem was a tricky floating point precision issue. The reason that stars were affected and not planets is that stars generally are much bigger than planets. The larger radius of stars was enough to cause a terrible rounding errors in a matrix inversion. For the fix, I changed the problem code to use a coordinate system scaled so that one unit = one planet (or star) radius.

--Chris