Hi,
Thanks everyone for the help. Taking a look at all your responses, I
realized my problem was a lot simpler than I was making it; since my
geometry only exists in a single plane all I needed to do was to set
the home position through the TrackballManipulator with the bounding
box of the geometry. It is fine to leave the projection matrix as
perspective since there is no depth to the scene. However, I have a
follow up now: how can I disable left click rotation and animation in
the manipulator? I've tried subclassing the TrackballManipulator class
and implementing some virtual functions with empty or just "return
true" bodies (startAnimationByMousePointerIntersection,
applyAnimationStep) but motion still continues after I release the
mouse button.
Thanks again,
Radu
On Wed 18 Jun 2014 05:05:00 AM EDT, Trajce Nikolov NICK wrote:
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 <[email protected]
<mailto:[email protected]>> 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
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
_______________________________________________
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