Hi Tobias,

One shouldn't attempt to using a single camera between multiple views
within one frame.

If you want an application with multiple views then the best place to
look for an example and classes supporting it 2.0.  There is a new
osgViewer library that has a CompositeViewer class dedicated to role
of managing multiple views, its performance is excellent - there is no
additional performance hit with going with multiple views, and the
class itself provide the ability to share scene between different
views, or have different scenes in each view.  There is also an
osgcompositeviewer example that illustrates how one manage the
different Views.

Try to do multiple independent views 1.2/osgProducer/Producer is
technically possible for certain constrained usage models, but its
awkward and not well supported.

Please go and try out 2.x and the osgcompositeviewer, it should just
solve your multiple view problems and do so in clean and logical way.

Robert.

On 8/2/07, Tobias Münch <[EMAIL PROTECTED]> wrote:
> Hello osg users
>
>  I have a single camera that should render different views of a scene within
> ONE FRAME. As result every frame should contain all rendered views side by
> side. Therefor I set different projection rectangles and render views
> (setViewByMatrix) to the camera while processing a frame.
>
>  The problem is, that the function viewer.frame() or camera.frame() always
> render only for the last adjusted camera setting.
>
>  Is there a solution to render the scene with one camera several times
> within one frame? For instance by using the FrameBuffer...?
>
>
>
>  I allready tried to solve the problem by using a couple of cameras to
> render different views within one frame, but with very poor performance and
> framerate.
>
>  Thanks to all...
>  Regards, Tobias
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to