[osg-users] double precision in position values of objects

Thrall, Bryan bryan.thrall at flightsafety.com
Wed Oct 17 07:37:28 PDT 2007

Fuat ULUBATLI wrote on Wednesday, October 17, 2007 6:54 AM:
> hi all,
> i want to set the x,y,z of 3D objects as "double" since float is not
> sufficient for me due to large position values. how can i do this?
> thanks in advance...
> fuat

OpenGL generally does not support double precision, so the best way to
do this is place a transform (such as osg::MatrixTransform) above the 3D
object that positions it, and use floats in the object's geometry.

Bryan Thrall
FlightSafety International
Bryan.Thrall at flightsafety.com

More information about the osg-users mailing list