[osg-users] Sync main camera with slave camera rotation
Bruno Oliveira
bruno.manata.oliveira at gmail.com
Wed Apr 6 00:50:07 PDT 2016
That's perfect! Thank you very much!
2016-04-06 1:52 GMT+01:00 Jannik Heller <scrawl at baseoftrash.de>:
> Hi,
>
> The camera manipulator (which sets the main camera's view matrix) is
> updated at the end of the update traversal. So, you need to make sure your
> sync code runs after the update traversal and not before - else you'll be
> working with the last frame's data which is probably what's introducing the
> flicker.
>
> Something like this should work. There may be a more elegant solution.
>
> // instead of mViewer->frame(); syncCamera(); :
>
> mViewer->eventTraversal();
> mViewer->updateTraversal();
> syncCamera();
> mViewer->renderingTraversals();
>
> Cheers,
> Jannik
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66738#66738
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160406/af634fbc/attachment-0003.htm>
More information about the osg-users
mailing list