Math, Optics, And CNC Combine To Hide Secret Images In Acrylic

Magic mirrors, with an LCD panel hidden behind a partially reflectively mirror, are popular for a reason — they’re a good-looking way to display useful information. A “Magic Window,” however, is an entirely different thing — and from the look of it, a far cooler one.

If you’ve never seen a Magic Window before, don’t worry — it’s partially because you’re not supposed to see it. A Magic Window appears to be a clear piece of glass or plastic, one with a bit of a wave in it that causes some distortion when looking through it. But as [Matt Ferraro] explains, the distortion encodes a hidden image, visible only when light passes through the window. It looks a bit like a lithophane, but it’s projected rather than reflected, and it relies on an optical phenomenon known as caustics. If you’ve ever seen the bright and dark patches cast on the bottom of a swimming pool when sunlight hits the surface, you’ve seen caustics.

As for how to hide an image in a clear window, let’s just say it takes some doing. And some math; Snell’s Law, Fermat’s Theorem, Poisson’s Equation — all these and more are mentioned by [Matt] by way of explanation. The short story is that an image is morphed in software, normalized, and converted into a heightmap that’s used to generate a toolpath for a CNC router. The design is carved into a sheet of acrylic by the router and polished back to clarity with a succession of sandpaper grits. The wavy window is then ready to cast its hidden shadow.

Honestly, the results are amazing, and we marvel at the skills needed to pull this off. Or more correctly, that [Matt] was able to make the process simple enough for anyone to try.

45 thoughts on “Math, Optics, And CNC Combine To Hide Secret Images In Acrylic

  1. Watched video, thought to myself “Looks like with some more processing, he could make projection holograms, this already looks like a hologram”. Read the text – holy moly, this IS a hologram!.

    1. It’s not a hologram yet, because the input data is just one 2D photo of a cat. But if he managed to take many pictures from known perspectives, knowing also camera’s focal point, he could create a 3D map (x,y,z). Let’s imagine a space containing rectangles with grayscaled photos where imaging sensors were with points in front of them. Now we can draw light rays of different intensity – where these rays cross, we sum their intensity and get cat’s 3D model. Then we simulate how the light beam should be refracted to get that 3D image (observed by putting the glass between source and viewer).

        1. Easy. Just put a keyboard down in the center of the photogrammetry rig and pretend to work on it.

          People in the future will wonder why we made cats sit on blocky plastic trays, but what do you do?

    1. If you can cast microstructure holograms on to chocolate, you can cast this.
      What I’m wondering is if this could be combined with a liquid crystal to redirect the incoming light, perhaps producing animations or even using a sandwich of materials with different refractive indexs to show different images at different wavelengths and reproduce colour images from white light.

  2. Very cool!

    The title made me wonder why those speaking American English say “math” with no ‘s’, but ‘optics’, with an ‘s’? If it’s ‘math’, shouldn’t it be ‘optic’, with no ‘s’ as well then? On the other hand, those speaking English English say ‘maths’ and ‘optics’.

    I always thought ‘maths’ was short for ‘mathematics’, so I guess students in the United States get taught ‘mathematic’, with no ‘s’? Maybe someone cleverer than I could explain it?

    1. US and England. Two countries divided by a “common” language.

      Problem is that English isn’t a single language. It’s more like 3 languages in a trench-coat pretending to be a single entity. One with a nasty habit of following other languages down dark alleys, hitting them over the head and rifling through their pocket for loose grammar and vocabulary.

      A lot of the division between US English and UK English is that they’ve been influenced by different cultures and different language reforms. And when it comes to language reforms it seems the universal constant across languages that those language reforms never actually make a language more uniform or logical.

    2. I can only offer an unsatisfying explanation: the fundamental assumption that language (English in particular) follows a consistent set of rules is flawed.

      We have already inherited plenty of words, phrases, and usages that make no sense. Add to that the fact that language changes over time, and it is easy for it to become even more of a mess.

    3. As an American English speaker it makes a lot more sense. Math is a singular concept. There are different maths (plural) such as arithmetic, calculus, algebra, statistics, etc., but they’re all facets of math. It is similar to science. The concept of science is singular, but there are many sciences which are facets of science.

      Optics also makes sense to me because any optical system involves multiple elements, hence optics are a plurality.

      This intuition breaks down when you toss in physics, or other concepts. It sort of highlights that around the 18th Century English was pretty fluid but the proliferation of public literacy on both sides of the Atlantic resulted in rigid school books that made arbitrary choices, which typically manifests in UK English having extra vowels and US English having fewer, because both forms were in common use prior to arbitrary rules being made up.

      Language is fluid. Right and wrong are silly concepts to ascribe to a system designed for communicating ideas. As long as both parties grok your jive, it’s all good.

  3. A famous swiss entreprise called Rayform has develloped and used the same technology. Even sells services, like customized reflective jewels. Thumbs up for Matt to have sorted out all of that by himself !

  4. I wonder if the same thing could be accomplished by carving the acrylic but then instead of polishing it, pour a layer of clear resin over it. The difference in refractive index, transmission, etc might give the same effect.

    1. Or even modifying a FDM printer to dispense UV resin and curing it. Do multiple passes to get the layers needed to implement the heightmap directly. With a fine enough head and Z resolution you could probably dispense with most, if not all, of the polishing.

      IIRC wasn’t such a resin printer recently mentioned here at HaD ?

  5. I remember discussing the possibility of doing this back in the mid 1990’s on the POVRay mailing list. We knew it was possible as you can break the problem down in an array of lenses but it is great to see such a good writeup of the maths out in the public domain after all of this time.

    1. That, and the study of the physics of light (especially it’s transmission through flavoured alcohol)

      But what it absolutely isn’t, is the PR appearance of a subject. Or am I the only one who finds that irritating ?

Leave a Reply to BadAngelCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.