LOD Callback

19 views
Skip to first unread message

marco....@elmansrl.eu

unread,
Sep 24, 2021, 3:14:28 AM9/24/21
to OpenSceneGraph Users
Hi,

for the lod below, for which, related to the range loading two different models....

osg::ref_ptr<osg::LOD> cargoShipLOD = new osg::LOD;
cargoShipLOD->addChild(cargoModelNoDetailed.get(), 600.0, FLT_MAX);
cargoShipLOD->addChild(cargoModelDetailed.get(), 0.0f, 600.0);
cargoShipLOD->setCullingActive(true);
cargoShipLOD->setRangeMode(osg::LOD::RangeMode::DISTANCE_FROM_EYE_POINT);

is it possible to understand which is the distance between lod and camera?

In the second way, if I add an update callback to a lod node, is there a solution to understand the lod state?

Thanks
Reply all
Reply to author
Forward
0 new messages