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 <[email protected]> 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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to