"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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to