[osg-users] How to simulate camera distortion ?

Robert Osfield robert.osfield at gmail.com
Fri Dec 8 05:53:03 PST 2017


Hi Jishen,

Have a look at the osgdistortion example, this use a render  the 3d
scene to a texture, then a rendering this texture to the screen using
a distorted mesh.   Alternatively you can do wha Bjorn suggested and
use a simple quad and shader to do the distortion during the second
pass.

Robert.

On 8 December 2017 at 11:17, Jishen Li <lxx9xx at gmail.com> wrote:
> Hi,
>
> I would like to simulate a real camera with intrinsics and distortion parameters.
>
> To make it more clear: I want to have a viewer, which I could assign a real camera model (pinhole, fisheye, etc) to, then I could get the real camera view. (I want to record the sequence for some later processing).
>
> I have checked the source code of osg/Camera, seems it doesn't support distortion. I wonder how I can do it.
>
> ...
>
> Thank you!
>
> Cheers,
> Jishen
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72551#72551
>
>
>
>
>
> _______________________________________________
> 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