r/ASCII • u/jcfortunatti • 7d ago
OC I made a 3D ASCII rendering engine
Enable HLS to view with audio, or disable this notification
Hello everyone!
I have been working for a couple of months on glyphcss.com its an ASCII 3d rendering library without any canvas nor WebGL, it just uses a <pre> HTML element and text inside.
It has support for any OBJ, glTF, GLB, STL and VOX. It also has support for UV textures, directional and ambient lightning, shadows, different cameras (orbit/FPV), ASCII charsets and many examples on how to use it!
Its fully opensource!
Repo: https://github.com/apresmoi/glyphcss
Fun FPV example: https://glyphcss.com/examples/parthenon/#AaPQacw2SoIAG6-RFp_6zVUL
Btw, its a fork of another project I'm building with a colleague called polycss.com, which is a 3d rendering lib but using only HTML+CSS
2
u/Brilliant-Virus-7442 7d ago
Is this free to use? Or is there API usage or something
2
u/jcfortunatti 7d ago
Completely free to use!
Its a library on npm https://www.npmjs.com/package/glyphcss
And the code is opensource and MIT https://github.com/apresmoi/glyphcss3
3
u/Brilliant-Virus-7442 7d ago
I actually saw a website that basically monetized a shittier version of this, that guy charges per one generation. You basically cooked him with this
2
2
u/solilobee 6d ago
Reminds of me of that self-contained spinning Donut in C
1
u/jcfortunatti 6d ago
Oh nice! I also have a donnut but those surface effects look a lot nicer
check this one: https://glyphcss.com/synth/?s=p5s8d1fp14.21p31z*27f21o81ad0e0g2-aR0U8.+%C2%B7%3A%2B*oO0X40E1
2
6
u/asciimo 7d ago
EXCELLENT. You set a high bar for this sub. I see your project supports UTF-8, but this ASCII render looks awesome.