[osg-users] double vs. float precision in camera position +osg::MatrixTransform question

Roni Rosenzweig roniros at gmail.com
Tue Mar 4 12:27:30 PST 2008


Thanks  :-)
Roni

----- Original Message ----- 
From: "Robert Osfield" <robert.osfield at gmail.com>
To: "OpenSceneGraph Users" <osg-users at lists.openscenegraph.org>
Sent: Tuesday, March 04, 2008 10:56 AM
Subject: Re: [osg-users] double vs. float precision in camera position
+osg::MatrixTransform question


> On Tue, Mar 4, 2008 at 6:19 AM, Roni Rosenzweig <roniros at gmail.com> wrote:
> > Hi Robert
> > I found the problem and fixed it:
> > Turns out is wasn't the MatrixTransform but how I set the camera
position.
> > I used:
> > getCamera()->setViewMatrixAsLookat(eye, center, up)     which receives
> > osg::Vec3f instead of osg::Vec3d.
> > when I switched to:
> > getCamera()->setViewMatrix(osg::Matrixd::lookat(eye, center, up)) (which
> > receives osg::Vec3d)
> > the problem was completely solved.
> >
> > Is there a reason why setViewMatrixAsLookat doesn't receive osg::Vec3d??
>
> An oversight...  I'll add it in now as an option.
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list