Hello everyone.

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.

Why is my app always deploying in 2D mode?

abiggsabiggs
edited April 2016 in Questions And Answers

I am currently writing an app for Hololens using the physical device. When I build my project from Unity, I select Universal 10 + D3D from the build options, and build the C# project. However, when I run the app and tap to place it, the resulting deployed app displays a 2D app window and never launches the application in 3D. I've deleted all the Unity temp files, including the generated project, and rebuilt it making sure to select D3D, but have had no luck.

Has anyone else encountered this issue?

Best Answers

  • jbienzjbienz
    Answer ✓

    I made a different mistake than the ones above but ended up with the same outcome. I wanted to share the solution here since it isn't documented anywhere.

    When following the step-by-step directions for Holograms 101 I set the background to Black using the color picker instead of typing in the values. I ended up with R: 0, G: 0, B: 0, A: 10. Because there was a partial alpha, the app rendered in a 2D window instead of as a hologram, even though Virtual Reality Support was enabled.

    Hope that helps someone else.

Answers

  • @abiggs when you run the app are you seeing the Tap to place and run prompt?
    If you are not, and if you haven't already tried it you might want to do an air tap gesture.

    When an app deploys to the HoloLens (or emulator) it will appear as an app window. You then do the Tap gesture to place and run it.

    Similar to the Placement section in the HoloLens shell documentation: https://developer.microsoft.com/en-us/windows/holographic/hololens_shell_overview

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • Since I had already followed your lead and made a barebones sphere project myself when I saw your original post I then turned off the Virtual Reality Support in the project settings and now see what you mean about the 2D sphere in the 2D window.

    Good to hear you quickly found the problem and even better that you shared the lesson with the rest of us.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

  • @abiggs I was looking for that ! Thanks !! :)

  • jbienzjbienz
    Answer ✓

    I made a different mistake than the ones above but ended up with the same outcome. I wanted to share the solution here since it isn't documented anywhere.

    When following the step-by-step directions for Holograms 101 I set the background to Black using the color picker instead of typing in the values. I ended up with R: 0, G: 0, B: 0, A: 10. Because there was a partial alpha, the app rendered in a 2D window instead of as a hologram, even though Virtual Reality Support was enabled.

    Hope that helps someone else.

  • @jbienz said:
    I made a different mistake than the ones above but ended up with the same outcome. I wanted to share the solution here since it isn't documented anywhere.

    When following the step-by-step directions for Holograms 101 I set the background to Black using the color picker instead of typing in the values. I ended up with R: 0, G: 0, B: 0, A: 10. Because there was a partial alpha, the app rendered in a 2D window instead of as a hologram, even though Virtual Reality Support was enabled.

    Hope that helps someone else.

    Amazing, thank you. Was stuck so long.

  • @abiggs said:
    I am currently writing an app for Hololens using the physical device. When I build my project from Unity, I select Universal 10 + D3D from the build options, and build the C# project. However, when I run the app and tap to place it, the resulting deployed app displays a 2D app window and never launches the application in 3D. I've deleted all the Unity temp files, including the generated project, and rebuilt it making sure to select D3D, but have had no luck.

    Has anyone else encountered this issue?

    I encountered it too. I have checked the virtual reality settings and camera's rgba value, there is no problem.Also, the remote test on Hololens displays on 3D mode.
    But when I build the app into a vs project, and launch on the Hololens, it is 2D mode.
    Do you have any advice?
    Thanks a lot!

  • @HoloSheep said:
    Since I had already followed your lead and made a barebones sphere project myself when I saw your original post I then turned off the Virtual Reality Support in the project settings and now see what you mean about the 2D sphere in the 2D window.

    Good to hear you quickly found the problem and even better that you shared the lesson with the rest of us.

    I encountered it too. I have checked the virtual reality settings and camera's rgba value, there is no problem.Also, the remote test on Hololens displays on 3D mode.
    But when I build the app into a vs project, and launch on the Hololens, it is 2D mode.
    Do you have any advice?
    Thanks a lot!

  • @songs said:

    @HoloSheep said:
    Since I had already followed your lead and made a barebones sphere project myself when I saw your original post I then turned off the Virtual Reality Support in the project settings and now see what you mean about the 2D sphere in the 2D window.

    Good to hear you quickly found the problem and even better that you shared the lesson with the rest of us.

    I encountered it too. I have checked the virtual reality settings and camera's rgba value, there is no problem.Also, the remote test on Hololens displays on 3D mode.
    But when I build the app into a vs project, and launch on the Hololens, it is 2D mode.
    Do you have any advice?
    Thanks a lot!

    Having this issue as well. I manage to make a clean Unity project with just the MRTK examples in it that launches into 3D mode on the hololens, so there must be something causing this in my project. Currently comparing every setting to figure it out, but no luck so far.

  • I have just had this problem developing. I needed HoloLens input in my App so I added the HoloLens Input Module from the Windows Mixed Reality package (default). This caused the app to run in 2D windowed mode once deployed. I removed it, and it runs as usual now, so I have to find another way to integrate UI.

    Hope this helps someone!

Sign In or Register to comment.