Hi Kama, I have just tried osgkeyboardmouse with fountain.osg in the SVN version of the OSG and toggling to 'p' doesn't trintroduce any crashes no matter where I pick.
The line of code you've quoted looks correct to me, I'm surprised this one would crash. I'll be making another dev release this morning. Once I've made this could you try this out to see if the problem reaccurs. If it does could you provide a full stack trace. Robert. On Thu, Mar 20, 2008 at 3:19 AM, Kama <[EMAIL PROTECTED]> wrote: > > > Hi, when i run the osgkeyboardmouse example in OSG2.2.0 with "fountain.osg" > model, it was quite right in "LineSegmentIntersector" mode, but while i > pressd the 'P' key to switch to "PolytopeIntersector", then it was > terminated by assert! But, when i run it with "cow.osg" model or else, it > was OK, i found that the problem was caused here: > " parent = > (nodePath.size()>=2)?dynamic_cast<osg::Group*>(nodePath[nodePath.size()-2]):0; > " > but i could not work it out, please have a check with that, thanks..... > > 2008-03-20 ________________________________ > > Kama > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

