Take stereoscopic (3D) screenshots in the visionOS simulator.
An example screenshot from the visionOS simulator in side-by-side stereo.
Tested on macOS 14 beta 2 / Xcode 15 beta 2.
Setup
Non-Metal Immersive apps
./build.sh
./inject.sh
# this resprings the simulator
Metal Immersive (CompositorService) apps
TODO
Usage
Non-Metal Immersive apps
./screenshot.sh
Screenshots are saved in /tmp/visionos_stereo_screenshot_{time}.png
.
How it works
This hooks CompositorService to give backboardd an extra right eye view to render.