Live data from Hacker News

Show HN: Something pointless I made

dn.ht

21–30 of 105 posts

Re: Show HN: Something pointless I made

#23
post #14

Uncaught Error: This browser does not support webGL. Try using the canvas renderer :( :( :( :( :(

Ah bummer, WebGL is pretty widely supported but still not quite 100% -- http://caniuse.com/#feat=webgl

I thought PixiJS was supposed to fall back to canvas if WebGL isn't enabled?

Re: Show HN: Something pointless I made

#27
post #2

I made this demo using http://www.pixijs.com/ Something I'm really happy with is the psuedo-3d effect on the cat using a displacement map. I took the cat sprite ( http://dn.ht/picklecat/mesmercat.png ) and made a "depth map" ( http://dn.ht/picklecat/mesmercatdisplacement.jpg ) 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…

Yeah I came here to ask how you did the faux-3d cat. It's very subtle, but effective as hell. I thought you were using some kind of fancy parallax shader, but I can see how a displacement map can approximate the same thing. Awesome!
Post reply on HN