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

Recognizing rooms

In my current situation I want the HoloLens to detect what kind of room it is in. Depending on the roomtype, it will create holograms accordingly. I'm thinking about comparing the actual roomsize with the rooms which I have saved before. Does anyone know if the HoloLens is capable of recognizing types of rooms?

Answers

  • Options
    dbarrettdbarrett ✭✭✭

    As far as I know, there is no such script that has been written. However, to give you a starting point, maybe you should check out the Spatial Understanding Shape Queries. You can define shapes and check for them, i.e. like a couch, or maybe you can check for a bed in a bedroom or a table in a kitchen. Depending on what you find in the Shape Query would determine what kind of room you were in.

    https://docs.microsoft.com/en-us/windows/mixed-reality/spatial-mapping-in-unity#holotoolkit.spatialunderstanding

    AR Developer

  • Options

    This is more of a 'thinking out loud' idea than an answer as I haven't tried what I'm about to suggest so please apply a pinch of salt.

    That said, I wonder if your app could use spatial anchors to try to achieve what you want here. So...when a user runs your app in ROOMA you create a spatial anchor and save it in storage on the device labelled 'ROOMA' and the same for ROOMB.

    Next time the user runs the app, you iterate through your saved spatial anchors and try to re-establish them and if the anchor can be re-established then perhaps you can assume that you are back in the room where the anchor was created.

    Just a thought and, naturally, this might get 'expensive' if the app has to work in lots and lots of places and had to iterate through lots of anchors to see if they could be re-established. Naturally, you could perhaps key off something like the WiFi network name to reduce the anchors that you have to search through.

Sign In or Register to comment.