[osg-users] ComputeIntersections and traversal mask

7 views
Skip to first unread message

Aurelien Albert

unread,
Oct 5, 2011, 9:09:07 AM10/5/11
to osg-...@lists.openscenegraph.org
Hi,

I use the following graph :


Code:
Root
|
|---- Group_1 (node mask 0x7FFFFFFF)
|
|---- Group_2 (node mask 0x80000000)

Group_1 and Group_2 have childs, with node mask 0xFFFFFFFF :


Code:
Group_1
|
|---- Child_11 (node mask 0xFFFFFFFF)
|
|---- Child_12 (node mask 0xFFFFFFFF)

Code:
Group_2
|
|---- Child_21 (node mask 0xFFFFFFFF)
|
|---- Child_22 (node mask 0xFFFFFFFF)


But when I use osgViewer::View::computeIntersections like this :

pView->computeIntersections(x, y, intersections, 0x80000000)

Child objects of Group_1 are intersected... like if Group_1 children are traversed by the intersector

Is there any reason ? or did I miss something ?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43204#43204

_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply all
Reply to author
Forward
0 new messages