Hello,

we would like to combine OSG with other renderers, which are called
independent from OpenScene Graph. The Problem is, that for this to work,
all renderers have to use the same near and far clipping planes.

To do this, we collect the near and far clipping planes, required by the
different renderers, before we start rendering and combine them to an
projection mMatrix, which is then used by all renderers.

At the moment I'm using osgUtil::SceneView to render the Scene Graph.
The problem is, that the clipping planes are calculated in
SceneView::cull. But after calling cull it seems to be impossible to
change the projection matrix again, as it is already stored in the
renderLeaf objects and a change has no effect, before cull is called a
second time.

Is it possible to get the clipping planes independent from the culling?
Or is it somehow possible, to change the projection matrix after
culling? Or would you generally recommend a completely different
approach to combine OSG with other renderers?

We already considered integrating the other renderers in Scene Graph
nodes, but would prefer, to keep them apart to reduce the dependence on
each other.

Best Regards,
Roland
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to