I want use IntersectionVisitor to do intersection with highest level detail of LOD, so I call setLODSelectionMode(USE_HIGHEST_LEVEL_OF_DETAIL),but the results always the current rang LOD.
the code for setting the mode:
osgUtil::IntersectionVisitor iv;
osgUtil::PlaneIntersector pi;
iv.setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); // Neither will TRAVERSE_ALL_CHILDREN
iv.setLODSelectionMode(osgUtil::IntersectionVisitor::USE_HIGHEST_LEVEL_OF_DETAIL);
iv.setIntersector(pi);
iv.apply(*modelnode); // modelnode is the root node
I want use
IntersectionVisitor
to do intersection with highest level detail of LOD, so I callsetLODSelectionMode(USE_HIGHEST_LEVEL_OF_DETAIL)
,but the results always the current rang LOD. the code for setting the mode:somebody help?