[osg-users] odd scene resize
Robert Osfield
robert.osfield at gmail.com
Wed Sep 7 01:03:16 PDT 2016
Hi Gianni,
The osgViewer automatically adjusts the field of view on the camera
according to the aspect ratio adjustment setting, you can change this,
from the osg::Camera header:
enum ProjectionResizePolicy
{
FIXED, /**< Keep the projection matrix fixed, despite
window resizes.*/
HORIZONTAL, /**< Adjust the HORIZONTAL field of view on
window resizes.*/
VERTICAL /**< Adjust the VERTICAL field of view on window resizes.*/
};
/** Set the policy used to determine if and how the projection
matrix should be adjusted on window resizes. */
inline void setProjectionResizePolicy(ProjectionResizePolicy
policy) { _projectionResizePolicy = policy; }
/** Get the policy used to determine if and how the projection
matrix should be adjusted on window resizes. */
inline ProjectionResizePolicy getProjectionResizePolicy()
const { return _projectionResizePolicy; }
On 7 September 2016 at 08:51, Gianni Ambrosio <g.ambrosio+osg at gmail.com> wrote:
> Dear Robert,
> why resizing a (non-Qt) window horizontally then the scene is resized accordingly while resizing the window vertically is has no effect on the scene size?
>
> Please see attached images.
>
> Regards,
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68543#68543
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list