[osg-users] When gets the view matrix of a camera ipdated

Werner.Modenbach at texion.eu Werner.Modenbach at texion.eu
Sat Nov 18 08:06:52 PST 2017


Hi all,
I have written some classes for special effects like ambient occlusion or shadow.
All those classes are using their own prerender cameras. The cameras use the initial draw callback for updating their view matrices by using the main cameras view matrix.
Unfortunately it looks like the rendered shadow/ ambient occlusion matrices correspond to the previous frame. So my guess is that the view matrix of the main camera isn't updated from the camera manipulator at the time of the callback.
Is there any better callback I can use for that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171118/b19b3070/attachment.html>


More information about the osg-users mailing list