Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Greg Myers
Hi J-S, Thanks for the explanation. I really appreciate it. I'm using the computeIntersections function for osgViewer::View so it calculates the line segment start and end points for me but now that I'm armed with the knowledge you gave me about the failing condition I can try and do the in

Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Jean-Sébastien Guay
Hi Greg, Kudos on taking the initiative to debug into the OSG source yourself. I don't think many would have been able to answer your question of why the intersection test was failing, so that was the good thing to do. The last test ( line 16 ) is failing. From reading the web I understand

Re: [osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-11 Thread Greg Myers
Looks like my guess was wrong. It looks like the bounding sphere does take into account the scale. I looked into the intersection test in LineSegmentIntersector and found that the line segment is in fact intersecting the sphere at two points but one of the final tests is failing. Here is the

[osg-users] Picking node with scaled positionattitudetransform as parent

2010-06-09 Thread Greg Myers
Hi, I'm pretty new to OSG so I could be doing this totally wrong but... I have a scene that contains the earth and a few (3ds) models. Each model has a PositionAttitudeTransform as its parent. I need to be able to pick each model using the mouse and I have successfully done that when my camer