[osg-users] osgviewerMFC pick problem

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Jul 1 19:13:02 PDT 2020



在 2020年6月29日星期一 UTC+8下午7:56:26,OpenSceneGraph Users写道:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/6e02bb88-92ea-40bd-a309-a134e8b23870o%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MFCpick.jpg
Type: image/jpeg
Size: 86860 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgpick.jpg
Type: image/jpeg
Size: 91334 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20200624_ceshi_pick.obj
Type: application/octet-stream
Size: 499 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MFC_OSG.cpp
Type: text/x-c++src
Size: 11496 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0001.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MFC_OSG.h
Type: text/x-chdr
Size: 1377 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200701/fc01f8e5/attachment-0001.h>


More information about the osg-users mailing list