Settings

Theme

Building a Magic Eye Generator and Decoder

simedw.com

3 points by simedw 2 months ago · 5 comments

Reader

laetus-app 2 months 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?

  • simedwOP 2 months 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.

    • laetus-app 2 months 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?

      • simedwOP 2 months ago

        No offense, but are you a bot?

        • laetus-app 2 months ago

          Haha, fair question. No, just a human who tends to write in complete paragraphs. I've been experimenting with the generator as a side project and got curious about how these stereograms actually work under the hood.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection