<div dir="ltr">That's perfect! Thank you very much!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-06 1:52 GMT+01:00 Jannik Heller <span dir="ltr"><<a href="mailto:scrawl@baseoftrash.de" target="_blank">scrawl@baseoftrash.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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.<br>
<br>
Something like this should work. There may be a more elegant solution.<br>
<br>
            // instead of mViewer->frame(); syncCamera(); :<br>
<br>
            mViewer->eventTraversal();<br>
            mViewer->updateTraversal();<br>
            syncCamera();<br>
            mViewer->renderingTraversals();<br>
<br>
Cheers,<br>
Jannik<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=66738#66738" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=66738#66738</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>