Re:iOS 7 Parallax Background in JS
by randallu on Saturday June 15, 2013 @09:39AM
(#5884985)
I did something similar (but with more layers) using one of the Lytro depth images as a sample:
(This one rotates on a desktop browser, but uses the device orientation to create a 3D effect on iOS at least).
[ Parent
| on HN ]
Re:iOS 7 Parallax Background in JS
by crazygringo on Saturday June 15, 2013 @12:29PM
(#5885410)
That's pretty cool. It's the black parts in between that make it "unusable" for anything serious, but still a very cool demonstration.
I wonder if you could use the same idea to produce something like the whole "wiggling 3D images" [1] thing automatically, since it would involve smaller gaps. And somehow fill in the gaps using an equivalent of Photoshop's "Content-Aware Fill", based only on the layer of the same depth -- since it would just be for narrow strips, for most things it should probably give a pretty realistic effect. I'm unaware if there's any kind of general-purpose library which does that, though. (I vaguely recall that Gimp has a similar, but less sophisticated, implementation.)