SlideShare a Scribd company logo
1 of 15
Introductory Leap Motion
and VR in Unity 3d
Dr James Birt
Requirements
• Unity 5.3 or higher
• Oculus runtime 0.8+ installed
• Leap motion Orion Beta
Download Unity 3D Leap Motion Core Assets
https://developer.leapmotion.com/unity
Create new Project
Enable VR Mode
Import
LeapMotion_CoreAsset_Orion_4.1.1
Setup LeapMotion VR Scene
• From LeapMotion>Prefabs drag a LMHeadMountedRig into your
scene Hierarchy and remove Main Camera
Setup LeapMotion VR Scene
• From LeapMotion>Prefabs>HandModelsNonhuman drag a
CapsuleHand_L and a CapsuleHand_R to your scene and make them
children of the Leap Hand Controller
Setup LeapMotion VR Scene
• From LeapMotion>Prefabs>HandModelsPhysical drag a
RigidRoundHand_L and a RigidRoundHand_R to your scene and make
them children of the Leap Hand Controller
Setup LeapMotion VR Scene
• Locate the HandPool component attached to the LeapHandController
• Set Model Collection value to 2 – drag capsuleHands(L/R) and
RigidRoundHands(L/R) from Hierarchy to empty slots
• Click Is Enabled and Can Duplicate on both Elements
Setup LeapMotion VR Scene
• Add a Directional Light source to your scene
• Add a cube and plane to your scene
• Adjust positions, scales and rotations relative to your camera
• Press play – If everything is working you should see your cube and hands
when you bring them upto the leap motion camera
Setup LeapMotion VR Scene
• Select the Cube in the Hierarchy and Add a Rigidbody
• Create a new contrasting material and add to your cube
• Press play  You can now hold the cube in your hand
using the inbuilt Unity Physics Engine
Optimising for Framerates & Quality
• Select Project Settings – Quality
• Select Simple and change Anti
Aliasing to 4x Multi Sampling
• Anti Aliasing is very important in
VR and where possible should be
enabled
• Increase Default Render Scale
from 1.0 to 1.5 which increases
object sharpness – see next slide
• Avoid Dynamic Lighting where
possible – best to bake lights
How to Increase Render Scale
• Create new C# file called RenderScale
• Add the following code and attach script to the LeapSpace Object in your
Hierarchy
• Code is from Unity Getting Started Tutorial - http://tinyurl.com/j2elrjt
Final
Scene
https://dl.dropboxusercontent.com/u/9011716/LEAPDEMO.zip

More Related Content

More from Bond University

More from Bond University (18)

Integrating Mixed Reality Pedagogy into Education
Integrating Mixed Reality Pedagogy into EducationIntegrating Mixed Reality Pedagogy into Education
Integrating Mixed Reality Pedagogy into Education
 
Weaving technology into the fabric of the classroom: Future jobs
Weaving technology into the fabric of the classroom: Future jobsWeaving technology into the fabric of the classroom: Future jobs
Weaving technology into the fabric of the classroom: Future jobs
 
Preparing Learners for Future Jobs
Preparing Learners for Future JobsPreparing Learners for Future Jobs
Preparing Learners for Future Jobs
 
Classrooms of the Future: How to Add Mixed Reality and Robotics to a Schools ...
Classrooms of the Future: How to Add Mixed Reality and Robotics to a Schools ...Classrooms of the Future: How to Add Mixed Reality and Robotics to a Schools ...
Classrooms of the Future: How to Add Mixed Reality and Robotics to a Schools ...
 
Using Gamification and Mixed Reality Visualization to Improve Conceptual Unde...
Using Gamification and Mixed Reality Visualization to Improve Conceptual Unde...Using Gamification and Mixed Reality Visualization to Improve Conceptual Unde...
Using Gamification and Mixed Reality Visualization to Improve Conceptual Unde...
 
Piloting Mixed Reality in ICT Networking to Visualize Complex Theoretical Mul...
Piloting Mixed Reality in ICT Networking to Visualize Complex Theoretical Mul...Piloting Mixed Reality in ICT Networking to Visualize Complex Theoretical Mul...
Piloting Mixed Reality in ICT Networking to Visualize Complex Theoretical Mul...
 
Gold Coast Mayors Technology Awards 2016: Visualisation and Interactive Proto...
Gold Coast Mayors Technology Awards 2016: Visualisation and Interactive Proto...Gold Coast Mayors Technology Awards 2016: Visualisation and Interactive Proto...
Gold Coast Mayors Technology Awards 2016: Visualisation and Interactive Proto...
 
