Re:Show HN: I spent 6 years building a ridiculous wooden pix...
by munificent on Monday August 04, 2025 @02:00PM
(#44789350)
I was wondering about the algorithm to drive the plotter and update pixels, which ties into this.
Given the current image being shown and the next image, you (presumably) want to plot the pixels of the next image as quickly as possible. I believe the optimal algorithm is:
1. Calculate the set of pixels that are changed between the current and next image.
2. Find the shortest path from the plotter's current position through each of those pixels. I believe breadth-first search (O(n)) is sufficient here.
Running this on all potential upcoming images and choosing the one with the lowest total path cost would do what you propose under "better".
Re:Show HN: I spent 6 years building a ridiculous wooden pix...
by benholmen on Monday August 04, 2025 @01:26PM
(#44788889)
Oh I kinda love the idea of drawing the next one based on the pixel diff! Would be fun to game that queue.
Re:Show HN: I spent 6 years building a ridiculous wooden pix...
by skrebbel on Monday August 04, 2025 @02:02PM
(#44789365)
you could have it render a movie
Re:Show HN: I spent 6 years building a ridiculous wooden pix...
by sphars on Monday August 04, 2025 @05:19PM
(#44791483)
This version of the Bad Apple meme[0] does just that, with physical apples: https://www.youtube.com/watch?v=lT-fdnIK0k0
- naively: Levenshtein
- better: real world edit time based on a model of the display : probably dominated by XY travel distance