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

Integrating Mixed Reality Pedagogy into Education
Integrating Mixed Reality Pedagogy into EducationIntegrating Mixed Reality Pedagogy into Education
Integrating Mixed Reality Pedagogy into EducationBond University
 
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 jobsBond University
 
Preparing Learners for Future Jobs
Preparing Learners for Future JobsPreparing Learners for Future Jobs
Preparing Learners for Future JobsBond University
 
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 ...Bond University
 
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...Bond University
 
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...Bond University
 
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...Bond University
 
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 EngagementBond University
 
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 DesignBond University
 
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 VuforiaBond University
 
Introductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dIntroductory Virtual Reality in Unity3d
Introductory Virtual Reality in Unity3dBond University
 
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 SDKBond University
 
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 DisciplinesBond University
 
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...Bond University
 
Visualization and Interactive Prototyping with Unity3D
Visualization and Interactive Prototyping with Unity3DVisualization and Interactive Prototyping with Unity3D
Visualization and Interactive Prototyping with Unity3DBond University
 
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 GamesBond University
 
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 outcomesBond University
 
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 Unity3DBond 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

....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdfVikramadityaRaj
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfMinawBelay
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfmstarkes24
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxKunal10679
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024CapitolTechU
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIagpharmacy11
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17Celine George
 

Recently uploaded (20)

....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING IIII BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
II BIOSENSOR PRINCIPLE APPLICATIONS AND WORKING II
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 

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