Interactive Mixed Reality for Enhanced Learning, Skills and Engagement
Interactive Mixed Reality for Enhanced Learning, Skills and EngagementInteractive Mixed Reality for Enhanced Learning, Skills and Engagement
Interactive Mixed Reality for Enhanced Learning, Skills and Engagement
 
The future of jobs focusing on Interactive Media and Design
The future of jobs focusing on Interactive Media and DesignThe future of jobs focusing on Interactive Media and Design
The future of jobs focusing on Interactive Media and Design
 
Introductory Augmented Reality in Unity with Android and Vuforia
Introductory Augmented Reality in Unity with Android and VuforiaIntroductory Augmented Reality in Unity with Android and Vuforia
Introductory Augmented Reality in Unity with Android and Vuforia
 
Introductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dIntroductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3d
 
DIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDKDIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDK
 
Towards a Pedagogy of Comparative Visualization in 3D Design Disciplines
Towards a Pedagogy of Comparative Visualization in 3D Design DisciplinesTowards a Pedagogy of Comparative Visualization in 3D Design Disciplines
Towards a Pedagogy of Comparative Visualization in 3D Design Disciplines
 
Teaching Complex Theoretical Multi-Step Problems in ICT Networking through 3D...
Teaching Complex Theoretical Multi-Step Problems in ICT Networking through 3D...Teaching Complex Theoretical Multi-Step Problems in ICT Networking through 3D...
Teaching Complex Theoretical Multi-Step Problems in ICT Networking through 3D...
 
Visualization and Interactive Prototyping with Unity3D
Visualization and Interactive Prototyping with Unity3DVisualization and Interactive Prototyping with Unity3D
Visualization and Interactive Prototyping with Unity3D
 
Getting Serious about the Future of Design and Games
Getting Serious about the Future of Design and GamesGetting Serious about the Future of Design and Games
Getting Serious about the Future of Design and Games
 
Effect of mixed media visualization on learner perceptions and outcomes
Effect of mixed media visualization on learner perceptions and outcomesEffect of mixed media visualization on learner perceptions and outcomes
Effect of mixed media visualization on learner perceptions and outcomes
 
Setup for Visualisation & Interactive Prototyping with Unity3D
Setup for Visualisation & Interactive Prototyping with Unity3DSetup for Visualisation & Interactive Prototyping with Unity3D
Setup for Visualisation & Interactive Prototyping with Unity3D
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Introductory Leap Motion and Virtual Reality in Unity 3D

  • 1. Introductory Leap Motion and VR in Unity 3d Dr James Birt
  • 2. Requirements • Unity 5.3 or higher • Oculus runtime 0.8+ installed • Leap motion Orion Beta
  • 3. Download Unity 3D Leap Motion Core Assets https://developer.leapmotion.com/unity
  • 7. Setup LeapMotion VR Scene • From LeapMotion>Prefabs drag a LMHeadMountedRig into your scene Hierarchy and remove Main Camera
  • 8. Setup LeapMotion VR Scene • From LeapMotion>Prefabs>HandModelsNonhuman drag a CapsuleHand_L and a CapsuleHand_R to your scene and make them children of the Leap Hand Controller
  • 9. Setup LeapMotion VR Scene • From LeapMotion>Prefabs>HandModelsPhysical drag a RigidRoundHand_L and a RigidRoundHand_R to your scene and make them children of the Leap Hand Controller
  • 10. Setup LeapMotion VR Scene • Locate the HandPool component attached to the LeapHandController • Set Model Collection value to 2 – drag capsuleHands(L/R) and RigidRoundHands(L/R) from Hierarchy to empty slots • Click Is Enabled and Can Duplicate on both Elements
  • 11. Setup LeapMotion VR Scene • Add a Directional Light source to your scene • Add a cube and plane to your scene • Adjust positions, scales and rotations relative to your camera • Press play – If everything is working you should see your cube and hands when you bring them upto the leap motion camera
  • 12. Setup LeapMotion VR Scene • Select the Cube in the Hierarchy and Add a Rigidbody • Create a new contrasting material and add to your cube • Press play  You can now hold the cube in your hand using the inbuilt Unity Physics Engine
  • 13. Optimising for Framerates & Quality • Select Project Settings – Quality • Select Simple and change Anti Aliasing to 4x Multi Sampling • Anti Aliasing is very important in VR and where possible should be enabled • Increase Default Render Scale from 1.0 to 1.5 which increases object sharpness – see next slide • Avoid Dynamic Lighting where possible – best to bake lights
  • 14. How to Increase Render Scale • Create new C# file called RenderScale • Add the following code and attach script to the LeapSpace Object in your Hierarchy • Code is from Unity Getting Started Tutorial - http://tinyurl.com/j2elrjt