Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by stcredzero on Monday May 02, 2011 @08:25PM
(#2508481)
Of course, in particular since in most cases, one must communicate with the GPU using 32 bit floats. (I'm going to guess that this is changing, though.)
Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by marshray on Monday May 02, 2011 @08:59PM
(#2508567)
Yes, the recent generation of Nvidia GPUs has added hardware support for doubles. This was done to be able to sell hardware for use in financial analysis rather than any use in graphics.
Re:Why floats suck - accurate galaxy-wide coordinates in 128...
by stcredzero on Monday May 02, 2011 @09:38PM
(#2508652)
The Panda3D Python library uses double-precision floats, due to it's being a Python library. Currently, these are converted to 32 bit floats which are then sent to the GPU.
Once you've subtracted out the offset of your spaceship though, everything you view from there is easier done with float or double.