Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

2011-10-12 Thread Carsten Scharfe
Thanks for pointing me to the example, Robert.
That helped. Obviously, I was too blind to see the part in the example.

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:cscha...@dspace.de
_


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Monday, October 10, 2011 4:45 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

Hi Carsten,

On Mon, Oct 10, 2011 at 3:32 PM, Carsten Scharfe cscha...@dspace.de wrote:
 Any idea on how I could convince each view of a composite viewer to share the 
 graphics context?

CompositeViewer works just fine with a sharing a context between all
views.  The osgcompositeviewer does *EXACTLY* this.  Please read the
example.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Using osgViewer::Viewer with independant slave cameras

2011-10-10 Thread Carsten Scharfe
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:cscha...@dspace.de
_




___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

2011-10-10 Thread Robert Osfield
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 cscha...@dspace.de 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:cscha...@dspace.de
 _




 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

2011-10-10 Thread Carsten Scharfe
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:cscha...@dspace.de
_


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] 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 cscha...@dspace.de 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:cscha...@dspace.de
 _




 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Using osgViewer::Viewer with independant slave cameras

2011-10-10 Thread Robert Osfield
Hi Carsten,

On Mon, Oct 10, 2011 at 3:32 PM, Carsten Scharfe cscha...@dspace.de wrote:
 Any idea on how I could convince each view of a composite viewer to share the 
 graphics context?

CompositeViewer works just fine with a sharing a context between all
views.  The osgcompositeviewer does *EXACTLY* this.  Please read the
example.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org