Answered by:
[UWP] Transparent background on UWP app on Hololens

Question
-
I've made a test UWP app, but it appears the background goes from transparent in the design screen to white in the Hololens emulator. I've heard it mentioned before that it is possible to have apps have transparent backgrounds. Is this something only possible if the app was made in Unity, or is there a solution?
Thanks!
- Moved by Rob Caplan [MSFT]Microsoft employee Thursday, June 30, 2016 5:20 PM
Thursday, June 30, 2016 1:17 PM
Answers
-
I've attempted to do that. It's essentially two stackpanels within a grid. Both backgrounds are set as black. In the Hololens emulator, if I click off to the side (to show that light traveling in the back), I cannot see the light through my app. Is there a special setting I may be missing somewhere?
The light travelling through, are you referring to the mesh that it displays that represents the layout of the room that loads in the emulator? I don't think there is a way to get the mesh to show through. In a real HoloLens you would see the real world there. I don't think there is a way to make the world mesh show through.
It takes all the running you can do to stay in one place.If you want to get somewhere else,you must try to run at least twice as fast as that.- Marked as answer by Bryson T Thursday, June 30, 2016 8:31 PM
Thursday, June 30, 2016 5:06 PM
All replies
-
On the hololens Black and transparent are the same thing. Give your application a black background.
It takes all the running you can do to stay in one place.If you want to get somewhere else,you must try to run at least twice as fast as that.Thursday, June 30, 2016 1:57 PM -
I've attempted to do that. It's essentially two stackpanels within a grid. Both backgrounds are set as black. In the Hololens emulator, if I click off to the side (to show that light traveling in the back), I cannot see the light through my app. Is there a special setting I may be missing somewhere?Thursday, June 30, 2016 2:33 PM
-
I've attempted to do that. It's essentially two stackpanels within a grid. Both backgrounds are set as black. In the Hololens emulator, if I click off to the side (to show that light traveling in the back), I cannot see the light through my app. Is there a special setting I may be missing somewhere?
The light travelling through, are you referring to the mesh that it displays that represents the layout of the room that loads in the emulator? I don't think there is a way to get the mesh to show through. In a real HoloLens you would see the real world there. I don't think there is a way to make the world mesh show through.
It takes all the running you can do to stay in one place.If you want to get somewhere else,you must try to run at least twice as fast as that.- Marked as answer by Bryson T Thursday, June 30, 2016 8:31 PM
Thursday, June 30, 2016 5:06 PM -
Effectively you'll need to write your app in Unity to have a blank background. A normal UWP app pins the window but the window isn't transparent.
For more on HoloLens please post at http://forums.hololens.com
Thursday, June 30, 2016 5:20 PM -
Sorry, it's hard to tell whether this is something hololens specific or UWP specific. Thanks though.Thursday, June 30, 2016 7:26 PM