openleap / aframe-leap-hands

A-Frame VR component for Leap Motion.
MIT License
166 stars 24 forks source link

Raycaster is flakey #6

Open donmccurdy opened 8 years ago

donmccurdy commented 8 years ago

Bad direction? Origin? Raycaster's fault?

james-h-stephens commented 7 years ago

I wrote a fix that removes the pointer when the hands leave the scene. What other issues are you having with the Raycaster in debug mode?

donmccurdy commented 7 years ago

Taking a look at the PR now, thanks.

The particular issue here, if I remember right, is unrelated to debug mode in that when grabbing an object, it doesn't intersect as consistently as it seems like it should. Might be perception on my part, or some configuration issue. If the raycaster is working for you in desktop mode then maybe it's a perceptual / viewpoint issue in VR.

Re: debug mode, it's not that there are special bugs when debugging, but that if enabling and disabling VR mode in the browser also toggles the transform of the Leap, then when I debug I have to detach and reattach the leap from my HMD (to have the proper transform) and I'd rather keep the transform consistent across states. If someone is building an app that will support leap motion both in desktop and in VR, then I think it would be up to the developer how that would work, and I'd rather keep automatic/magic changes out of the library itself. But, definitely glad to expose any transform options needed to make this work well for desktop as well as VR.