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.