HI Martin,

The svn/trunk and OSG-3.2 versions of the OSG have a
CameraManipulator::updateCamera(Camera&) method that by default just
sets the Camera's ViewMatrix, but you can modify other parameters in
your CameraManipulator subclass.

Robert.

On 9 April 2014 15:41, Martin Siggel <martinsiggel+...@gmail.com> wrote:
> Hi,
>
> we'd like to implement our own camera manipulator class in order to have
> more control of the projection matrix.
>
> What we want to implement is e.g. a zooming function in othografic
> projection.
> This can only be done by adjusting the FOV of the ortho frustum.
>
> Also, we would like to implement a "Grab" panning, where a object maintains
> under the cursor, while panning the scene (as known from several 2D
> programs). Here again, the projection matrix has to be known inside the
> camera manipulator in order to sync mouse movements with the appropriate
> movements in world coordinates.
>
> What we don't know, how to implement this correctly, since the projection
> matrix is updated somewhere automatically by the values of the Manipulator
> (position, look-at, up-direction ...)
>
> Do you have some advice?
>
> Cheery,
> Martin
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to