Enabling Spatial Data on HoloLens

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




To be able to work with spatial data you ill have to set some build settings in Unity.

First of all, we have to set using of 16-bit depth  buffers. in the Player Settings | Other Settings. Additionally Windows Holographic have to be enabled too, but this is probably already the case.


As next, set SpatialPerception in Player Settings | Capabilities.


Only if these settings are enable. SurfaceObserver will obtain data from real world and fire OnSurfaceChanged event.

SurfaceObserver  bserver.Update(SurfaceObserver_OnSurfaceChanged),

which holds implementation for rendering of mesh data.

Posted Sep 12 2016, 09:05 AM by Damir Dobric
Filed under:
developers.de is a .Net Community Blog powered by daenet GmbH.