The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Spatial Mapping From Scratch
Firstly, I've gone through all the 101E examples successfully by following the instructions point by point.
I'm now having trouble getting the spatial mapping mesh to render when I try to do it from scratch.
I see rendering of the emulated room
Nothing renders and I only see black
Here's what I am doing:
- Create a GameObject and attached a script with the exact code as the
Spatial Mapping Example in 101E
- Imported the Wireframe file (no extension) and its .shader file
- Dragged the .shader file to the no extension Wireframe file in Unity (to associate the two)
- Associated the Wireframe as the Material in the script
- Checked the "Draw Visual Meshes"
- Though unnecessary (since the example didn't need them for rendering), I added the
"Spatial Mapping Renderer"
"Spatial Mapping Collider"
components and set them with the same settings as in 101E.
- a) Go to Edit > Project Settings > Player~~~~
b) Under Publish Settings > Capabilities, check the "SpatialPerception" box
- a) Edit > Project Settings > Quality
b) Set the Windows projects to "Fastest"
- a) File > Build Settings
b) Added Open Scenes and made sure it was checked
c) Player Settings > Other Settings > Virtual Reality Support is checked and "Windows Holographic" is listed
d) Highlight Windows Store
SDK = Windows 10
UWP Build Type = D3D
Checked "Unity C# Projects"
e) Click "Build"
- I opened the App > .sln file
- I edited the Package.appxmanifest file to say "Windows.Holographic" vs "Windows.Universal"
- Set it to "Release","x86", and the Hololens Emulator
- Debug > Start without Debugging
I've also deployed this to the Hololens hardware with the same results, so it's not an emulator issue.
Hopefully I've done something obviously wrong that you experienced gurus can point out.
I feel like there's some project settings or some prefab generation steps that I'm missing. I'm going to go through the 230 course to see if there's something in there that they glazed over the intro.
I wish the tutorials would take you step by step from scratch vs just opening their Origami project and copying their prefabs into the project. This is a really good way to get people excited because of how easy it is, but it becomes really frustrating once you run into issues doing something on your own.