"VR" Leap Motion website Document Unity Plugin Overview

Source: Internet
Author: User

Preface:

Leap Motion's official website document has been a lot of enthusiastic netizens involved in the translation, but did not cover all the official website documents.

To cater to the Unity VR craze and the learning needs of our people, this blog will launch the official document translation series for unity.

This article outlines the unity plug-in and coordinate system for leap motion.


English Original website: https://developer.leapmotion.com/documentation/unity/unity/Unity_Overview.html

Initial & Continuous Update: Http://blog.csdn.net/duzixi



Unity Plugin Overview Plugin Overview


The Leap Motion Controller tracks hands and fingers and reports position, velocity, and orientation with low latency and g Ood accuracy. The controller can be used on a tabletop or mounted on a VR headset.

The LEAP motion controller tracks hands and fingers with low latency, high precision return position, speed, and direction. The device can be used on the desktop or as an add-on device on a VR helmet.


the Leap Motion controller system consists of a hardware device and a software component which runs as a s Ervice or daemon on the host computer. The software component analyses images produced by the hardware and sends tracking information to applications. The Leap motion Unity plugin connects to this service to get data. Scripts included with the plugin translate Leap Motion coordinates to the Unity coordinate system. These scripts and additional graphic assets make it easy-to-add, motion-controlled hands to a Unity scene.

The LEAP Motion controller system contains two parts of hardware devices and software components that can be run on the host as a service or a background process. The software component is responsible for analyzing the image information generated by the hardware and sending the tracking information to the application. The Unity plug-in for Leap motion establishes a connection to the service and obtains data. The scripts included in the plugin convert Leap motion coordinates (translator note: Right-handed coordinate system) to the Unity coordinate system (Translator note: left-handed coordinate system). These scripts and accompanying graphics resources make it easy to add a 3D motion Control hand model to the unity scene.

coordinate systems coordinate system

Unity3d uses a left-handed convention for its coordinate system, wheras the Leap Motion API uses a right-handed convention . (Essentially, the z-axis points in the opposite direction.) Unity also uses a default unit of meters, wheras the Leap Motion API uses millimeters. The plugin scripts internally transforms the tracking data to use the left-handed coordinate system and scales distance VA Lues to meters.

Unity3d uses a left-handed coordinate system, and the leap Motion API uses the right-hand coordinate system. (Essentially, the z-axis is in the opposite direction.) At the same time, the default unit in unity is meters, and the leap Motion API uses millimeters. The plugin script automatically converts the tracking data into a left-handed coordinate system and scales the distance value from millimeters to meters.


The Unity left-handed coordinate system superimposed on the Leap Motion device in its desktop orientation.

Unity left-hand coordinate system mapping on a Leap motion device (desktop angle)

The Unity coordinate system superimposed on the Leap Motion device in its HMD orientation.

Mapping of unity coordinate system on leap motion (head device angle)


When you get tracking data directly from one of the classes in the Leap C # Library, the data is in the native leap Coordi Nate System–not the Unity coordinate system. You can use the utility functions in the Leapunityextensions file to convert from Leap Motion coordinates to Unity Coordin Ates.ToUnity()Converts the axes from right-handed to left-handed and returns a Unity Vector3 object.ToUnityScaled()Also scales the coordinates from milimeters to meters.ToUnity()is typically used with direction vectors; ``ToUnityScaled()With positions.

When you get data directly from a class in the Leap C # Library, the data is the native leap coordinate system--not the unity coordinate system. You can use the tool methods in the Leapunityextensions file to convert a leap Motion coordinate system into a unity coordinate system. the Tounity () method converts the right-hand axis to the left-hand axis and returns unity's VECTOR3 type variable. The Tounityscale () method zooms the coordinate system from millimeters to. tounity () is generally used for directional vectors, while tounityscaled () is generally used for points.
Hand Tracking Hand Tracking

The LEAP Motion controller uses optical sensors and infrared light. The sensors has a field of view of about degrees. The effective range of the Leap Motion Controller extends from approximately. 6 meters above the device (1 inch to 2 feet).

Leap Motion control uses a visual sensor and infrared light. The sensor's field of view is about 150 degrees. The LEAP Motion controller has a valid detection range of approximately 0.03 meters to 0.6 meters (1 inches to 2 feet) above the device.

The Leap Motion controller ' s view of your hands in desktop mode

The hand view of the LEAP motion controller (desktop mode)


Detection and tracking, the controller has a clear, high-contrast view of an object ' s silhouette. The Leap Motion Software combines its sensor data with a internal model of the human hand to help cope with challenging t Racking conditions.

detection and tracking works best when the controller is clean and the object is clearly contoured. Leap Motion Software matches the sensing data with the built-in manual model to cope with changing tracking situations.

Particularly in HMD mode, should ensure that there are less distance between the sensor and your hands then between you R hands and any background objects or walls.

in the headset mode , it is important to note that you need to make sure that the distance between the hand and the sensor is less than the distance between the hand and any background object or wall.


(Copyright notice: This is a translation of the Leap Motion website document, all rights reserved by the Leap Motion website, and the text content is for learning only.) )

"VR" Leap Motion website Document Unity Plugin Overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.