[osg-users] Off screen image capture distorted
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Mon Aug 1 04:15:02 PDT 2016
Hi Derek,
> When running the osgscreencapture example with parameter --pbuffer or --pbuffer-only and high aspect ratios produce distorted images (see attachments). Is there any way I can avoid this stretching when doing off screen image captures?
Looking at the example it seems, the pbuffer is not resized correctly.
If I start the example with the monitors resolution, the viewport and
the PBO size match.
So basically the example is not taking the viewport size into account.
You can fix this by passing the correct viewport size to the callback.
Robert might know some better solution though.
Cheers
Sebastian
>
> Thanks,
> Derek
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68212#68212
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/circle_677.zip
> http://forum.openscenegraph.org//files/images_364.zip
>
>
> _______________________________________________
> 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