Building a Magic Eye Generator and Decoder

Posted by simedw 6 hours ago

Counter3Comment3OpenOriginal

Comments

Comment by laetus-app 6 hours ago

Magic Eye images are a fascinating example of how the brain reconstructs depth from pattern repetition.

What always surprised me is how small changes in horizontal offsets can completely change the perceived 3D structure.

Did you generate the depth map first and then derive the repeating pattern, or does the generator work directly from an image?

Comment by simedw 6 hours ago

Agreed, it almost feels like we have a visual processing unit with special “opcodes” for operations like depth matching and pattern repetition.

The generator first needs a depth map, and then derives the repeating pattern from that. A normal RGB image would be far too noisy; the fine texture variations would break the repetition needed for the brain to fuse the patterns correctly.

Comment by laetus-app 53 minutes ago

That makes sense. Using a depth map first sounds almost inevitable for keeping the repetition stable enough for the visual system to lock onto it.

What I always find interesting with these images is how sensitive the brain is to those horizontal disparities. Even tiny shifts create a surprisingly strong sense of structure once the eyes fuse the patterns. It really highlights how much of “seeing” depth is reconstruction rather than direct perception.

Do you generate the depth maps manually, or are they derived procedurally from some model or scene description?