Hi Paul,

On Thu, Jan 29, 2009 at 4:10 AM, Paul Pocock
<[email protected]> wrote:
> Am I to assume correctly that osgViewer::Viewer (slave cameras) as
> opposed to CompositeViewer is more appropriate for a cave or powerwall
> environment?

This is correct.  Although you could have a CompositeViewer that has
View with slaves which render a cave/powerwall, and another View that
render in insert into it, or a side display.  All the slave
functionaity in Viewer comes from osg::View, so it's all identical to
what CompositeViewer can do, except the later can do one or many of
them.

In you case Viewer is probably sufficient for your needs, but even if
you did end up using CompositeViewer, the apporpriate thing to do
would still be use a View containing slave cameras for a
cave/powerwall setup so this part wouldn't change.


> Do the slave cameras inherit the master cameras ProjectionMatrix/View
> Frustrum or do these need to be setup independently?

The can do both.  But default the slave cameras will inherit the part
projection and view matrix, then multiply these by the offset matrices
that you pass in when you add slaves.  You can mix and match different
types of slaves as well - for instance the
osgViewer::View::setUpViewAs3DSpehericalDisplay has six RTT slave
Camera that render to a cube map that are relative to the master
Camera, and then one post render slave Camera that works in absolutely
reference frame which does the final distortion correction render
using the cube map.  The Camera::setReferanceFrame(..) method on the
slave controls where the salve inherits the view and project matrix or
not.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to