HoloLens Development Tutorial Using The Buildwagon Platform
HoloLens Development Tutorial Using The Buildwagon Platform
JavaScript
Presentation by
HoloLens Development Tutorial
Using the platform
Presentation Roadmap
Chapter 1: Chapter 2:
Introduction User Interaction
The basics Gaze, Gestures,
and Speech
Chapter 3: Chapter 4:
User Components Models
Label, Button, Models &
Toolbar, Dialog… Animation
Chapter 6:
Chapter 5:
World Interaction
Sound
Spatial Mapping
Spatial Sound
Spatial Anchoring
What is the HoloLens?
Holographic Lens
Sensors
Holobuild Library
Development Tools (cont’d)
Buildwagon Editor & Emulator:
Runs inside your browser and allows you to type your HoloLens code and see
the results immediately.
https://buildwagon.com
Development Tools (cont’d)
HoloBuild Library:
https://Buildwagon.com/documenation
Let’s Get Started
The three main concepts that you need to get started is:
1. A Space
2. A Camera
3. A Renderer
A Space is where your hologram can live & where any action happens.
A Camera represents the HoloLens device and where it is looking at in relation to your space.
The person wearing the HoloLens decides where the camera is looking.
A Renderer is what draw (or render) the space content onto the camera.
Let’s Start Coding
Set the Space:
In our context, a hologram, a 3D object, or a holomesh can be used interchangeably & they
mean the same thing.
Now that we have our landscape set,
let’s start adding shapes.
Whenever you want to add a new shape, follow the following process.
The process is similar regardless of the shape's details. It involves the following steps:
Define the new material that you want to use to cover the shape
Dress the geometric shape with the cover to create a hologram (connect them together as a
mesh)
Define the new material that you want to use to cover the shape:
| var boxmaterial = new HoloBuild.HoloMeshBasicMaterial( { color: 'red' } );
Dress the geometric shape with the cover to create a hologram variable that we will call a
HoloMesh:
|var boxmesh= new HoloBuild.HoloMesh( boxgeometry, boxmaterial );
To cover the HoloBoxGeometry with a material, you can use one of the materials available in
the Holobuild library such as HoloMeshBasicMaterial. The material describes the geometry
appearance such as its ‘color’ (one parameter of the material element).
In this example, we have chosen ‘red’ for the material color.
Let’s look at the code again
Now it all makes sense:
info@buildwagon.com