[osg-users] setting 2D manipulator

Robert Osfield robert.osfield at gmail.com
Wed May 31 00:47:12 PDT 2017


Hi Bhanu,

On 31 May 2017 at 05:55, Bhanu Chandra <bhanuchandra151 at gmail.com> wrote:
> How can i set 2D manipulator instead of 3D manipulator and also how can i set Units (width units) to meters or feet or Miles etc...

The core OSG doesn't have any 2D camera manipulators so you'll need to
write your own.  It's not essential to use a osgGA::CameraManipulator,
you can just set the viewer's Camera view+projection matrices yourself
on each new frame if you so wish.

The core OSG itself doesn't have any specific units, so you typically
can interpret than as you wish.  The general assumption for most
loaders and classes that require specific units (such as
osg:EllipsoidModel) is that they load to meters.  Most loaders just
honour the units of the original data so it's not a hard fast rule.

Robert.



More information about the osg-users mailing list