Hero image

Square In Depth

What the code does

This demo introduces stereoscopic presentation by rendering a random dot stereogram of a square positioned in a depth plane in front of the screen. In this simple demo we achieve this by shifting the position of dots in the left and right eyes in equal and opposite directions on the computer screen. This is not geometrically correct, but a good start for learning about rendering stereoscopic stimuli as you have direct access to the dot coordinates for each eyes image. To view the demo you will need red-green anaglyph glasses.

Visualisation

The code

Instagram image Instagram image Instagram image Instagram image Instagram image Instagram image