Skip to content

Commit 0f236fa

Browse files
authored
Merge pull request #472 from HodgsonSDAS/HTK-local
Added Spatial Understanding Readme
2 parents 7b5d752 + 7ebd77b commit 0f236fa

File tree

3 files changed

+76
-3
lines changed

3 files changed

+76
-3
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
## [Spatial Understanding]()
2+
Scripts, Prefabs, and Test Scenes that leverage Spatial Understanding related features.
3+
4+
See the [HoloToolkit Spatial Mapping](HoloToolkit/SpatialMapping) documentation to ensure your project is set up correctly.
5+
6+
**IMPORTANT**: Please make sure to add the Spatial Perception capability in your app, in Unity under
7+
Edit -> Project Settings -> Player -> Settings for Windows Store -> Publishing Settings -> Capabilities
8+
or in your Visual Studio Package.appxmanifest capabilities.
9+
10+
###Microsoft HoloLens Documentation
11+
- [Spatial Mapping In Unity](https://developer.microsoft.com/en-us/windows/holographic/spatial_mapping_in_unity)
12+
- [Spatial Understanding In Unity](https://developer.microsoft.com/en-us/windows/holographic/spatial_mapping_in_unity#holotoolkit.spatialunderstanding)
13+
14+
###Case studies
15+
- [Expanding the spatial mapping capabilities of HoloLens](https://developer.microsoft.com/en-us/windows/holographic/case_study_-_expanding_the_spatial_mapping_capabilities_of_hololens)
16+
17+
### [Plugins](Plugins)
18+
SpatialUnderstanding addon that can be used for topology, object detection, and object placement.
19+
20+
### [Prefabs](Prefabs)
21+
The following prefab makes it easy to quickly get started using the Spatial Understanding Modules.
22+
23+
####SpatialUnderstanding.prefab
24+
This prefab is used to control the state and flow of the scanning process used in the understanding module, provides the means to visualize the scanning process.
25+
26+
### [Scripts](Scripts)
27+
28+
####SpatialUnderstanding.cs
29+
The SpatialUnderstanding class controls the state and flow of the scanning process used in the understanding module.
30+
31+
####SpatialUnderstandingCustomMesh.cs
32+
Handles the custom meshes generated by the understanding dll. The meshes are generated during the scanning phase and once more on scan finalization. The meshes can be used to visualize the scanning progress.
33+
34+
####SpatialUnderstandingDll.cs
35+
Encapsulates the primary dll functions, including marshalling helper functions. The dll functions are organized into four parts - in this behavior, SpatialUnderstandingDllTopology, SpatialUnderstandingDllShapes, and SpatialUnderstandingDllObjectPlacement. The scan flow, raycast, and alignment functions are included in this class.
36+
37+
####SpatialUnderstandingDllObjectPlacement.cs
38+
Encapsulates the object placement queries of the understanding dll. These queries will not be valid until after scanning is finalized.
39+
40+
####SpatialUnderstandingDllShapes.cs
41+
Encapsulates the shape detection queries of the understanding dll. Shapes are defined by the user with AddShape and the analysis is
42+
initiated with ActivateShapeAnalysis. These queries will not be valid until after scanning is finalized.
43+
44+
Shape definitions are composed of a list of components and a list of shape constraints which defining requirements between the
45+
components. Each component is defined by a list of its own shape component constraints.
46+
47+
####SpatialUnderstandingDllTopology.cs
48+
Encapsulates the topology queries of the understanding dll. These queries will not be valid until after scanning is finalized.
49+
50+
####SpatialUnderstandingSourceMesh.cs
51+
Provides the input meshes to the spatial understanding dll. The component relies on the spatial mapping module. It maintains
52+
a mesh list in the required dll format which is updated from the spatial mapping's SurfaceObject list.
53+
54+
### [Shaders](Materials)
55+
56+
####SpatialMappingSurface.shader
57+
A basic wire frame shader that can be used for rendering Spatial Mapping meshes.
58+
59+
####SpatialUnderstandingSurface.shader
60+
A basic wire frame shader that can be used for rendering Spatial Understanding Surfaces.
61+
62+
---
63+
##### [Go back up to the table of contents.](../../../README.md)
64+
---

Assets/HoloToolkit/SpatialUnderstanding/README.md.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ HoloToolkit contains the following feature areas:
99
1. [Input](Assets/HoloToolkit/Input/README.md)
1010
2. [Sharing](Assets/HoloToolkit/Sharing/README.md)
1111
3. [Spatial Mapping](Assets/HoloToolkit/SpatialMapping/README.md)
12-
4. [Spatial Sound](Assets/HoloToolkit/SpatialSound/README.md)
13-
5. [Utilities](Assets/HoloToolkit/Utilities/README.md)
14-
6. [Build](Assets/HoloToolkit/Build/README.md)
12+
4. [Spatial Understanding](Assets/HoloToolkit/SpatialUnderstanding/README.md)
13+
5. [Spatial Sound](Assets/HoloToolkit/SpatialSound/README.md)
14+
6. [Utilities](Assets/HoloToolkit/Utilities/README.md)
15+
7. [Build](Assets/HoloToolkit/Build/README.md)
1516

1617
To learn more about individual HoloLens feature areas, please read the [Wiki](https://github.com/Microsoft/HoloToolkit-Unity/wiki) section.
1718

0 commit comments

Comments
 (0)