GithubHelp home page GithubHelp logo

imclab / okyp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcteys/okyp

0.0 1.0 0.0 984 KB

Create a mesh with a leap motion & a web browser

Home Page: http://marcteyssier.com/experiment/okyp/

okyp's Introduction

OKYP

Create 3D objects in your browser with a Leap Motion controller.

Video - Project Page

Requirements

  • A Leap Motion controller
  • A recent browser which supports WebGL

Usage

Okyp needs 2 hands to works. When you put your 2 hands in the scene, you can see few differences between these two. The first hand detected in the scene is the controller hand. This hand is used to navigate in the 3D scene. The second hand is used to point a 3D point in the scene.

Navigate in the scene

To navigate in the scene, you must have only one hand detected. The camera controls are provided by a motified version of threeleapcontrols.

Rotate : Use 3 fingers, and rotate/move them.

Zoom : Use all the hand, and move uo/down (note : didn't ork very well for the moment)

Drag/Pan : desactivate Use two fists and move to drag/pan

Create mesh

You need to insert a second hand in the scene. All the fingers from this hand are in white except one, in red. This is you master pointing finger. For more prescision, use only your index finger. The fingers of the controller hand switch to blue. That's mean your ready to create a new triangle !

To create it, simply move your index to the desired position, and "tap", with a finger of the controller hand.

Differents mode

You can also create complexe mesh, with more than 3 vertices. In the main.js file, change the boolean triangleMode to false

Notes

  • The best way to be prescise is to use the index of each hands.
  • Okyp automatically detect when you try to create a point near an other point. It is better to have a precise closed shape. You can increase or decreate this value by modifing the variable proxVal at line //insert line here.

Dependancies

  • LeapJS - used to get the data from the leap motion controller.
  • ThreeJS - Powerfull JS library, a standard to develop real-time 3D applications in web browsers.

TODO

  • better hand insertion in the scene - follow the camera position/rotation (ex "cube" obj in the scene )

okyp's People

Contributors

marcteys avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.