Show HN: Something pointless I made
I made this demo using <a href="http://www.pixijs.com/" rel="nofollow">http://www.pixijs.com/</a><p>Something I'm really happy with is the psuedo-3d effect on the cat using a displacement map.<p>I took the cat sprite (<a href="http://dn.ht/picklecat/mesmercat.png" rel="nofollow">http://dn.ht/picklecat/mesmercat.png</a>) and made a "depth map" (<a href="http://dn.ht/picklecat/mesmercatdisplacement.jpg" rel="nofollow">http://dn.ht/picklecat/mesmercatdisplacement.jpg</a>) where white is closest and black is furthest. This information is used to determine how far to move the underlying pixels. It's enough to give a subtle illusion of depth.