[osg-users] Custom cursor problem?

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


Hi,

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?

Thanks

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76738#76738







More information about the osg-users mailing list