Development Tutorial of Parallel Rendering Model Based on Unity3D (5): Leap Motion

In order to expand the interaction methods, this system not only uses the keyboard and mouse as input devices, but also uses Leap Motion as a gesture input device for human-computer interaction. Gesture interaction development based on Leap Motion is one of the important interaction methods of this project. With the development of virtual reality technology, gesture recognition and gesture operation technology have attracted more and more attention from developers. In this project, not only the keyboard and mouse can be used to operate the model, but also gestures can be used to operate the model. The extended functions greatly enrich the interaction methods and improve the user's viewing and operating experience.

The following is still the same. I won’t introduce how to learn Leap Motion. If you don’t know, please refer to the link directly:
Leap Motion SDK download official website: https: //developer.leapmotion.com/get-started/
Leap Motion Chinese tutorial:http://blog.csdn.net/admintan/article/details /51075405

In this project, gesture recognition input is developed as a supplement to keyboard input and mouse input. The keyboard and mouse are responsible for operating the model, including basic operations such as zooming in, zooming out, and moving. However, the keyboard and mouse can only be operated by one user. This project has newly added Leap Motion hardware to operate the model through gesture recognition. It can also perform various operations such as moving, zooming in, zooming out, and rotating. It not only facilitates the user's operation and viewing of the model, but also uses The latest international technology has been used to expand this project and increase its novelty.

So let’s go directly to the renderings:

Grab and drag the model
Write picture description here

Rotate the model
Write picture description here
Zoom in or out the model
Write picture description here

Code:
Determine the grip of both hands:
Write picture description here
Determine the rotation and scaling:
Write picture description here
Determine the grabbing movement: < /span>
Write picture description here

This tutorial ends here. Students who still need to learn can download the code from git.
http://github.com/daqians/UnityCluster/

Guess you like

Origin blog.csdn.net/jxsdq/article/details/72861330