SlideShare a Scribd company logo
DEVELOP YOUR MIXED REALITY APP FOR HOLOLENS
WITH UNITY AND VISUAL STUDIO
HOLOBASICS
“HoloLens Evangelist”
I am responsible for architecture related business for our project services
department at ETTU. I’m involved as architect at different companies like Jumbo
Maritime, PGGM, Gemeente Amersfoort and others
Alexander Meijers
ABOUT ME
 Solutions Architect for ETTU
 Founder of the Mixed Reality User Group
 MixUG: http://www.mixug.nl
 Email: a.meijers@ettu.nl or alexander@appzinside.com
 Twitter: @ameijers
 Blog: http://www.appzinside.com
3INTRO ETTU
TODAY’S TALK
AGENDA
 Realities explained
 Microsoft HoloLens
Building blocks and tools
 Tools
 Gestures
 Sound
 Spatial Mapping & Occlusion
Slider
Content Ads
MIXED REALITY
HOLOBASICS 5
REALITIES
EXPLAINED
Merging of real and virtual worlds to
produce new environments and
visualizations where physical and
digital objects co-exist and interact
in real time.
An overlay of synthetic content on
the real world that is anchored to
and interacts with the real world
MIXED REALITY
Direct or indirect view of a physical,
real-world environment whose
elements are augmented by
computer-generated sensory input
such as sound, video, graphics
or GPS data
An overlay of content on the real
world where that content is not
anchored to or part of it
AUGMENTED REALITY
Generation of realistic images, sounds
and other sensations that replicate a
real environment or create an
imaginary setting
An immersive experience created
entirely from computer-generated
Content. Also similar to 360 degree
video
VIRTUAL REALITY
MICROSOFT HOLOLENS
HOLOBASICS 7
MICROSOFT HOLOLENS
SPECIFICATIONS
 Windows 10 device based on 32 bit architecture
 Contains CPU, GPU and HPU
 1GB Holographic Processor Unity (HPU)
 64GB flash / 2GB memory
 Device is more powerful than a laptop or game computer
 No overheating due to warm air flows to the sides
 2-3 hours active and 2 weeks standby
 Weight 579g
 Wi-fi
 Gestures, Voice input and spatial understanding
HOLOBASICS 8
SENSORS, OPTICS AND
SPEAKERS
Environment
camera
Depth
camera
Video
camera
Spatial Sound
With
speakers
High definition
lenses
HOLOBASICS 9
HOLOLENS EXAMPLES
“DEMONSTRATION OF SPATIAL DESIGN
CONCEPT APP”
“HoloBasics by Alexander Meijers”
BUILDING BLOCKS AND TOOLS
HOLOBASICS 12
DEVELOPMENT TOOLS
 Visual Studio 2017
 UWP workload
 Game development with Unity workload
 Windows 10 SDK (version 1511 or later)
 There is no separate SDK for HoloLens
 Unity 2017.2 or Unity 5.6.x
 Scripting Runtime Version  Experimental .NET4.6. Equivalent
 HoloLens emulator
 HoloLens Emulator (build 10.0.14393.1358)
 Hyper-V
 Contains DirectX project templates for Visual Studio
 HoloLens device
 GitHub
 Microsoft/MixedRealityToolkit-Unity
HOLOBASICS 13
BUILD LIFECYCLE OF A
HOLOLENS PROJECT
 Create Unity Project
 Configure HoloLens settings
 Create scene
Visual Studio
Unity HoloLens
 Configure build settings
 Build and generate Visual Studio
project
 Open project with Visual Studio
 Pair with HoloLens
 Build & deploy Visual Studio project
 Start Application
 Test & debug
 Monitor
Unity
HOLOBASICS 14
WINDOWS DEVICE PORTAL
 3D View
 Mixed Reality Capture
 Performance
 Performance tracing
 System performance
 Processes
 Apps
 Maintenance
 Crash dumps
 Additional tools
 Logging
 File Explorer
 Virtual Input
