Live data from Hacker News

Show HN: Something pointless I made

dn.ht

31–40 of 105 posts

Re: Show HN: Something pointless I made

#32
Fwiw this appears to be an awesome remix of (my cofounder) TJ Fuller's laser eyes cat shooting cucumbers gif, which can be found here: http://giphy.com/gifs/cat-lasers-cucumber-3oEduQAsYcJKQH2XsI

If you like this style of thing, check out the rest of TJs work at his website: http://www.tjfullerswebsite.com

Re: Show HN: Something pointless I made

#33
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…

I'd like to congratulate you for the fact that this has higher production values than the majority of WebGL applications out there.

Re: Show HN: Something pointless I made

#35

Fwiw this appears to be an awesome remix of (my cofounder) TJ Fuller's laser eyes cat shooting cucumbers gif, which can be found here: http://giphy.com/gifs/cat-lasers-cucumber-3oEduQAsYcJKQH2XsI If you like this style of thing, check out the rest of TJs work at his website: http://www.tjfullerswebsite.com

Yup! Credit where credit is due—that is the gif that inspired this thing. Love it!

I'm really curious how they made it in the first place.

Re: Show HN: Something pointless I made

#36
post #23
post #14

Earlier quoted context omitted.

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?

It does if you specify the `autoDetectRenderer`, rather than `WebGLRenderer` or `CanvasRenderer`.

Re: Show HN: Something pointless I made

#37
post #23
post #14

Earlier quoted context omitted.

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?

Yep, pixijs can fall back to a canvas renderer. I have a feeling it would be too slow unless I disabled all the effects.

Re: Show HN: Something pointless I made

#38

Is it just me, or is the HTML file incomplete? I didn't see anything, so I looked at the source and there's no canvas tag and the file abruptly ends after the GA script tag: https://web.archive.org/web/20151130010039/http://i.imgur.co...

and end tags are explicitly optional in HTML5 -- as are the start tags. http://www.w3.org/TR/html5/sections.html#the-body-element

The canvas element is added to page by JavaScript.

Re: Show HN: Something pointless I made

#39
post #8

Earlier quoted context omitted.

Would love to hear more about how you generated the depth map - that's super cool.

I'm glad you asked! :) I created it in Adobe Illustrator using a gradient mesh: http://i.imgur.com/kuuFVO2.png Illustrator's gradient mesh tool lets you create a grid of points where you can choose a colour for each point. I overlayed the grid onto the sprite and estimated the distance at each point.

Is that something one can do with Inkscape as well ?

Re: Show HN: Something pointless I made

#40

That's an interesting way to get background music. Wastes bandwidth on the video though. " rel="nofollow">https://www.youtube.com/embed/UsMewmMTA_c?autoplay=1">

But lets you sidestep all of the hosting costs and probably the majority of copyright issues.
Post reply on HN