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.
Options

Load holographic view in UWP app

Hey,
I am new to holographic (3D) views.
I want to open a holographic view from my HoloLens UWP app. So the app itself is 2D (xaml) and I want to display a scene designed in unity.
Which project template is the most suitable for that? The universal blank app or the holographic DirectX11 app? I guess the blank app should work in any cases, but how do I display a 3D scene out of a 2D UWP app? Is there any tutorial for that?

Thanks in advance!

Answers

  • Options
    utekaiutekai ✭✭✭

    Haven't seen anything like it. But ... here's some clues.

    Let's say you start up a holographic app, for instance using the holographic template you mentioned. So the app starts in 3D.

    Then let's say you call a message box to display, for instance a new Windows.UI.Popups.MessageDialog.

    At the point where the message dialog pops up, the 3D app is suspended, and a 2D app more or less takes over. When you dismiss the dialog, the 3D app is resumed.

    So you want your app to start as 2D and from time to time go into 3D. What I've described is how to go from 3D to 2D and back.

    There is no tutorial I'm aware of, but sometimes experience is the best teacher.

  • Options

    Hi @waretec ,

    Yes you can do this if all you want is to display a 3D scene inside a 2D view. However if you want to have the user interact then that presents another issue. There are a couple of ways to accomplish this:
    1. You can create a 2D XAML application and load your scene and model up in the 3D swapchain panel. You'll have to convert your model to a format the SharpDX can understand such as sdkmesh, vbo, or cmo format. You first have to export the fbx to an obj (you might lose colors, texturing and materials), then convert the obj to the format above, and then load it using SharpDX
    2. You can create a DirectX 12 XAML application. Do the same steps above to convert your model and load the sdkmesh, cmo, or vbo models in the DirectX 12 Xaml application.

    Dwight Goins
    CAO & Founder| Independent Architect | Trainer and Consultant | Sr. Enterprise Architect
    MVP | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer
    http://dgoins.wordpress.com

Sign In or Register to comment.