We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.
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.
The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.
On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.
So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. And always feel free to hit us up on Twitter @MxdRealityDev.
How to develop a DLL module using Mixed Reality
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