Does osgcomposite resize correctly for you? i.e.
osgcompositeviewer cow.osg
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(..)
options are:
enum ProjectionResizePolicy
{
FIXED, /** Keep the projection matrix fixed, despite
window resizes.*/
HORIZONTAL, /** Adjust the HORIZOTNAL field of view on
window resizes.*/
VERTICAL /** Adjust the VERTICAL field of view on window resizes.*/
};
Robert.
> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Hi Fabien,
Does osgcomposite resize correctly for you? i.e.
osgcompositeviewer cow.osg
osgViewer::CompositeViewer directs events to camera with focus. If
you want different behavior you can always override the
CompositeViewer::eventTravesals() method.
Robert.