how do I build an immersiveSpace?
Asked on 07/30/2024
1 search
To build an immersive space, you can follow these steps as outlined in the session "Dive deep into volumes and immersive spaces":
-
Create the Immersive Space: You can configure this in the new project dialog in Xcode or add it manually to your project. Initially, the immersive space will be empty.
-
Transplant Content: When the immersive space is opened, you can move all of the RealityKit content from the volume into the immersive space. This transition should be seamless to provide a delightful experience for the user.
-
Coordinate Space: Use the named coordinate space introduced in visionOS 1.1 called "immersive space" to precisely specify positions relative to the immersive environment.
-
Progressive Immersion Style: You can create a progressive immersion style using a new initializer that takes in a custom immersion range and an initial value. This allows you to define the minimum, maximum, and initial values of the progressive effect applied to the scene.
For more detailed guidance, you can refer to the session Dive deep into volumes and immersive spaces starting at 18:40.
Relevant Sessions

Create custom environments for your immersive apps in visionOS
Discover how to create visually rich and performant customized app environments for Apple Vision Pro. Learn design guidelines, get expert recommendations, and explore techniques you can use in any digital content creation tool to begin building your immersive environment.

Dive deep into volumes and immersive spaces
Discover powerful new ways to customize volumes and immersive spaces in visionOS. Learn to fine-tune how volumes resize and respond to people moving around them. Make volumes and immersive spaces interact through the power of coordinate conversions. Find out how to make your app react when people adjust immersion with the Digital Crown, and use a surrounding effect to dynamically customize the passthrough tint in your immersive space experience.

Enhance the immersion of media viewing in custom environments
Extend your media viewing experience using Reality Composer Pro components like Docking Region, Reverb, and Virtual Environment Probe. Find out how to further enhance immersion using Reflections, Tint Surroundings Effect, SharePlay, and the Immersive Environment Picker.