Hi Robert,

Yes, that's what I did first. But unfortunately my 4 views have to be 
embededded in
windows (derived from CDocuemntView on Windows). Creating a view for each 
window also
creates a new graphics context, since each view has its own window handle. 
Therefore
much memory is consumed, which blows my app, if I load a bigger scene (~250k 
polys, on a
Quadro 580FX).

Any idea on how I could convince each view of a composite viewer to share the 
graphics context?

Regards,
Carsten

_________________________

Carsten Scharfe
Software Developer
Experiment Software ESIM 

dSPACE GmbH
Rathenaustraße 26
33102 Paderborn
Germany

Tel.:  +49 5251 1638-1920
http://www.dspace.com
mailto:[email protected]
_________________________


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Osfield
Sent: Monday, October 10, 2011 4:19 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

Hi Casten,

If you have 4 independent views then you should use the
CompositeViewer class.  osgViewer::Viewer is for a single View.  See
the osgcomposite viewer example.

Robert.

On Mon, Oct 10, 2011 at 2:37 PM, Carsten Scharfe <[email protected]> wrote:
> Hi!
>
> I've search the archives, but could not  find any posts on this topic.
>
> I want to setup a osgViewer::Viewer with 4 cameras, which can be controlled
> independently from
> the master camera, if the user click-drags in the corresponding viewport.
> Creating the viewer and 4 slaves is not a problem, but to manipulate each
> cam separately.
> I have an implementation of my project with the composite viewer, which
> works, but due to
> some technical implications, I want to switch to a single viewer.
>
> I tried to set setAllowEventFocus(true) to the master and slave cams, but
> that did not work.
>
> Can anybody give me a hint on how to setup the viewer correctly or point me
> to an example
> where this is done?
>
> Cheers,
> Carsten
> _________________________
>
> Carsten Scharfe
> Software Developer
> Experiment Software ESIM
>
> dSPACE GmbH
> Rathenaustraße 26
> 33102 Paderborn
> Germany
>
> Tel.:  +49 5251 1638-1920
> http://www.dspace.com
> mailto:[email protected]
> _________________________
>
>
>
>
> _______________________________________________
> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to