O'Reilly logo

Leap Motion Development Essentials by Mischa Spiegelmock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Three.js + LeapJS – the awesomesauce

Deciding to use Three.js naturally introduces a dependency into our web client application, but when it comes to 3D programming, it's a very acceptable trade-off. One can think of it as the jQuery for 3D graphics, providing invaluable utilities and shortcuts for common tasks, while greatly enhancing fallback capabilities and smoothing over differences in implementations. LeapJS is naturally pretty useful as well for our purposes.

Let's take a look at combining the two. We can either download the Three.js library and include it locally, or we can link to the latest build hosted by GitHub (or elsewhere). While linking to the latest build is great, because we get the latest optimizations and bug fixes without doing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required