Hello Michael, On 11/25/2011 08:57 AM, Michael Raab wrote: > Imagine I want to render a sequence of viewports to a frame buffer object. > The result should be the same as if I've had rendered the same sequence to > the normal frame buffer. My understanding is that with the current > capabilities of OpenSG1.8 that is not possible if the sequence of viewports > contains shadowviewports. Is that correct?
yes, I can't think of a way to do that either. The FBOViewport manages the OpenGL FBO which makes it difficult to share it. > If yes, I was thinking about defining a class 'FBOWindow' which activates a > FBO object and renders an arbitrary list of viewports and should produce the > same result as if this list was rendered to std frame buffer. Do I miss > something? I think from a practical standpoint this can work. The only issue I see is that a Window in OpenSG is representing an OpenGL context, so in that sense a FBOWindow does not fit well into the picture. The FBOWindow would probably need to contain a pointer to the "real" Window and forward certain calls to it to make it work in places where OpenSG accepts windows. An alternative could be to separate the FBO and the FBOViewport by creating a FrameBufferObject class that represents the FBO and can be shared by multiple FBOViewports. Cheers, Carsten ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users