News for hackers. Stuff that matters.
Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by happyshadows on Monday December 01, 2014 @12:30AM (#8679664)
When Lord? When the hell do I get to see the goddamn sailboat?
Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by zachrose on Monday December 01, 2014 @12:37AM (#8679686)
Relax your eyes!

I've never been able to see one of these things on a screen until now. Now that I have, I really want too see an animated one.

The coolest thing so far is that you can click "redraw" and you'll cut to the next one and your eyes will already be focused for it.

Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by peeinears on Monday December 01, 2014 @12:54AM (#8679727)
Look, it's a schooner! ;)

There's pretty recent music video that's all autostereogram: https://www.youtube.com/watch?v=2AKtp3XHn38 The dots at the beginning are helpful.

I don't think MagicEye.js is fast enough to do a bunch of frames on the fly for some real-time animation, unfort. But if you already have the frames rendered you could stitch them together into a gif.

Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by phst on Monday December 01, 2014 @02:18AM (#8679880)
I did an animated 3d plasma for js1k some time ago. It's not fast but it's animated: http://js1k.com/2013-spring/demo/1412

h key toggles the height map.

It uses a simplified version of the MagicEye.js algorithm which generates horizontally repeating patterns for hard height changes in the source image. That's why I went with a plasma in the end.

Source is available here: https://github.com/philippstucki/sird-plasma/blob/master/3dp...

Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by jasonkostempski on Monday December 01, 2014 @08:53AM (#8680917)
Really cool! I've wanted to see a dynamic animated MagicEye in action ever since I saw an Oculus Rift demo video with side by side left/right views and was able to get a 3D effect in the middle by focusing on it like a magic eye. It was hard to do because of the distance and looked pretty ugly because the separate L/R views were still visible. I tried to make my own but quickly gave up. If snappier animation is possible, there's definitely some fun to be had in game form. Recreations of the old vector based arcade games would be really fun. I wounder if there would be any effect, bad or good, on your eyes staring at one for too long.
Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by peeinears on Monday December 01, 2014 @02:29AM (#8679895)
Sick!
Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by ollysb on Monday December 01, 2014 @01:43AM (#8679813)
Here's how I do it: you'll notice that there's a repeating pattern, cross your eyes until you get two of the repititions to be on top of each other. Once you've done this you should find that the shapes pop out.
Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by jdpage on Monday December 01, 2014 @02:11AM (#8679870)
This is how I do it. The problem is that this inverts the depth map, because your right eye sees the left eye image and vice-versa.

To properly view them, you need to go wall-eyed, by focusing on something behind the screen. This is something that I have not been able to do yet.

Re:Show HN: MagicEye.js – Generate Magic Eye in Your Browser by robert_tweed on Monday December 01, 2014 @04:08AM (#8680094)
The other problem with the cross-eyed technique is that it can be hard to maintain a sharp focus on the 3D shapes. And it will really hurt after a while.

It's a good technique if the repeating strips are really wide. On my screen at least, the strips here are pretty narrow, so it should be relatively easy to converge your eyes correctly.

Having said that, I don't know if this script is resolution independent, so it's possible that on some monitors the strips are a lot wider than they should be and that could be giving people more trouble.