I don't understand what I'm doing wrong.  Here's what my Infovisitor outputs:

osg:Node:Group
  osg:Node:Group db
    osg:Node:OcclusionQueryNode OQNode_0
      osg:Node:Group TableChairs
        osg:MatrixTransform:MatrixTransform
          osg:Node:ProxyNode
            osg:Node:Group db
              osg:Node:Group Chair1_84
                osg:Geode:Geode p3004
                  osg:Drawable:Geometry
                  osg:Drawable:Geometry
                osg:Geode:Geode p1077
                  osg:Drawable:Geometry
        osg:MatrixTrnasform:Matrixtransform
          osg:Node:ProxyNode
            osg:Node:Group db
              osg:Node:Group Chair1_84
                osg:Geode:Geode p3004
                  osg:Drawable:Geometry
                  osg:Drawable:Geometry
                osg:Geode:Geode p1077
                  osg:Drawable:Geometry

...another 2 times, for a total of 4 Chair1_84s.

using the polytope intersector, I collect the hits into a group but use 
grp->containsNode(hit) to avoid the ~5000+ hits because all I'm interested is 
how many (logical) objects there are visible in the scene. I thought I might be 
able to store the matrixtransform in the group node, getting 4 different 
matrixtransforms but that's not the case.  I see 4 chairs on my screen, but can 
only find one distinct node.  

Why? How can all 4 chairs I see on the screen all reference the same 
matrixtransform?

Sterling

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to