Hello everyone.

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.

Access spatial mapping data when using remoting?

I've successfully used the RemotingHostSample to render data on a PC and send the image to the HoloLens, and have integrated the necessary code into my own PC app. The sample is also able to read the user's gestures. However, is it possible to read the hololens spatial mapping data? The sample doesn't do this, and I can't find any information on this either, so I'm guessing it's not possible? I would like to perform occlusion on the image the PC is rendering.

Thanks.

Best Answer

Answers

  • Interesting, I'll give it a try. Just like with the gesture handling, I find it kind of surprising that it 'just works', and that you don't have to tell the surface observer to get data from the remote connection.

    I've read about having to add the capability to the manifest, how does that apply to desktop apps?

  • edited January 2017

    Good point about desktop apps. I think it's more in line with you're requesting this permission from the HoloLens device itself than the desktop application. Remember the code runs on the host, but uses the sensors from the HoloLens, which must be requested permission to do so. The Holographic application on the HL then connects and sends the data back to the Hosting application.

    I'll post an example as soon as I get the chance.

    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

  • mkentiemkentie
    edited January 2017

    An example would be great. Right now I've modified the Hosting application's SpatialInputHandler's CheckForTapped() function to create a surface observer and perform GetObservedSurfaces(). So everything happens once the connection is established. However, the function always returns an empty map. If I try to call RequestAccessASync(), it returns DeniedBySystem.

  • Alright, if I wait a couple of second before requesting access, it's allowed. Unfortunately the map is still empty.

  • Hello,
    This is a feature on which I am currently working on.
    @Dwight_Goins_EE_MVP - can you please post the example?
    @mkentie - My guess is your code has worked out, what was missing or needed in this case,
    Thanks in advance

  • My Sample for HL Remoting can be found here:
    https://github.com/dngoins/HololensDXTutorials

    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.