[osg-users] Camera resize vs setViewport
Ravi Mathur
ravidavi at utexas.edu
Fri Feb 24 07:18:11 PST 2017
Thanks Robert. But still, why does resize() not accept x/y arguments? As it is now, it cannot be used with CompositeViewer where Cameras are distributed around the window with various Viewports. Is it just intended for use with the regular osg::Viewer?
robertosfield wrote:
> Hi Ravi,
>
> The resize is primarily for responding to window resize events where
> you need to adjust the viewport and projection matrix to provide
> sensible on screen behaviour.
>
> The setViewport() method just sets the viewport, it doesn't try to do
> anything with any other paramters such as the projection matrix.
>
> Robert.
>
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70340#70340
More information about the osg-users
mailing list