[osg-users] Custom cursor problem?

tom joe akilan.arokiaswamy at community.isunet.edu
Tue Sep 24 04:13:17 PDT 2019


I calculate cursor position in osgEarth. My Graph is like,

osg::PositionAttitudeTransform (PAT)
cursor Node

the PAT's setPosition is computed from,

Geopoint srcMap(src_SRS, lon, lat, height);
srcMap.transform(dst_SRS, dstMap);
dstMap.toWorld(SRS, cursorPosition);

All works fine. But when I vary the height, the cursor moves horizontal.
Expected it to move between viewpoint and earth (perpendicular to earth).
The idea is to visualize the cursor depth variation in stereo.
What way could it be done?


Read this topic online here:

More information about the osg-users mailing list