Hi Radu,

I have done 2D display in the past for mapping purpose and what I did, I
kept the default (TrackBall) manipulator and only changed the projection
matrix (viewer->getCamera()->setProjectionMatrixAsOrtho2D()). Then I was
able to pan, zoom my 2D view

Nick


On Wed, Jun 18, 2014 at 10:28 AM, Marco Kliko <marco_kl...@hotmail.com>
wrote:

> Hi,
>
> I think the best way is to go with:
>
> Code:
> Viewer.getCamera().setViewMatrixAsLookAt();
>
>
>
> Not sure if you can change these values on the fly while rendering, but
> maybe you can stop the rendering an after changing the values start the
> rendering again...
>
> You can do this with:
>
> Code:
> viewer.stopThreading ()
> viewer.startThreading()
>
>
>
> I'm not sure if it works, but it is worth the try...  ;)
>
> Thank you!
>
> Cheers,
> Marco
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=59800#59800
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to