News for hackers. Stuff that matters.
Re:Ask HN: Why does this image look 3D? by chadcmulligan on Wednesday April 20, 2022 @05:45PM (#31103453)
Red and blue are the extremes of colours we can see, and because of the change in wave length they focus at different lengths in our eye. So to focus on either colour your eye has to adjust its focal length, which gives the 3d effect. The perspective probably adds to it.

It's called chromostereopsis - http://en.wikipedia.org/wiki/Chromostereopsis

Re:Ask HN: Why does this image look 3D? by spartanatreyu on Thursday April 21, 2022 @01:42AM (#31106331)
The strongest example I've found of Chromostereopsis that I've found:

https://pbs.twimg.com/media/CeaBIWdWEAAmm4_.jpg

I have another example in my design inspiration notes that is based on a live action image: https://i.imgur.com/Tau4fHc.jpg

Re:Ask HN: Why does this image look 3D? by dudus on Wednesday April 20, 2022 @06:08PM (#31103717)
Came here to say this, and also that I like this other page with a good explanation of the phenomenon.

http://www.ritsumei.ac.jp/~akitaoka/scolor-e.html

Re:Ask HN: Why does this image look 3D? by moron4hire on Thursday April 21, 2022 @01:14AM (#31106216)
Akiyoshi Kitaoka is and has been the king of optical illusions for as long as I can remember. My undergraduate thesis in 2005 was based on his work [0], and even at that time he had a huge body of work.

[0] I demonstrated exploiting various optical illusions to create depth and animation effects. I thought I was going to revolutionize game graphics on mobile devices! And then mobile devices got GPUs shortly thereafter.

Re:Ask HN: Why does this image look 3D? by LeoPanthera on Wednesday April 20, 2022 @07:06PM (#31104206)
That first image is incredible. The effect is so strong.
Re:Ask HN: Why does this image look 3D? by FrostKiwi on Thursday April 21, 2022 @03:31AM (#31106856)
I'm jelous :[ Being stereoblind none of the examples work for me.
Re:Ask HN: Why does this image look 3D? by frosted-flakes on Thursday April 21, 2022 @11:20AM (#31110611)
The effect is still visible when viewing them with one eye.
Re:Ask HN: Why does this image look 3D? by ricardobeat on Wednesday April 20, 2022 @06:20PM (#31103817)
Why doesn’t it work as well on a mobile phone though? Especially since an iPhone has better color reproduction than most desktop monitors.
Re:Ask HN: Why does this image look 3D? by herpderperator on Wednesday April 20, 2022 @06:21PM (#31103833)
I think it may also depend on the subpixel geometry[0][1] (and pixel density) of the screen. There are a lot of ways to arrange subpixels.

[0] https://en.wikipedia.org/wiki/Pixel_geometry

[1] https://en.wikipedia.org/wiki/PenTile_matrix_family

Re:Ask HN: Why does this image look 3D? by tomilola39 on Wednesday April 20, 2022 @06:31PM (#31103926)
Re:Ask HN: Why does this image look 3D? by pwillia7 on Wednesday April 20, 2022 @06:42PM (#31104017)
This hurt my eyes more than any image I've ever looked at -- desktop monitor. Ow.
Re:Ask HN: Why does this image look 3D? by rkangel on Thursday April 21, 2022 @06:05AM (#31107623)
Is it because you're viewing it at a different distance (phone usually closer than monitor) and therefore the focusing variation is different?
Re:Ask HN: Why does this image look 3D? by vgel on Thursday April 21, 2022 @04:41AM (#31107209)
Worked for me on my iPhone 6s+, though not as strong as OP described. Maybe LCD vs OLED?
Re:Ask HN: Why does this image look 3D? by bXVsbGVy on Thursday April 21, 2022 @05:22PM (#31115359)
In other words. The brain has a bug on the chromatic aberration part of the image processing pipeline.

Who wear glasses, either in the face or in a camera, may have noticed, a red or blue contour on some occasions. This also happens with our eyes, but it seems the brain use this to infer depth.