Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

How to develop a DLL module using Mixed Reality

$
0
0

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


Viewing all articles
Browse latest Browse all 10543

Trending Articles