[osg-users] Camera render order and Threading models
Robert Osfield
robert.osfield at gmail.com
Thu Jan 7 09:44:59 PST 2021
Hi Ricard,
Both the RTT Camera and the main Camera should both be traversed in the
cull traversal within the same frame and accumulated modelview matrices
cached in the rendering backend to sent to the GPU as part of the draw
traversal together. Ordinarily this system should prevent problems like
your describe as the rendering backend is double buffered so that the cull
writes to the currently recording frames rendering backend, while the draw
traverses the previous rendering backend structures.
The behaviour you describe makes it seem like some state is being modified
across the frames, I don't have your app or data so can't say what this
might be. The best I can suggest is to investigate what state seems to be
changed inappropriately. It might be that you need to double buffer the
state that is being updated whilst it's being used for rendering.
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20210107/22ea8e7a/attachment-0001.html>
More information about the osg-users
mailing list