Hi Robert,
Hi Sebastian,

The osg::GraphicsContext has a list of Operations that it runs on each frame, so just add your Operation to the GraphicsContext via from (include/osg/GraphicsContext header):

        /** Add operation to end of OperationQueue.*/
        void add(Operation* operation);

This list is run after the Camera's assigned to the GraphicsContext. See the GraphicsContext::runOperations() method in src/osg/GraphicsContext.cpp.

The other approach is to assign a Camera to the GraphicsContext that has a subgraph that contains the operations you want to call. The advantage with this approach is that the Camera's are all sorted according to their RenderOrder and RenderNumber, so you can control render order.

That is exactly what I was looking for.
Thanks a lot.

Cheers
Sebastian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to