Autostereogram
PHOTOSENSITIVITY WARNING: Rapidly flashing lights and patterns and potential for eye strain.
An autostereogram is an image that appears 3D by "hacking" our binocular depth perception. A repeating pattern lets the viewer's eyes converge on a point in 3D space behind the display. The pattern is shifted slightly based on the image depth to simulate the effect of viewing the same 3D object from two slightly different places (the left and right eyes). The brain does the rest of the work interpreting this as a 3D picture.
I was able to achieve the effect in real time using a multi-pass fragment shader that constructs the pattern in reverse.
Tips for viewing: Try to relax your vision. Keep the screen in focus, but let the image "double" as your eyes un-cross and converge somewhere behind your display. A computer monitor is ideal.
Sweep the cursor across the image to show the autostereogram or the depth image used to create it.
Leave a comment
Log in with itch.io to leave a comment.