[osg-users] 2D manipulator only
Bruno Oliveira
bruno.manata.oliveira at gmail.com
Mon Apr 11 10:05:54 PDT 2016
Is there no such functionality in OSG, using some other manipulator?
2016-04-11 17:35 GMT+01:00 Robert Osfield <robert.osfield at gmail.com>:
> Hi Bruno,
>
> On 11 April 2016 at 16:21, Bruno Oliveira <bruno.manata.oliveira at gmail.com
> > wrote:
>
>> How do I allow my mouse manipulator (actually an
>> osg::TrackballManipulator) to allow moving in 2D plane only?
>>
>> This is for vieweing an image and I want something similar to google maps
>> or so
>>
>
> The TrackballManipulator is a 3D manipulator and has no support for
> constraining to a 3D plane.
>
> If you want 2D movement then you will need to write your own
> "MapManipulator" or just set the the Viewer's master Camera's ViewMatrix
> directly with the frame loop.
>
> Robert.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160411/50fd04d4/attachment-0003.htm>
More information about the osg-users
mailing list