Can I get lighting information about the environment on visionOS?

Asked on 07/31/2024

1 search

Yes, you can get lighting information about the environment on visionOS. Here are some relevant details:

  1. Virtual Environment Probe: The virtual environment probe describes a location in terms of color variation and illumination intensity. This information can be used to automatically shade any physically based rendering material, closely approximating the way light bounces off objects. This is useful for providing environment lighting for objects in your immersive space (Enhance the immersion of media viewing in custom environments).

  2. Environment Lighting Configuration: This component controls how much lighting an entity receives from the environment probe. It is particularly useful for creating smooth lighting transitions, such as when an object moves through a portal (Discover RealityKit APIs for iOS, macOS and visionOS).

  3. Lighting Adjustments for Tracking: ARKit on visionOS includes mechanisms to react to changes in lighting conditions. If the system detects low light conditions that affect tracking, it will switch to orientation-based tracking to prevent complete tracking loss (Create enhanced spatial computing experiences with ARKit).

  4. Customizing Tint and Brightness: In visionOS, you can customize the tint and brightness to blend the lighting on the user's hands with the environment lighting, enhancing the immersive experience (Enhance the immersion of media viewing in custom environments).

For more detailed information, you can refer to the sessions mentioned above.