The best way to accomplish that would be to use the viewer::computeIntersections method to get the geocentric coordinates of the mouse location. See the osgpick example for an example on how to do picking with osg.
After you have the geocentric coordinates, you can use the MapNode::findCoordinateSystemNode function in osgEarth to find the root osg::CoordinateSystemNode that decorates the osgEarth node. From there, you can the coordinateSystemNode->getEllipsoidModel()->convertXYZToLatLongHeight to get that lat/lon in radians.
On Wed, Aug 19, 2009 at 9:31 AM, VGEZJ (via Nabble) - No Reply <[hidden email]> wrote:
We can view the earth scene in OSG. but how use mouse to pick up the longitude and latitude of a points in 3D scene?