I'm using osg in an application that allows the user to manipulate the scene like a very simple modeling program.  Once the scene is setup, I'd like to then export the current scene graph, viewport and all, into a format that can be rendered by a raytracer such as Yafray, Povray, or Renderman.

I could simply create a ReaderWriter class or another visitor to walk the graph and write out the appropriate format, but I'd like to take advantage of scenegraph culling because the scene might be extremely large.  The purpose would be to render the current view, but utilizing an external renderer instead.  So large portions of the scene might be not viewable due to viewport culling or some other occlusion, so the hidden objects need not be exported.  For a very large scene such as a city database, this is important.

Does anyone have any suggestions?  Basically I'd only like to visit the nodes that would be sent to the OpenGL layer during a typical cull:draw call.

Thanks
John
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to