[osg-users] osgviewerMFC pick problem

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Mon Jun 29 04:55:59 PDT 2020


Does this happen with all models?

The underlying intersection code will be the same whether you using osgick
code integrated with osgviewerMFC or using the osgpick.  I don't know why
you mention vsgviewer as it doesn't having picing code it, so do you add it?

The thing that will change with the different viewer might be the mouse
coordinates or the projection matrices used.  The other possibility is that
it's just fluke and it just happens that with your modified osgviewerMFC
it's showing problems.

If it's not a viewer specific issue then numerical precision issues can
cause intersection misses.  The
osgUtil::IntersectionVisitor/LineSegmentIntersector that underpins picking
has had various improvements over the years to help minimize this.  You can
also select double precision maths.

You don't mention anything about your data, or the OSG version you are
using so we can only provide general statements.   You'll need to provide
more information about your data, OSG version, the exact code modifications
you've made for us to be provide any further help.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200629/10626ef8/attachment.html>


More information about the osg-users mailing list