HOLOBASICS 15
UNITY
EDITOR
Main
Camera
Directional
Light
Game
Objects
Assets
Components
Script
Scene
HOLOBASICS 16
UNITY
PREFABS
• Predefined Game Objects
• Contains components with predefined values
• Prefabs used in Scene inherit the components and settings
HOLOBASICS 17
UNITY
GAMEOBJECT SCRIPT
• Derived from MonoBehaviour
• Contains methods which are called by Unity through the a
broadcast messaging system
• void Awake() – Called when class is instantiated
• void Start() – Called when object is enabled once before
the first Update()
• void Update() – Called once per frame
• More methods are available
• FixedUpdate, LateUpdate, OnGUI, OnDisable, OnEnabled
HOLOBASICS 18
UNITY
MESSAGE SYSTEM
public void BroadcastMessage(string methodName, object parameter = null, SendMessageOptions options =
SendMessageOptions.RequireReceiver);
• Used for calling methods on GameObjects
• Calls the methods also on its Children
• Examples
• this.BroadcastMessage(“OnSelect”);
• focusedObject.BroadcastMessage(“OnSelect”);
HOLOBASICS 19
UNITY
COMPONENTS
• Transform
• Position of object
• Rotation of object
• Scale (size) of object
• Mesh Renderer & Mesh Filter
• Renders the object
• Mostly done using a mesh
• Mesh Collider
• Determines the collision for the object
• Script
• Perform actions on the object
• Handle messages on an object
“</CODE>”
“HoloBasics by Alexander Meijers”
HOLOBASICS 21
COORDINATE SYSTEM
HOLOLENS AND UNITY
forward (x, y, z)Camera (0, 0, 0)
Rotation (x, y, z)
Camera (1, -1, 4)
Rotation (x, y, z)
Hologram
Object Pinned
HoloLens
moved to
new location
View direction
Gaze
GESTURES
HOLOBASICS 23
GESTURES
GAZE
• The direction of the HoloLens pointing is called the
gaze
• Hits an object or part of the environment
• Uses a Vector3 based value to define its so called
“forward” direction
HOLOBASICS 24
GESTURES
GESTURE RECOGNIZER
• Recognize input by tracking the position of either or both hands
• Gesture frame (Frustum)
• Recognized input from hands
• Bloom
• Press, hold and release
• Gestures
• Hold
• Manipulation
• Navigation
HOLOBASICS 25
GESTURES
GESTURE RECOGNIZER
• Connect commands to gestures
• GestureRecognizer gestures = new GestureRecognizer();
• gestures.TappedEvent += OnGesturesTapped;
• gestures.StartCapturingGestures();
• Events
• Tapped
• Select press and release
• Hold (Started, Completed, Canceled)
• Select press beyond system hold threshold
• Navigation (Started, Updated, Completed, Canceled)
• Select press with relative movement
• Velocity based continuous scrolling or zooming
• Virtual Joystick
• Manipulation (Started, Updated, Completed, Canceled)
• Select press with absolute movement
• Move, resize or rotate hologram
HOLOBASICS 26
GESTURES
SPEECH RECOGNIZER
• Use words or sentences to control your environment
• English language only at the moment
• Connect commands to spoken text
• Dictionary<string, System.Action> keywords = new Dictionary<string,
System.Action>();
• keywords.Add(“some text”, () => { … };
• KeywordRecognizer keywords = new
KeywordRecognizer(keywords.Keys.ToArray());
• keywordRecognizer.OnPhraseRecognized += OnPhraseRecognized;
• keywordRecognizer.Start();
• OnPhraseRecognized( PhaseRecognizedEventArgs args);
• Invoke the action
• keywords[args.text].Invoke();
“</CODE>”
“HoloBasics by Alexander Meijers”
SPATIAL SOUND
HOLOBASICS 29
SPATIAL SOUND
OVERALL
• Simulates 3D sound using direction,
distance and environmental
simulations
• Above, below, behind, to the side, etc.
• Attach sound to holographic objects
• Works also when object is not in line of
sight
• Used to draw attention
• Audio engine in HoloLens
• CPU and memory considerations
• 10-12 spatial sound voices
HOLOBASICS 30
SPATIAL SOUND
TYPES
• Audio Haptics
• Reactive audio for touchless interactions
• Play a sound when user selects an object or when his hands appear inside
the gesture frame
• Gaze mixing
• Highlighting objects
• Play a sound on the object to get the users attention
• Immersion
• Ambient sounds surrounding the user
• Support your scene with background sounds or music
SPATIAL MAPPING & OCCLUSION
HOLOBASICS 32
SPATIAL PERCEPTION
HOW DOES IT WORK?
• Spatial perception and mapping
• Rooms
• Different ways of detecting and working with spatial
perception
• Device scans your environment and builds a digital model in
real time
• It allows HoloLens to see different
surfaces like walls and ceiling
• Meshes & planes
• Possible to simulate
a physical space
• E.g. Projecting a terrain
over your floor
Spatial perception is the
ability to be aware of
your relationships with
the environment around
you and with yourself
“DEMONSTRATION OF LIVE SPATIAL MAPPING
AND UNDERSTANDING BY HOLOLENS”
“HoloBasics by Alexander Meijers”
HOLOBASICS 34
SPATIAL MAPPING AND
UNDERSTANDING
 Spatial Mapping components in Unity
 Spatial Mapping Renderer script
 Spatial Mapping Collider script
 Use an empty GameObject in your scene
 Spatial Mapping render state
 None
 Visualization
 Occlusion
 Rendering material
 Occlusion material
 Visual material
 Cursor on spatial mapping
 SpatialMappingCollider.layer = 31;
 Cursor uses Raycast with layer mask 1<< 31
HOLOBASICS 35
OCCLUSION
CULLING
 Process of determining which surfaces and parts are not visible from a certain viewpoint
 Create a more naturally feeling with mixed reality
 Holograms can be occluded by
 Other holograms
 Real-life objects in your environment which are spatially mapped
 Culling enforces the HoloLens not to (partially) render the object
 To speed up the rendering process
 Objects which are too far away are left out the view (frustum)
 Use Spatial Mapping Renderer
 Set Occlusion material
 Set SpatialMappingRenderer.renderState = RenderState.Occlusion;
“</CODE>”
“DEMONSTRATION OF SPATIAL MAPPING AND
OCCLUSION WITH HOLOGRAM FOR TRUE
MIXED REALITY”
“HoloBasics by Alexander Meijers”
HOLOBASICS 37
WRAP-UP
TAKAWAYS
 Unity and Visual Studio are the tools to build any HoloLens application
 HoloLens applications are not more than UWP with a cool UI
 Make use of the Windows Device Portal to have more control over the HoloLens
 Make use of all the functionality HoloLens offers like spatial mapping, spatial sound, speech and gestures
 Use your environment when building HoloLens applications
THANKS FOR WATCHING!
HoloBasics code on gitHub - https://github.com/ameijers/HoloBasics
Kampenringweg 45b, Gouda
0182-686 000
a.meijers@ettu.nl / alexander@appzinside.com
Contact me:
facebook.com/alexandermeijers.5
@ameijers
Follow me on:

More Related Content

What's hot (20)

PPTX
HoloLens and Windows Mixed Reality
Clemente Giorio
 
PPTX
HoloLens
Rudra Bhatt
 
PPTX
Microsoft holo lens
Manan Jain
 
PPTX
Microsoft_HoloLens
kirankumarmh
 
PPTX
Microsoft HoloLens
Shimona Agarwal
 
PPTX
HoloLens
Chaitanya Tewari
 
PPTX
Microsoft Hololens
Mohammad Mujeeb Beg
 
PPTX
SPSNL17 - Introductie HoloLens - Augmented Reality in 2017 - Michiel Hamers
DIWUG
 
DOCX
Holo lens
Ravi Krishna
 
PPTX
Microsoft hololens
Ravi Krishna
 
PPTX
Microsoft HoloLens
Nandan Kushwaha
 
PPTX
Microsoft Hololens
arun alfie
 
PPTX
Microsoft's Hololens
Mohammed Sonnet Khan
 
PPTX
Microsoft hololens
Ravi Krishna
 
PPTX
Microsoft HoloLens
sahibe alam
 
PPTX
Microsoft HoloLens
deepthi sree
 
PPTX
Introduction to HoloLens development
Mark Blomsma
 
PPTX
Microsoft Hololens Ronak
Ronak Sankhala
 
PPTX
Microsoft hololens
ramazika1
 
PPTX
Microsoft Hololens
Karthik Dontha
 
HoloLens and Windows Mixed Reality
Clemente Giorio
 
HoloLens
Rudra Bhatt
 
Microsoft holo lens
Manan Jain
 
Microsoft_HoloLens
kirankumarmh
 
Microsoft HoloLens
Shimona Agarwal
 
Microsoft Hololens
Mohammad Mujeeb Beg
 
SPSNL17 - Introductie HoloLens - Augmented Reality in 2017 - Michiel Hamers
DIWUG
 
Holo lens
Ravi Krishna
 
Microsoft hololens
Ravi Krishna
 
Microsoft HoloLens
Nandan Kushwaha
 
Microsoft Hololens
arun alfie
 
Microsoft's Hololens
Mohammed Sonnet Khan
 
Microsoft hololens
Ravi Krishna
 
Microsoft HoloLens
sahibe alam
 
Microsoft HoloLens
deepthi sree
 
Introduction to HoloLens development
Mark Blomsma
 
Microsoft Hololens Ronak
Ronak Sankhala
 
Microsoft hololens
ramazika1
 
Microsoft Hololens
Karthik Dontha
 

Similar to Code europe holobasics - develop your mixed reality hololens app with unity and visual studio (20)

PPTX
Holo basics develop your mixed reality hololens app with unity and visual s...
Alexander Meijers
 
PPTX
Code europe holoadvanced - building more advanced mixed reality apps for ho...
Alexander Meijers
 
PDF
Introduction to development
Matteo Valoriani
 
PPTX
HoloLens inspiration session
Alexander Meijers
 
PDF
Brisbane GameTech - Kicking off Development & Object Recognition with HoloLens
Stephen Carter
 
PPTX
2017 03 22 Lessons learned building Hololens 3D apps from a 2D app developer
Bruno Capuano
 
PPTX
Yevhenii Pinkal “Microsoft holo lens швидке знайомство із світом змішаних ре...
Lviv Startup Club
 
PPTX
Microsoft HoloLens
Abhijith M.B
 
PDF
Forge - DevCon 2016: Introduction to building for HoloLens
Autodesk
 
PPTX
Augmented Reality - Let’s Make Some Holgrams! (Developer Version)
Cameron Vetter
 
PDF
8ninths HoloLens Design Patterns
8ninths
 
PPTX
Seminar on Hololens
Uma Sankar Nayak
 
PPTX
2017 06 Ontario Hololens Tour
Bruno Capuano
 
PPTX
Hololens
- Michiel van Vliet -
 
PDF
HoloLens Programming Tutorial: AirTap & Spatial Mapping
Takashi Yoshinaga
 
PPTX
Hololens offering kabel_v22
- Michiel van Vliet -
 
PDF
SPUnite17 Build Business Applications with HoloLens and Cloud
NCCOMMS
 
PPTX
SharePoint Unite - Build business applications with HoloLens and Cloud
Alexander Meijers
 
PPTX
HoloLens Introduction and Technical Specifications
Anyline
 
PDF
Portiva Sharing & Sushi 11 april 2018 - HoloLens & MIxed Reality - Alexander ...
Portiva
 
Holo basics develop your mixed reality hololens app with unity and visual s...
Alexander Meijers
 
Code europe holoadvanced - building more advanced mixed reality apps for ho...
Alexander Meijers
 
Introduction to development
Matteo Valoriani
 
HoloLens inspiration session
Alexander Meijers
 
Brisbane GameTech - Kicking off Development & Object Recognition with HoloLens
Stephen Carter
 
2017 03 22 Lessons learned building Hololens 3D apps from a 2D app developer
Bruno Capuano
 
Yevhenii Pinkal “Microsoft holo lens швидке знайомство із світом змішаних ре...
Lviv Startup Club
 
Microsoft HoloLens
Abhijith M.B
 
Forge - DevCon 2016: Introduction to building for HoloLens
Autodesk
 
Augmented Reality - Let’s Make Some Holgrams! (Developer Version)
Cameron Vetter
 
8ninths HoloLens Design Patterns
8ninths
 
Seminar on Hololens
Uma Sankar Nayak
 
2017 06 Ontario Hololens Tour
Bruno Capuano
 
HoloLens Programming Tutorial: AirTap & Spatial Mapping
Takashi Yoshinaga
 
Hololens offering kabel_v22
- Michiel van Vliet -
 
SPUnite17 Build Business Applications with HoloLens and Cloud
NCCOMMS
 
SharePoint Unite - Build business applications with HoloLens and Cloud
Alexander Meijers
 
HoloLens Introduction and Technical Specifications
Anyline
 
Portiva Sharing & Sushi 11 april 2018 - HoloLens & MIxed Reality - Alexander ...
Portiva
 
Ad

More from Alexander Meijers (20)

PPTX
Microsoft ignite tour - Create an immersive experience with office 365 data ...
Alexander Meijers
 
PPTX
Microsoft ignite tour empower your workers using remote assist - theater se...
Alexander Meijers
 
PPTX
O365 and SharePoint Connect - Create an immersive experience with office 365...
Alexander Meijers
 
PPTX
Modern workplace conference create an immersive experience with office 365 ...
Alexander Meijers
 
PPTX
Code motion - Extend visualization of microsoft graph data to hololens applic...
Alexander Meijers
 
PPTX
Spsbe2016 extend your office 365 environement to cross-platform apps
Alexander Meijers
 
PPTX
Implementation of azure active directory authentication with cross platform d...
Alexander Meijers
 
PPTX
Build your own yammer app @ Collab365
Alexander Meijers
 
PPTX
An introduction to DevOps
Alexander Meijers
 
PPTX
Develop business apps cross-platform development using visual studio with x...
Alexander Meijers
 
PPTX
SharePoint 2013 for internet websites
Alexander Meijers
 
PPTX
Build you own yammer app
Alexander Meijers
 
PPTX
Sp24 design a share point 2013 architecture – the basics
Alexander Meijers
 
PPTX
Design a share point 2013 architecture – the basics
Alexander Meijers
 
PPTX
Share point 2013 and sql server 2012 what to choose
Alexander Meijers
 
PPTX
Access share point-2013-data-with-provider-hosted-apps
Alexander Meijers
 
PPTX
Share point unvealed apps in sharepoint 2013
Alexander Meijers
 
PPTX
Visio Services in SharePoint 2010
Alexander Meijers
 
PPTX
Uw Aanpak Voor Slimme Integratie
Alexander Meijers
 
PPTX
Architecture In Share Point2010
Alexander Meijers
 
Microsoft ignite tour - Create an immersive experience with office 365 data ...
Alexander Meijers
 
Microsoft ignite tour empower your workers using remote assist - theater se...
Alexander Meijers
 
O365 and SharePoint Connect - Create an immersive experience with office 365...
Alexander Meijers
 
Modern workplace conference create an immersive experience with office 365 ...
Alexander Meijers
 
Code motion - Extend visualization of microsoft graph data to hololens applic...
Alexander Meijers
 
Spsbe2016 extend your office 365 environement to cross-platform apps
Alexander Meijers
 
Implementation of azure active directory authentication with cross platform d...
Alexander Meijers
 
Build your own yammer app @ Collab365
Alexander Meijers
 
An introduction to DevOps
Alexander Meijers
 
Develop business apps cross-platform development using visual studio with x...
Alexander Meijers
 
SharePoint 2013 for internet websites
Alexander Meijers
 
Build you own yammer app
Alexander Meijers
 
Sp24 design a share point 2013 architecture – the basics
Alexander Meijers
 
Design a share point 2013 architecture – the basics
Alexander Meijers
 
Share point 2013 and sql server 2012 what to choose
Alexander Meijers
 
Access share point-2013-data-with-provider-hosted-apps
Alexander Meijers
 
Share point unvealed apps in sharepoint 2013
Alexander Meijers
 
Visio Services in SharePoint 2010
Alexander Meijers
 
Uw Aanpak Voor Slimme Integratie
Alexander Meijers
 
Architecture In Share Point2010
Alexander Meijers
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Digital Circuits, important subject in CS
contactparinay1
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 

Code europe holobasics - develop your mixed reality hololens app with unity and visual studio

  • 1. DEVELOP YOUR MIXED REALITY APP FOR HOLOLENS WITH UNITY AND VISUAL STUDIO HOLOBASICS
  • 2. “HoloLens Evangelist” I am responsible for architecture related business for our project services department at ETTU. I’m involved as architect at different companies like Jumbo Maritime, PGGM, Gemeente Amersfoort and others Alexander Meijers ABOUT ME  Solutions Architect for ETTU  Founder of the Mixed Reality User Group  MixUG: http://www.mixug.nl  Email: [email protected] or [email protected]  Twitter: @ameijers  Blog: http://www.appzinside.com
  • 3. 3INTRO ETTU TODAY’S TALK AGENDA  Realities explained  Microsoft HoloLens Building blocks and tools  Tools  Gestures  Sound  Spatial Mapping & Occlusion Slider Content Ads
  • 5. HOLOBASICS 5 REALITIES EXPLAINED Merging of real and virtual worlds to produce new environments and visualizations where physical and digital objects co-exist and interact in real time. An overlay of synthetic content on the real world that is anchored to and interacts with the real world MIXED REALITY Direct or indirect view of a physical, real-world environment whose elements are augmented by computer-generated sensory input such as sound, video, graphics or GPS data An overlay of content on the real world where that content is not anchored to or part of it AUGMENTED REALITY Generation of realistic images, sounds and other sensations that replicate a real environment or create an imaginary setting An immersive experience created entirely from computer-generated Content. Also similar to 360 degree video VIRTUAL REALITY
  • 7. HOLOBASICS 7 MICROSOFT HOLOLENS SPECIFICATIONS  Windows 10 device based on 32 bit architecture  Contains CPU, GPU and HPU  1GB Holographic Processor Unity (HPU)  64GB flash / 2GB memory  Device is more powerful than a laptop or game computer  No overheating due to warm air flows to the sides  2-3 hours active and 2 weeks standby  Weight 579g  Wi-fi  Gestures, Voice input and spatial understanding
  • 8. HOLOBASICS 8 SENSORS, OPTICS AND SPEAKERS Environment camera Depth camera Video camera Spatial Sound With speakers High definition lenses
  • 10. “DEMONSTRATION OF SPATIAL DESIGN CONCEPT APP” “HoloBasics by Alexander Meijers”
  • 12. HOLOBASICS 12 DEVELOPMENT TOOLS  Visual Studio 2017  UWP workload  Game development with Unity workload  Windows 10 SDK (version 1511 or later)  There is no separate SDK for HoloLens  Unity 2017.2 or Unity 5.6.x  Scripting Runtime Version  Experimental .NET4.6. Equivalent  HoloLens emulator  HoloLens Emulator (build 10.0.14393.1358)  Hyper-V  Contains DirectX project templates for Visual Studio  HoloLens device  GitHub  Microsoft/MixedRealityToolkit-Unity
  • 13. HOLOBASICS 13 BUILD LIFECYCLE OF A HOLOLENS PROJECT  Create Unity Project  Configure HoloLens settings  Create scene Visual Studio Unity HoloLens  Configure build settings  Build and generate Visual Studio project  Open project with Visual Studio  Pair with HoloLens  Build & deploy Visual Studio project  Start Application  Test & debug  Monitor Unity
  • 14. HOLOBASICS 14 WINDOWS DEVICE PORTAL  3D View  Mixed Reality Capture  Performance  Performance tracing  System performance  Processes  Apps  Maintenance  Crash dumps  Additional tools  Logging  File Explorer  Virtual Input
  • 16. HOLOBASICS 16 UNITY PREFABS • Predefined Game Objects • Contains components with predefined values • Prefabs used in Scene inherit the components and settings
  • 17. HOLOBASICS 17 UNITY GAMEOBJECT SCRIPT • Derived from MonoBehaviour • Contains methods which are called by Unity through the a broadcast messaging system • void Awake() – Called when class is instantiated • void Start() – Called when object is enabled once before the first Update() • void Update() – Called once per frame • More methods are available • FixedUpdate, LateUpdate, OnGUI, OnDisable, OnEnabled
  • 18. HOLOBASICS 18 UNITY MESSAGE SYSTEM public void BroadcastMessage(string methodName, object parameter = null, SendMessageOptions options = SendMessageOptions.RequireReceiver); • Used for calling methods on GameObjects • Calls the methods also on its Children • Examples • this.BroadcastMessage(“OnSelect”); • focusedObject.BroadcastMessage(“OnSelect”);
  • 19. HOLOBASICS 19 UNITY COMPONENTS • Transform • Position of object • Rotation of object • Scale (size) of object • Mesh Renderer & Mesh Filter • Renders the object • Mostly done using a mesh • Mesh Collider • Determines the collision for the object • Script • Perform actions on the object • Handle messages on an object
  • 21. HOLOBASICS 21 COORDINATE SYSTEM HOLOLENS AND UNITY forward (x, y, z)Camera (0, 0, 0) Rotation (x, y, z) Camera (1, -1, 4) Rotation (x, y, z) Hologram Object Pinned HoloLens moved to new location View direction Gaze
  • 23. HOLOBASICS 23 GESTURES GAZE • The direction of the HoloLens pointing is called the gaze • Hits an object or part of the environment • Uses a Vector3 based value to define its so called “forward” direction
  • 24. HOLOBASICS 24 GESTURES GESTURE RECOGNIZER • Recognize input by tracking the position of either or both hands • Gesture frame (Frustum) • Recognized input from hands • Bloom • Press, hold and release • Gestures • Hold • Manipulation • Navigation
  • 25. HOLOBASICS 25 GESTURES GESTURE RECOGNIZER • Connect commands to gestures • GestureRecognizer gestures = new GestureRecognizer(); • gestures.TappedEvent += OnGesturesTapped; • gestures.StartCapturingGestures(); • Events • Tapped • Select press and release • Hold (Started, Completed, Canceled) • Select press beyond system hold threshold • Navigation (Started, Updated, Completed, Canceled) • Select press with relative movement • Velocity based continuous scrolling or zooming • Virtual Joystick • Manipulation (Started, Updated, Completed, Canceled) • Select press with absolute movement • Move, resize or rotate hologram
  • 26. HOLOBASICS 26 GESTURES SPEECH RECOGNIZER • Use words or sentences to control your environment • English language only at the moment • Connect commands to spoken text • Dictionary<string, System.Action> keywords = new Dictionary<string, System.Action>(); • keywords.Add(“some text”, () => { … }; • KeywordRecognizer keywords = new KeywordRecognizer(keywords.Keys.ToArray()); • keywordRecognizer.OnPhraseRecognized += OnPhraseRecognized; • keywordRecognizer.Start(); • OnPhraseRecognized( PhaseRecognizedEventArgs args); • Invoke the action • keywords[args.text].Invoke();
  • 29. HOLOBASICS 29 SPATIAL SOUND OVERALL • Simulates 3D sound using direction, distance and environmental simulations • Above, below, behind, to the side, etc. • Attach sound to holographic objects • Works also when object is not in line of sight • Used to draw attention • Audio engine in HoloLens • CPU and memory considerations • 10-12 spatial sound voices
  • 30. HOLOBASICS 30 SPATIAL SOUND TYPES • Audio Haptics • Reactive audio for touchless interactions • Play a sound when user selects an object or when his hands appear inside the gesture frame • Gaze mixing • Highlighting objects • Play a sound on the object to get the users attention • Immersion • Ambient sounds surrounding the user • Support your scene with background sounds or music
  • 31. SPATIAL MAPPING & OCCLUSION
  • 32. HOLOBASICS 32 SPATIAL PERCEPTION HOW DOES IT WORK? • Spatial perception and mapping • Rooms • Different ways of detecting and working with spatial perception • Device scans your environment and builds a digital model in real time • It allows HoloLens to see different surfaces like walls and ceiling • Meshes & planes • Possible to simulate a physical space • E.g. Projecting a terrain over your floor Spatial perception is the ability to be aware of your relationships with the environment around you and with yourself
  • 33. “DEMONSTRATION OF LIVE SPATIAL MAPPING AND UNDERSTANDING BY HOLOLENS” “HoloBasics by Alexander Meijers”
  • 34. HOLOBASICS 34 SPATIAL MAPPING AND UNDERSTANDING  Spatial Mapping components in Unity  Spatial Mapping Renderer script  Spatial Mapping Collider script  Use an empty GameObject in your scene  Spatial Mapping render state  None  Visualization  Occlusion  Rendering material  Occlusion material  Visual material  Cursor on spatial mapping  SpatialMappingCollider.layer = 31;  Cursor uses Raycast with layer mask 1<< 31
  • 35. HOLOBASICS 35 OCCLUSION CULLING  Process of determining which surfaces and parts are not visible from a certain viewpoint  Create a more naturally feeling with mixed reality  Holograms can be occluded by  Other holograms  Real-life objects in your environment which are spatially mapped  Culling enforces the HoloLens not to (partially) render the object  To speed up the rendering process  Objects which are too far away are left out the view (frustum)  Use Spatial Mapping Renderer  Set Occlusion material  Set SpatialMappingRenderer.renderState = RenderState.Occlusion;
  • 36. “</CODE>” “DEMONSTRATION OF SPATIAL MAPPING AND OCCLUSION WITH HOLOGRAM FOR TRUE MIXED REALITY” “HoloBasics by Alexander Meijers”
  • 37. HOLOBASICS 37 WRAP-UP TAKAWAYS  Unity and Visual Studio are the tools to build any HoloLens application  HoloLens applications are not more than UWP with a cool UI  Make use of the Windows Device Portal to have more control over the HoloLens  Make use of all the functionality HoloLens offers like spatial mapping, spatial sound, speech and gestures  Use your environment when building HoloLens applications
  • 38. THANKS FOR WATCHING! HoloBasics code on gitHub - https://github.com/ameijers/HoloBasics Kampenringweg 45b, Gouda 0182-686 000 [email protected] / [email protected] Contact me: facebook.com/alexandermeijers.5 @ameijers Follow me on:

Editor's Notes

  • #4: Mixed Reality (5) Microsoft HoloLens (5) Tools (5) Our first hologram (10) Sound (5) Gestures (5) Spatial Mapping (5) Occlusion (5)
  • #13: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #14: https://github.com/Microsoft/MixedRealityToolkit-Unity
  • #15: https://github.com/Microsoft/MixedRealityToolkit-Unity
  • #16: https://github.com/Microsoft/MixedRealityToolkit-Unity
  • #17: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #18: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #19: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #20: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #22: https://github.com/Microsoft/MixedRealityToolkit-Unity
  • #24: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #25: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #26: https://developer.microsoft.com/en-us/windows/mixed-reality/gestures
  • #27: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #30: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #31: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #33: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #35: https://github.com/Microsoft/MixedRealityToolkit-Unity
  • #36: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools
  • #38: https://developer.microsoft.com/en-us/windows/mixed-reality/install_the_tools