r/oculusdev • • Aug 29 '24

Easy automatic surface detection?

Hi guys,

I am trying to code a prototype for a proof-of-concept using the Meta Quest 3 and have reached a point I cannot move past without your wonderful support :-)

I want to detect vertical surfaces, specifically walls, without needing to do any manual configuration (i.e. Room Setup). Apple's ARKit supports this out-of-the-box, so I was expecting Meta XR to allow something similar, but I cannot find a way to make it work. I have also tried to build up this functionality using the AR foundation samples but at the end of the day, it seems that the Meta XR framework relies on the user "manually" scanning the room and assigning labels to the different objects. Meta's documentation explicitly states that plane detection relies on completing Room Setup beforehand.

Is there a way to recognize vertical surfaces automatically and model them as planes? Manually running the Room Setup sort of kills my use-case. Can anyone please point me in the right direction?

4 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Unfair_Salamander_20 Sep 02 '24

Well sorry to say it will almost certainly take significantly longer than a couple days. The depth API will allow you to pull a depth map from your headset's current pov, but how to turn that into what you want in a performant way sounds like a challenge.  Not insurmountable, especially since you have 3d experience, but definitely not a couple of days.

1

u/DrKiss82 Sep 02 '24

The more I look into it, the more convinced I am to go with a different platform (probing ARkit right now, it seems I can get the whole thing to work within a week). I get why Meta went this way with their system but it sucks if you want to develop for use cases beyond games and entertainment. Anyway, thanks for caring <3