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

How to develop a DLL module using Mixed Reality

Hello everyone,
I need help with integrating WMR into our C++ framework. I work for automotive company and I need to create a DLL module to encapsulate WMR functionality so we can read tracking and render into Immersive headesets, later to Hololens as well.

I have already integrated a couple of other VR headsets to our application, but I have no idea, how to make this one work. I have never worked with UWP before and this platform seems quite overcomplicated to me.

One of the problems is easy - our framework uses OGL, WMR strictly DX, thank god there is a WGL interop extension to cover it. I also have experience with DX11, so thats sorted out.

The real problems:

  • I created an empty DLL UWP project in VS2017, then I tried copying parts of the code from BasicHologram sample, but the objects are not recognized, I can't even seem to find a header file that would include stuff like Windows::Graphics::Holographic::HolographicSpace. There are almost no includes in the project either, where do those types come from?

  • The other problem I see on the "horizon" is that Windows::Graphics::Holographic::HolographicSpace::CreateForCoreWindow needs a window, I assume its a main window for the application. Is there a way not to pass it to the function or to create it in a different way? Because our app already has it's own window (we use wxWidgets) and I don't see a point of having an extra window when the only thing I want to do is to read the tracking and submit a frame. Or am I missing something?

  • Is there a way to do this stuff in pure C++ and not CX or WinRT? For example via WRL? https://msdn.microsoft.com/en-us/library/hh973459.aspx ? If yes, how?

Thanks in advance

Regards

Joseph

Answers

Sign In or Register to comment.