Hi Zach,

On 11/27/06, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hi John,

I didn't know about RTT.  Looking at the osgprerender example, this may be
the way to go, although it looks like a whole redesign for me.  Anybody know
which is best?  fbo, fb, or pbuffer on the latest cards?

osg::CameraNode (now osg::Camera :-) supports FBO, Pbuffer and frame
buffer with a automatic fallback mechanism for when the requested
facility isn't present.  FBO is the way to do things with modern
cards, so you'll find that the RenderTarget for FBO is selected for
the OSG's RTT examples, just follow their lead and you'll be fine.

As for camera inserts you needn't use RTT, the osgmultiplecameras
example provides an example of a rear view mirror.  It doesn't have
the black border though, to do this you'd need to let the camera do a
clear of the viewport then decorate the subgraph below with a seperate
osg::Viewport attached to a StateSet to reduce the viewport size down.
This isn't really too much different from using a two overlapping
Cameras though, although it will save on a clear, but even the
overlapping Cameras approach can get round this by disabling the clear
for the second camera.

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

Reply via email to