Grabbing objects in a scene with Open VR Controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create an application that would allow a user to "grab" and "hold" a single part from a large CAD assembly. Basically snap the part to the Vive controller location on a button click, then duplicate the controller's translations and rotations while the button is held so the user can manipulate and inspect the part in an intuitive manner.
The problem I am having is that in the imported CAD assemblies, the "center" of the individual parts rarely in coincident with the geometry. When something is "grabbed," it will offset from controller location, sometimes by a significant amount, and rotations do not match the direction. I had the same problems when I made a similar application with OSG and VR Juggler many years ago, but every solution I used back then is not working VRED. I'm not sure if VRED handles matrices differently or if its just been too long since I've done this sort of thing.
It seems like this should be relatively standard, simple functionality - what is best practice for accomplishing it? My one caveat is that it must be done programmatically as these assemblies are many thousands of parts and it's just feasible to go through and make manual adjustments on every part.
Thanks in advance!