[osg-users] OSGViewer and computeIntersections

2007-02-27 Thread elekis
hi all, always trying to pass to OSGViewer, I try to use computeIntersections (as with osg::Producer) in Producer I made that osgUtil::IntersectVisitor::HitList hlist; if ( CGeneral::instance().viewer.computeIntersections(ea.getX(), ea.getY(), hlist))

Re: [osg-users] OSGViewer and computeIntersections

2007-02-27 Thread Robert Osfield
HI Elekis, The difference is simply in the data structure used to store the intersection hits. The osgViewer is based on the new IntersectionVisitor rather than the old IntersectVistor. For the new viewer you'll just need to use the LinerIntersector::Intersections structure. Have a look at

Re: [osg-users] OSGViewer and computeIntersections

2007-02-27 Thread elekis
thanks, I found something. but I raised a other trouble(it's not my month, all that for a teacher :-( ), with QT, I can't use osgViewer , I have to use osgSimpleViewer . if I use osgViewer -- core dumped (see code below) . (I duno if it's normal) but in osgSimpleViewer I haven't

Re: [osg-users] OSGViewer and computeIntersections

2007-02-27 Thread Robert Osfield
Hi Elekis, class SimpleViewerQT : public osgViewer::Viewer, public GraphicsWindowQT osgViewer::Viewer isn't meant to be used like these, one attaches GraphicsWindow's to the Camera's that the Viewer maintains. See the osgcamera example if you want to know how. Robert. On 2/27/07, elekis

Re: [osg-users] OSGViewer and computeIntersections

2007-02-27 Thread elekis
hi sorry but, ... I m totally lost, What I trying to do is is using QT with OSG. like I said before, I try to get the geode that I ve just clicked (x, y). like you said, I m now using Intersections. like that I suppose osgUtil::LineSegmentIntersector::Intersections inter;

Re: [osg-users] OSGViewer and computeIntersections

2007-02-27 Thread Robert Osfield
Hi Elekis, osgViewer::SimpleViewer does not have the computeIntersection method, so far I've tried to keep the API simple. We potentially can add one along the lines of the one now added to osgViewer::View/Viewer. osgViewer::Viewer does have a computeIntersections method albiet with slightly