Game dev
Saved & recent

Stereo rendering

Related terms: IPD, single-pass stereo, lens distortion

VR draws the scene twice, once per eye, from two cameras a few centimeters apart. That gap is the IPD, the distance between the pupils. The brain fuses the two images into depth.

Twice the work at 90 frames per second is why VR is demanding. Single-pass stereo draws both eyes in one go with instancing. Each image is also bent in advance to cancel the distortion of the headset lenses.

Further reading
Meta Horizon OS Developers: Using Single Pass Stereo Rendering and Stereo Instancing
IPD left eye right eye lens display left-eyeposition pre-distortededge stereo pair
Each eye is a camera at its own pupil, 6.4 cm apart. The near ball shifts much farther between the two images than the far crate, and the brain reads that difference as depth. Each image is pre-distorted inward so the lens’s pincushion distortion straightens it. Single-pass stereo draws both images in one go, instancing each object once per eye. The lens coefficients are illustrative.

View in the full Game dev collection