Hi Alexey,

Use getCamera()->getViewMartix*() methods is the appropriate thing to
do.  You might want to split the viewer.frame() into it's constituent
parts to make sure that you can the view matrix that is appropriate
for the frame you are working on - the viewer.updateTraversal() method
updates the view matrix on each frame.  Have a look at the source to
viewer.frame() to see what it's made from.

Robert

On Sat, Feb 21, 2009 at 1:33 PM, Alexey Yurov <[email protected]> wrote:
> Hi all, it's my first expirience in openscenegraph (v2.6), and i need ur help 
> plz. In my application i need to get camera position every frame, i try do 
> this:
>
> Code:
>
> while(!viewer.done())
> {
>  viewer.getCamera()->getViewMatrixAsLookAt(eye, center, up);
>  //eye hold camera pos???
>  viewer.frame();
> }
>
>
>
> or there is another way to get it?
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=7145#7145
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to