Re:Optical illusion of motion
by LarrySDonald on Sunday April 18, 2010 @10:49AM
(#1274895)
Looking at it, yes, that's pretty much it. Lenticular images (aka, sports flips, those odd things that move when you tilt them, etc) are based on the same principle except with a lens to show each "band" depending on viewing angle rather then moving a striped sheet over it to obscure a sequence of frames.
Just overlay N layers (the frames of your animation) on top of one another. For every Nth column of pixels, delete the next N-1 columns following it (in all layers). Then, for each layer at index X in the stack, translate the entire layer horizontally by X pixels.
Your overlay for viewing the animation is just a black opaque rectangle with every Nth column being deleted to reveal the image beneath.