News for hackers. Stuff that matters.
Re:Why floats suck - accurate galaxy-wide coordinates in 128... by palish on Monday May 02, 2011 @08:14PM (#2508458)
Thank you for the equally detailed response. I apologize.

Did you fix the problem? I don't know how I'd solve it.

Re:Why floats suck - accurate galaxy-wide coordinates in 128... by JabavuAdams on Monday May 02, 2011 @08:26PM (#2508487)
In our case, we were doing a port of a PC game to PS2. We were chopping up the PC levels to try and fit them into memory (~16MB).

Unfortunately in chopping them up, they were not re-centered. So, even though one of these new smaller levels might not be large, if the whole thing was far from the origin, madness ensued.

El-cheapo solution: pre-process the level geometry to centre it again.

Not elegant, but expedient.