HI Isaac, On 26 April 2013 07:10, Isaac Cho <[email protected]> wrote: > I want to implement get z-buffer info. for only specific node. > > for example, there are 5 different nodes in the graph, I want to get depth > information after draw node1 before other node 2~4. > > I tested RTT camera, but it significantly reduced FPS. I want to use only one > camera. > > I'm testing cullcallback but still I couldn't find answer. Is there any > function I can control render order (e.g. write gray image after draw a > specific node)?
The only way to get the depth buffer is to render it which will require a RTT Camera, this could just contain the nodes you wnt to test. You can't do depth tests in the cull traversal as this traversal doesn't generally have any access to the graphics context. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

