Forum Discussion
LePython
3 years agoExplorer
How do I place objects in a room that can be moved (Not spatial anchors)
There is a tutorial on how to create an OVRSceneManager component, but after creating it and placing a cube in a scene, the cube isn't actually placed in a room like it should be. After taking off the headset and putting it back on, the position of the cube is being reset! I noticed that the Phanto project doesn't have this problem, but I can't find a solution for my project. Isn't this something that should be already documented in https://developer.oculus.com/documentation/unity/unity-scene-gs/ ? I can't really create any mixed reality apps without this feature and there is no solution documented anywhere.
When using Oculus link, the scene is being recentered automatically when headset is put on the head (Using stage tracking). Everything works correctly only when the project is built on the device. Meta if you are reading this, please add this either to the known issues in the docs or fix the oculus link so that it works normally.
3 Replies
Replies have been turned off for this discussion
- SimonDarksideJProtege
In my experience, if you want an object to persist in the scene view between runs/operations, then you need to anchor them to a plane.
The Phanto demo, in my experience, does a lot of weaving in and out objects and while the individual elements might not be anchored, they are placed on a plane that is anchored. If you want to replicate this, then I would suggest trying this method. (just remember to destroy the anchor if you then move it again 😄 )
Personally, my biggest issue is that the Scene meshes from the headset do not always align once you either take off the headset or restart it, usually raising the scene mech off the floor and rotating it when being localized (worse sometimes it only affects some of the room components).- LePythonExplorer
Thank you for your explanation. I tried using the spatial anchors on oculus link and it works correctly, but even without the anchors the objects shouldn't change their position when the headset is taken off, but the app is still running (in sleep mode). I found out that this problem occurs only with Oculus Link.
- LePythonExplorer
When using Oculus link, the scene is being recentered automatically when headset is put on the head (Using stage tracking). Everything works correctly only when the project is built on the device. Meta if you are reading this, please add this either to the known issues in the docs or fix the oculus link so that it works normally.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago
- 3 years ago