Skylark wrote:
> 
> If that's the case, then you're probably using getParent(0) to go up in 
> the graph, instead of using the intersection's node path.


Yes, i am going 

osg::Node* node = hitr->nodePath.back();

if (node && node->getNumParents() > 0)
{
node = node->getParent(0);
...
}

now im trying this but its crashing:

osg::Node* node;
                                        
while (!hitr->nodePath.empty() && (node = hitr->nodePath.back()) != NULL)
{
// check the node
...
}

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





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

Reply via email to