jespertheend / webxr-hand-input-leap-motion-polyfill

A polyfill that adds webxr hand input support for the Leap Motion controller.
2 stars 1 forks source link

Example importing into a webxr project #1

Open Kappa666 opened 2 years ago

Kappa666 commented 2 years ago

Hi,

I've been looking for a way of using Leapjs in WebXR and I'm amazed I found this! Have you tried using it in some application and would you have any recommendation how to use it?

jespertheend commented 2 years ago

I've never managed to finish it unfortunately. If I remember correctly, using it should be as easy as adding a script tag linking to the file you get when running build.js. But leap has deprecated their WebSocket protocol, which this was using. If you can get an old driver you might still be able to get this to run.

However, I never managed to get the rotation of the joints to be right. So rendering spheres at every joint will look fine, but if you want to render a skinned mesh of a hand it will look all messed up.

Kappa666 commented 2 years ago

I knew about the deprecated protocol, so I'm trying with their old drivers. Thanks for the reply! I'll see what I can do with this :)