Hi, I want to implement high quality rendering with Metal mode in Vision OS 2.0.
According to the documentation, the EnviromentProbeAnchor is available with Vision OS 2.0+.
But I found that the environment probe feature is only available with RealityKit mode.
The screenshot below is the Metal mode without passthrough. Enviroment Probe Manager is added to the already XROrigin gameobject.
Hi there! Thanks for reaching out, and sorry to hear you’re having trouble.
Are you able to test on a Vision Pro? I believe the issue that you’re seeing here is that ARKit features (including environment probes) are not implemented in the visionOS Simulator. You should see some logs to that effect as we try to spin up various XR subsystems in Unity. They’re easy to miss among the flood of startup logs and warnings that come from Unity and visionOS, but you should be able to search the log and see “Environment probe provider is not supported.”
In the case of RealityKit, the simulator is providing environment probe data because it does not use ARKit (at least, not in terms of user-facing code). If you would like to be able to work with ARKit environment probes in the Simulator, please direct your feedback to Apple through their Feedback Assistant or public forums. There isn’t anything we can do on our end to enable this feature.
As long as you’re using the Environment Probe Manager and an AR Session you should be able to make use of Environment Maps in reflective materials. It looks like you’ve based this scene on the sample provided with the com.unity.xr.visionos package. I can attest that environment probes work properly in this scene when it is running on a Vision Pro. As with features like hand tracking and world understanding, you will need to test on a device to ensure that they work as expected in your application.
I should also point out that the XR Simulation feature of AR Foundation will provide environment probe textures captured from the simulated environment. This should give you roughly the same experience as testing in the VisionOS simulator in the Editor, plus our own brand of simulated AR functionality. Of course, these features won’t work exactly the same on visionOS, and you may still run into platform-specific issues that will only arise on a genuine Vision Pro.