Robert,

thanks for the hints.


I have now another question:
The view of the scene with the three cameras is really dark and how can I
avoid the borderlines of the camera views ?

I have tried to change setLightingMode - but no success

The views are generated with a 40 degree offset:

view1->addSlave(camera1.get(), osg::Matrixd(),
osg::Matrixd::rotate(osg::inDegrees(  -40.0f),  0.0, 1.0, .0), true);
view1->setCamera (camera2.get());
view1->addSlave(camera3.get(), osg::Matrixd(),
osg::Matrixd::rotate(osg::inDegrees(  40.0f),   0.0, 1.0,  .0), true);

I have attached an image of the three camera views.


Thanks

Dieter


Unclassified Mail
-------------------------




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Robert Osfield
Sent: Thursday, 21 June, 2007 14:37
To: osg users
Subject: Re: [osg-users] osgProducer::Viewer -> osgViewer
multiplecameras


Forgot to mention, have a look at the source in src/osg/View.cpp, in
particular the setUpViewAcrossAllScreens() method for an example of
setting up view and projection matrix offset on slave cameras.

On 6/21/07, Dieter Pfeffer <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
>
> I would like to switch from osgProducer::Viewer to osgViewer::Viewer (or
> CompositeViewer).
>
> I need three adjacent camera views with a 40 degree view offset (done
before
> - with Producer::camera::setOffset); and I need three independent camera
> views with different scenes - therefore I thought to use CompositeViewer.
> However I don't know how to set the three adjacent camera views.
>
> In a next step I would like to use in one independent camera view the
output
> of the three adjacent cameras (render to texture).
>
>
> Any hint how I can configure the three adjacent camera views ?
>
> Is the osgprerender example a good starting point for rtt?
>
>
>
>
> Thanks Dieter
>
>
> Unclassified Mail
> -------------------------
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

<<attachment: viewer_3c.jpg>>

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

Reply via email to