[osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-17 Thread erf
I want to pick osg objects in the scene when pressing the mouse button on them. I am using sceneView so i guess i cant use the osgViewer::View. computeIntersections and i did not find PickVisitor! Im using osg 2.3.7. So i guess i have to use IntersectVisitor. Is there a utility function for get

Re: [osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-17 Thread Robert Osfield
Hi Erland, Would it not be possible just to use osgViewer rather than SceneView. One of the points of osgViewer is that it provides more higher level functionality that users commonly require, and in doing so avoid the pain of end users having to implement themselves, and the pain involved in tryi

Re: [osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-17 Thread erf
g osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!) Hi Erland, Would it not be possible just to use osgViewer rather than SceneView. One of the points of osgViewer is that it provides more higher level functionality that users commonly require, and in doing so avoid the pa

Re: [osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-18 Thread Robert Osfield
intersections..? But havent testet yet. See attachment. > > Erlend > > > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield > Sent: 17. april 2008 22:22 > To: OpenSceneGraph Users > Subject: Re:

Re: [osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-18 Thread Paul Melis
>> I think i could be using LineProjector and IntersectVisitor to find >> intersections..? But havent testet yet. See attachment. >> >> Erlend >> >> >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [osg-users] picking osg objects using osgUtil::SceneView (cant find osgUtil::PickVisitor!)

2008-04-18 Thread Robert Osfield
Hi Paul, On Fri, Apr 18, 2008 at 10:18 AM, Paul Melis <[EMAIL PROTECTED]> wrote: > Looking at that example I see that swapbuffers has to be called manually > in this case, but I fail to find the place in the source where Viewer > checks if it is running embedded and therefore doesn't have to cal