[osg-users] Composite viewer & resize
robert.osfield at gmail.com
Tue Jul 1 03:23:18 PDT 2008
Does osgcomposite resize correctly for you? i.e.
I have just tried resizing and it all three views adjust their aspect
ratio correctly. This relies upon the Camera's projection matrices
being resized by the GraphicsContext itself, your own code shouldn't
need to handle the resize, unless of course you actually want to
implement some custom resize. You can control the resize behaviour of
the projection matrix via the Camera::setProjectionResizePolicy(..)
FIXED, /** Keep the projection matrix fixed, despite
HORIZONTAL, /** Adjust the HORIZOTNAL field of view on
VERTICAL /** Adjust the VERTICAL field of view on window resizes.*/
On Tue, Jul 1, 2008 at 10:59 AM, fabien rioli
<fabien.rioli at tharsis-software.com> wrote:
> Hi All,
> I'm currently having problems with the resize event redistribution with
> multiple views (in a composite viewer).
> It seems that only one of the viewers receives the resize event.
> See the attached example (.cpp) witch illustrate the problem (two viewers
> with a resize handler).
> In the resise handlers I change the projection matrix in order to show witch
> view gets the event.
> The following sreenshots shows different steps of the test.
> 1.jpg : no event
> 2.jpg : a first resize event ( the window have been moved)
> 3.jpg : a second resize event ( resise from the bottom right corner)
> From what I have understood from osgViewer/CompositeViewer.cpp (in the
> eventTraversal) the viewer witch receives the event is the one who have the
> I think that because every viewer in the same window is affected by the
> resizing, the may have to receive the event each other.
> Is this an intended behaviour ?
> Thank you in advance,
> Fabien Rioli
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users