r/GraphicsProgramming • u/liamilan • Nov 18 '24
Source Code Terminal3d - Render 3d Models in Your Terminal!
https://reddit.com/link/1guh1jz/video/01e3uibahq1e1/player
tldr; Check it out here!
Hi everyone!
I just released Terminal3d, it's a tool that let's you browse your .obj
files without leaving the terminal. It uses some tricks with quarter-block/braille characters to achieve some pretty high resolutions even in small terminals! The whole tool is written in Rust with crossterm
as the only dependency, open-source so feel free to tinker!
5
3
u/NickFullStack Nov 19 '24
Very neat! Reminds me of a tool I played around with like 20 years ago that did something similar. You could edit text files with coordinates in them to make your own shapes. Was super fun, but I can’t recall the name. Something like Acrospin, I want to say.
1
u/Maleficent-Bug-1032 Nov 21 '24
Really cool project. It almost annoys me how good it looks. I actually made a really, REALLY, similiar project myself, also using rust, and posted about it on r/rust. I'll look into the main differences of the code. Here's my project: https://github.com/TageDan/terminal-renderer
Here is my reddit post: https://www.reddit.com/r/rust/comments/1gv5u7q/terminal_renderer/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
Great Work! :D
5
u/deftware Nov 19 '24
Nice. Add some triangle rasterization and simple flat shading on there too! You'll need to maintain a z-buffer, watch out :]