x

*** Keys ***

S   toggle between stereogram and depth map
T   toggle between background texture and noise
F   toggle framerate display
A   toggle animation
B   toggle background movement

Explanation

This page renders a depth map of a cube (which can be seen by pressing "S"), and then renders this depth map as a single image stereogram.

All calculations are done by WebGL shaders.

You can make the cube move by pressing "A", but it gets hard to keep seeing the stereogram. For best results, try using animated noise as the background (press "T" and "B").

View the source code
Uses WebGL and Three.js, JavaScript 3D library