Hi everybody,

I try to render a small sub-tree of my scenegraph to a depth texture. 
For this
purpose I use a combination of SimpleStageNode, VisitSubTreeNode and
FrameBufferObject.

The sub-tree is encapsulated in an own class with a 
renderDepthImage()-method on it, which does the depth to texture rendering.
I'm now wondering about the kind of window and viewport to use in the
class for the render call.
Currently, I pass a PassiveWindow with a Viewport pointing to the root of
the complete scenegraph to the class after I created it. It works, but I 
really
want to avoid the window passing.
Is there a way to let the class hold it's own window and viewport to do 
the rendering step?
I previously tried to create the PassiveWindow in the class constructor 
and use
it with a viewport pointing to the VisitSubTree root or the SimpleStage 
parent,
but both without success. I suppose, there is a context problem with the 
Passive
Window...

Thanks in advance,
Bastian


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to