Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ChenKe404 opened this issue May 26, 2024 · 2 comments

Comments

@ChenKe404
Copy link

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?

@ChenKe404
Copy link
Author

OSG version 3.6.5

@ChenKe404
Copy link
Author

I see,I need to set a read callback to read high detail LOD files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant