Hi Dustin, I can't really say too much as I really don't know how much you know about what so don't know where to start. The only thing I can is provide general statement that intersections with the objects in your world will specified in the correct coordinate frame for the data you provide, be it window, eye or world coordinates. For a 3D input device like a wand I would generally suggest getting the wand coordinate frame into world coordinates. To do this requires calibration at your end and really is beyond the scope of the OSG, it's really something you need to manage yourself, or best discussed on VR specific communities.
Robet. On 31 October 2012 17:02, R. Dustin Kahawita <[email protected]> wrote: > Hello! > > I'm in the process of putting together an application by which a user, > holding a wand in a CAVE environment should be able to point and select an > object at a variable distance in virtual space. This is to say that there > will be multiple objects at various distances from the user, and depending > on the orientation of the wand, if let's say it's "pointing vector" > intersects with the object, then the object is selected after which the > user can manipulate it. > > I've been able to get the Wand matrix position and orientation data via: > > // Get wand data > gmtl::Matrix44f wandMatrix = mWand->getData(); > > However, I'm struggling to with how to determine if the "point vector" > intersects with an object or not. I've looked into the OSG command > osgUtil::LineSegmentIntersector but am not this will produce the results > I'm aiming for. Is there a class/function already developed within OSG to > do this? > > Any guidance would be greatly appreciated! Thank you kindly for your time! > > Cheers, > > Dustin K. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50921#50921 > > > > > > _______________________________________________ > 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

