microsoft / OpenXR-MixedReality

OpenXR samples and preview headers for HoloLens and Windows Mixed Reality developers familiar with Visual Studio
https://aka.ms/openxr
MIT License
339 stars 96 forks source link

Why when run BasicXrApp on HoloLens 2 Emulator, It's black sreen? #4

Closed sinojelly closed 5 years ago

sinojelly commented 5 years ago

I compile BasicXrApp on Visual Studio 2017 with Debug/x64, package it to BasicXrApp_uwp_1.0.0.0_x64_Debug.appx, then install it to HoloLens 2 Emulator through Device Portal, and start it. It seems to be launched successful, I can hear the sound, and see the animation, but after that, there is only a black screen on the HoloLens 2 Emulator.

I don't know how to make the HoloLens 2 emulator to show the BasicXrApp. Any help would be appreciated! start-basicxrapp-blackscreen

yl-msft commented 5 years ago

The default cubes placed in the world is probably behind your eye at this moment. You might want to control your emulator to move back a bit so you can see the cubes in front of you.

yl-msft commented 5 years ago

The initial placement of the cube should be 1 meter in front of user. But there was a bug in the code that cube was spawned at user's head.

7 is fixing this issue.

yl-msft commented 5 years ago

Resolved in #7