I'm trying to get to grips with the scene querying functions, specifically in order to get the known positions of the floor, walls, desk, sofa and windows. I've set them up in the OS on my Quest 2 and I can see them renderered when in the home UI, but my sample app doesn't get any of the info. Instead, in the console I get:
[OVRSceneManager] LoadSpatialEntities() OVRPlugin.QuerySpaces() failed.
[OVRSceneModelLoader] LoadSceneModel failed. Will try again next frame.
Spammed again and again. If I run "The World Beyond", available on the Oculus Store it seems to pick up my wall positions well, so I suspect it's something to do with my config, or the version of the package/Unity I'm using. Can anyone help?
Here's my setup:
Barebones project with Unity 2021.3.10f1 on Windows 11
Oculus Integration v43.0
Build Settings set to use the VirtualFurniture sample scene
Changed OVRCameraRig to enable passthrough and experimental features
Changed Player Settings to use IL2CPP and build for 64-bit ARM
Solved! Go to Solution.
Hey, have you posted some code for this anywhere? I'm stuck on querying the scene, and have made sure I have "Anchor Support" enabled.
Do you have the SceneManager script on a gameobject? If so, do you define the Plane or Volume prefabs? Can't get any of my prefabs to set those fields, even though the prefabs have SceneAnchor components.
Hey. Yeah basically I added Oculus's OVRSceneManager prefab to the scene, and changed the Plane and Volume prefabs to my own versions.
If you want to check that it's working at all, you can load up the test Oculus scene (VirtualFurniture) and see if it populates the environment using your room setup.