Live data from Hacker News

Show HN: Make a video of any word forming out of candy

customanim.com

11–20 of 47 posts

Re: Show HN: Make a video of any word forming out of candy

#11
post #10

This is really well done. I was wondering if it is open source or if it ever may become open source? I would love to see how it all comes together.

Given that comparing multiple previews, the locations of the pieces doesn't change, I'd guess the animation data is saved or reproducible. Given an input text, the text is turned to an image, overlaid, the pieces are colored matching the image/the colors matched to piece IDs, and then the animation is rendered with the colors applied to the pieces from the start.

Re: Show HN: Make a video of any word forming out of candy

#12
post #7

Earlier quoted context omitted.

Yes. 90% of people are going to render Hello without changing text.

Click on "example animation" to get this https://www.youtube.com/watch?v=AyWqcY_oyo4

Right, but that doesn't solve the UX problem. If you try to render hello, it should just go to that video.

Re: Show HN: Make a video of any word forming out of candy

#13

I would cache the default animation. You’re doubtlessly getting hammered by folks just running it (like me) to see what it looks like, only to get stuck waiting for a GPU slot to render the same word again and again.

Thanks, I added that in.

Re: Show HN: Make a video of any word forming out of candy

#14

Thanks to Captain Disillusion I know how this is done (obvious in hind sight, but cool to learn): The movement of the marbles is pre-rendered and you can color the marbles in the end result right so at the beginning the distribution looks random, but everything falls perfectly into place.

Ah, the whole work backwards trick.

Re: Show HN: Make a video of any word forming out of candy

#17

Nicely done, but getting stuck at Waiting for GPU server slot, there are None jobs ahead of yours... with a progress bar not longer even crawling. From the console: websocket open app.js:189:14 Got text message: progress: GPU render server received target image... app.js:203:12 Got text message: your ticket is xxx app.js:203:12 Got text message: progress: Waiting for GPU server slot, there is one job ahead of yours..…

Thanks, took me a while to find the issue.

I had a feature where if the same client (by IP address) starts another job, their previous jobs are deleted. But after I added secure websockets support by proxying through nginx, all IP addresses from the server's point of view became "127.0.0.1" and every job would just be deleted when a new one came in, because they all had the same IP.

Post reply on HN