Hi Jason,

On Wed, 2 Jun 2021 at 19:37, [email protected] <[email protected]>
wrote:

> I'm not happy with how I'm currently doing this.  Right now each of those
> are a subclass of osgViewer::Viewer that creates a GraphicsWindowEmbedded
> as their context.  I make a slave camera for the viewer that is an RTT
> camera, and I'm setting the graphics contex ton the main camera to be null
> so it doesn't actually try to do anything to the frame buffer.  This is all
> a bit messy but seems to actually work so far.  I want them all to be
> actual osgViewer::View's at the very least and not just plain old
> PRE_RENDER osg::Camera's because I want them to have their own
> CameraManipulators and resizing logic.
>
> Is there a simpler way to tell an osgViewer::Viewer (or even an
> osgViewer::View) to render only to a FBO and not the frame buffer?  It
> seems like it shouldn't be all that bad but I'm not seeing it.
>

It should be possible to set the Texture you want to write to the VIew's
Camera's attachment list.

Cheers,
Robert.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/CAFN7Y%2BUfn30eswSf1Feg9sVAS7Zz-x_OWM4tZc9e6mZSM74Eaw%40mail.gmail.com.

Reply via email to