August 10th, 2024

ASCII 3D Renderer for JavaScript

The GitHub repository features an ASCII 3D Renderer in JavaScript, with a live demo available. Installation requires `pnpm`, and the project is licensed under the MIT License for open use.

Read original articleLink Icon
ASCII 3D Renderer for JavaScript

The GitHub repository features an ASCII 3D Renderer developed in JavaScript, which includes sample code related to a blog post by the author, written in Korean. The project demonstrates the rendering of 3D graphics in ASCII format. A live demo of the renderer is available online. To install and run the project, users need to execute the commands `pnpm install` followed by `pnpm run storybook`. The project is licensed under the MIT License, allowing for open use and modification.

- The project showcases 3D graphics rendering in ASCII format.

- A live demo is accessible for users to view the renderer in action.

- Installation requires the use of `pnpm` for package management.

- The project is licensed under the MIT License, promoting open-source use.

Link Icon 8 comments
By @nox101 - 2 months
I'm pretty sure it's rendering strings but there's also the technique of post processing on the GPU like this

https://threejs.org/examples/?q=asc#webgl_effects_ascii

By @owenpalmer - 2 months
Reminds me of https://asciicker.com/.
By @agys - 2 months
Self plug: the “ASCII Playground“ has a couple of 3D demos as well!

DOM manipulation is fast enough to allow text output into a PRE element as long as text color is not changed too often (each style change needs the affected chars wrapped into a SPAN).

https://play.ertdfgcvb.xyz

By @gewaltig - 2 months
My younger self cries out in joy. So 1980s when you could print an ASCII picture of yourself on mugs and Ts
By @smusamashah - 2 months
This immediately reminded me of this ascii graphics library https://play.ertdfgcvb.xyz/ which I found on HN a while ago
By @MaanuAir - 2 months
By @sukmaagung - 2 months
So, as long it uses only text, it can be called ASCII art, not just characters from space to tilde (or null to tilde)?
By @woodrowbarlow - 2 months
see also: donut.c which renders a 3d spinning torus in ascii. https://www.a1k0n.net/2006/09/15/obfuscated-c-donut.html

explanation with animations: https://www.a1k0n.net/2011/07/20/donut-math.html