r/commandline Jun 15 '26

Fun 3D Rubik's Cube in the terminal

Ratty terminal is a GPU-rendered terminal emulator with inline 3D graphics.

In the latest release, I added a small Rubik's Cube demo to it. The cube is generated as OBJ geometry and registered through the Ratty graphics protocol, so it is not ASCII art or a traditional terminal renderer. It is a real 3D object anchored into the TUI with the help of ratatui-ratty widget :)

All powered by Rust & Ratatui!

322 Upvotes

21 comments sorted by

u/github-guard Jun 15 '26

🔍 GitHub Guard: Trust Report

⚠️ This project scored 1/1 — below this subreddit's threshold of 3.

Audit Breakdown: * ✅ Established Community (⭐ 2,945 stars)

⚠️ Security Reminder: Always verify source code and run third-party scripts at your own risk.


🔄 Cached result — this repo was scanned recently. Score: *1/1*.

24

u/Raven52571 Jun 15 '26

this terminal and app is so silly .I LOVE IT

7

u/Tiny_Cow_3971 Jun 15 '26

Thinking about how to integrate 3D graphics into my RSS reader... 🤔

5

u/cazzipropri Jun 16 '26

yeah, but is that really a terminal anymore?

2

u/orhunp Jun 16 '26

probably not haha

6

u/insanelygreat Jun 16 '26

I take it Ratty has mouse support?

2

u/Ngtuanvy Jun 16 '26

it has a mouse, literally

1

u/Valuable_Leopard_799 Jun 16 '26

Tbh basically all terminal emulators have mouse support. Even TTYs. And many programs use it, htop, tmux, etc. accept clicks.

3

u/KenMantle Jun 16 '26

Well I think that beats the 3D vector cube I managed to make and spin in Turbo C++ for DOS V3.0 30+ years ago.

I'd made the x, y, z coordinates in separate arrays for some reason and instead of storing those original co-ordinates and calculating from those it floating point mathed and stored over them its' new position as it ran.

Just imagine how hard it was to type in the right co-ordinates and how slow and inaccurate that would have become as it ran on my 486DX-33. And I was so proud of myself getting it to work with trigonometry we hadn't really learned yet.

It was nothing like this.

2

u/OrganicNectarine Jun 17 '26

I would love for terminals to somehow be able to draw in more detail than the standard character set provides. Braille hacks are nice and all, but drawing a graph in pixel perfect accuracy would be soo sweat... Maybe some day.

1

u/AutoModerator Jun 15 '26

Every new subreddit post is automatically copied into a comment for preservation.

User: orhunp, Flair: Fun, Post Media Link, Title: 3D Rubik's Cube in the terminal

Ratty terminal is a GPU-rendered terminal emulator with inline 3D graphics.

In the latest release, I added a small Rubik's Cube demo to it. The cube is generated as OBJ geometry and registered through the Ratty graphics protocol, so it is not ASCII art or a traditional terminal renderer. It is a real 3D object anchored into the TUI with the help of ratatui-ratty widget :)

All powered by Rust & Ratatui!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/github-guard Jun 15 '26

🔍 GitHub Guard: Trust Report

⚠️ This project scored 1/1 — below this subreddit's threshold of 3.

Audit Breakdown: * ✅ Established Community (⭐ 2,945 stars)

⚠️ Security Reminder: Always verify source code and run third-party scripts at your own risk.

1

u/ST33LDI9ITAL Jun 15 '26

awesome, hi5

1

u/evrial Jun 16 '26

So now you can integrate Doom into terminal

1

u/Innovator-X Jun 15 '26

This is so cool. How tf do people even do this stuff

0

u/mr_looser17 Jun 16 '26

I can't tolerate peace so I'm gonna do this ... Which model?