Skip to content

IntersectionVisitor set LOD selection mode as USE_HIGHEST_LEVEL_OF_DETAIL is not working #1325

Closed
@ChenKe404

Description

@ChenKe404

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

somebody help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions