[osg-users] Shader Update Latency?!

Johny Canes petrussijsma at gmail.com
Sat Feb 11 11:05:59 PST 2017


Hi,

This problem affects my shaders, since all my shaders rely on the correct view matrices.


robertosfield wrote:
> 
> By default the osgViewer::Viewer/CompositeViewer runs the update
> traversal before the camera matrices are set, this is done as camera
> manipulators might be tracking movement of nodes in the scene which
> are update in the update traversal so has to be run second.
> 
> One thing you could do is set the camera view matrix prior to the
> updateTraversal() method is called, or do the update of your Uniforms
> explicitly after the updateTraversal().


How can I run a function after this updateTraversal that you speak of?

Thank you!

Cheers,
Johny

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








More information about the osg-users mailing list