[osg-users] AutoTransform cannot be picked up correctly

50 views
Skip to first unread message

OpenSceneGraph Users

unread,
Feb 14, 2020, 3:29:10 AM2/14/20
to osg-...@lists.openscenegraph.org
Hi, All
AutoTransform cannot be picked up correctly when it is a child node of LOD. Does anyone have the same problem as me? How did it work out? 
Thanks


 

osgpick.cpp

Rain Summer

unread,
Feb 16, 2020, 4:28:23 AM2/16/20
to OpenSceneGraph Users
OSG version is 3.6.4

在 2020年2月14日星期五 UTC+8下午4:29:10,OpenSceneGraph Users写道:

Robert Osfield

unread,
Feb 19, 2020, 9:39:47 AM2/19/20
to OpenSceneGraph Users
Thanks tor the test program. I've got it compile on my Linux system with just removing the Windows headers you added, why were these added?

I can confirm the problem, I can pick the cessna without the AutoTransform by zooming in but not the one under the AutoTransform.  I haven't yet had a chance to look into why this happening.  I'm really busy with other work right now so can't look into this right away.   If you want to look into it yourself I'd recommend stepping through how the osgUtil::IntersectionTraversal is handling the AutoTransform.  It'll be a bit non standard as the AutoTransform is view dependent, which the IntersectionTraversal isn't view dependent so there is potential for the two different traversals have differing solutions.  In your usage case your wanting it to behave like IntersectiinTraversal assumes the same matrix that that was computed for the rendering, however, this isn't the general case, intersections can potentially can happen for any direction, or any one of multiple views.

Rain Summer

unread,
Feb 22, 2020, 10:31:58 PM2/22/20
to OpenSceneGraph Users
Thanks for your reply. I changed it based on osgPick, and since I only use OSG on Windows, I added those headers.

At present, I have no time to find out the problem. I have avoided this problem, and I will study it when I have time. Thanks again.

在 2020年2月19日星期三 UTC+8下午10:39:47,Robert Osfield写道:
Reply all
Reply to author
Forward
0 new messages