5 ms·
Basically AAlib [1]. I remember it was mind-blowing being able to launch quake inside your terminal, but that was over 20 years ago. The tech is basically scal
by zeroq 5y ago
Basically AAlib [1].
I remember it was mind-blowing being able to launch quake inside your terminal, but that was over 20 years ago.
The tech is basically scaling the image down to the size of the terminal and using LUT to get a character from pixel's luminosity.
The hardest part of this particular demo is, in fact, rendering font in WebGL. Rest is rather trivial and while interesting and pretty I don't really think it deserves first page on HN.
[1] https://en.wikipedia.org/wiki/AAlib https://en.wikipedia.org/wiki/AAlib
- phkahler 5y agoI think it might be better with one of the old character sets that had multiple blocks per pixel. That would increase the resolution and they could use Floyd-Steinberg dithering or similar to get grayscale. OTOH that wouldn't be ASCII.
- greggman3 5y agoToo lazy to go add video but wrote a post processing pass to do this here https://greggman.github.io/doodles/textme08.html https://greggman.github.io/doodles/textme08.html You can choose various different subsets of unicode (glyphs), you can also choose "DOS colors" (debug) and change the text size etc.. It's just post processing a 3D scene but it would be trivial to change it to video A different kind of video effect is to use the video has a height map. Works best with certain kinds of videos https://greggman.github.io/doodles/3d-grid-video.html?url=videos/jbns-credits-ld.mp4 https://greggman.github.io/doodles/3d-grid-video.html?url=vi... (warning: has sound)