osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

earth manipulator throwing doesn't work with ObjectID picker

Open keince opened this issue 2 years ago • 0 comments

This bug can be duplicated doing the following modifications to the osgearth_pick.cpp file...

Replace line 278 given by:

app.viewer.setCameraManipulator( new EarthManipulator() );

With the lines:

EarthManipulator* em = new EarthManipulator(); em->getSettings()->setThrowingEnabled(true); app.viewer.setCameraManipulator( em );

When running the osgearth_pick example, throwing in the earth manipulator has no effect.

Disabling the ObjectID picker by commenting out the following lines in osgearth_pick.cpp:

//app.picker->setView(&app.viewer); // which view to pick? //app.picker->setGraph(app.mapNode); // which graph to pick? //app.mapNode->addChild(app.picker); // put it anywhere in the graph

The throwing action in earth manipulator works as expected.

keince avatar Aug 20 '21 04:08 keince