Alberto Luaces wrote:
> "John Galt" writes:
> 
> 
> > Hi,
> > 
> > I have setup my view as
> > 
> > view->getCamera()->setViewMatrixAsLookAt(eye, center, up);
> > 
> > eye, center and up are osg::Vec3 elements.
> > 
> > I have my eye and up as constant. When I change my center vector, the 
> > Camera's position is changing!
> > 
> > Can anyone explain why? Shouldn't the camera's position (X,Y,Z) be fixed if 
> > the eye vector is constant?
> > 
> 
> John,
> 
> eye and center are not vectors but points. When you use them in
> setViewMatrixAsLookAt, you actually mean "from eye to center".
> 
> --
> Alberto
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


Hi Alberto,

Even if that is the case, when my eye is fixed and center is changing, should I 
see the view as a camera that is rotating about a fixed point? Why is it that I 
am seeing the camera rotate about a moving point?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26447#26447





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to