[osg-users] Using Vec3 == Vec3d

2008-03-11 Thread Anders Backman
Hi all. Im +working in a project where we are rendering objects on Center of Earth (ECC) so we have a z-coordinate of 6.7E6Meters. So obviously we need to transform objects close to origo to be able to render them. I noticed that I got quite a few anomalies in the rendering, flickering/jumping

Re: [osg-users] Using Vec3 == Vec3d

2008-03-11 Thread Robert Osfield
HI Anders, It isn't possible just to remap the Vec3 typedef from Vec3f to Vec3d, as you have found the their are many places that explicitly rely on floats. Places like BoundingBox and BoundingSphere could potentially be moved across to use Vec3d rather than Vec3f, and the way to do this would

Re: [osg-users] Using Vec3 == Vec3d

2008-03-11 Thread Anders Backman
Yes and no. Unfortunately in general physical simulation you don't have the luxury of culling away things that are not visible. So even for an airplane flying over vast areas, the visual part around the airplane can still be handled using float, and objects further away require less precision,