Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Viconthebeach's avatar
2 years ago

What you always wanted to know about tracking that Meta guides never explained clearly.

I am very happy about the discover I've just made today, but I feel a bit annoyed about the fact I didn't find any detailed explanations of that over the Meta documentations.

I've started VR development for oculus 2 monthes ago. As I didn't find anywhere something giving accurate knowledges about how to align VR scene with real world, I finally passed 2 or 3 weeks building a system using passthrough + spatial anchors to allow alignment setup before loading the game. It works pretty nice BUT it makes the project bigger and slower because not optimized.

Today, I decided to start my own investigations about the way the world axis is aligned when drawing a guardian area. Here the happy conclusions:

-Erase any Guardian setup previously set.
-Define a new guardian area as a clean square or rectangular shape (not millimetric but the overall shape should be an obvious square or rectangle).
- Important thing is HERE: when you finish drawing the shape, before to confirm the draw, LOOK into the direction of the edge you want to be the X axis of your VR scene. This edge will be perpendicular to the Z axis of the VR scene, and the OVRCameraRig object will be postioned to the center of this area (as mentionned in guide) and looking Z forward to that edge (not mentionned).
- Don't forget to set OVR Manager to "Stage" mode (as mentionned in guide).

Now your Scene will keep track of that guardian setup and alway keeps the axis alignment. 

 

Replies have been turned off for this discussion