Daddy needs a new pair of RAM!
edit: the fps are way better in smaller terminal windows with lower character count but then it’s hard to make out the dice. D:
edit2: code here (expires in 2 weeks)
One of my favourite things in the entire world is what I call “high effort shitposts”. Running DOOM on absurd devices like pregnancy tests is the archetypical example I use when explaining this.
Well, congrats, because this is absurd enough that this makes the list too. You are ridiculous and delightful, and I am glad that you exist to create impressive horrors like this.
Thank you so much! I love high effort shitposts too!
And if you liked that, you’re going to love this: A while ago I also wrote a 3d renderer from scratch inside the picotron, an emulated fantasy console that never existed, to display a 3d model of a pudu.
I have a few more of these you might appreciate, non 3d related.
How about DOOM on a 1956 vacuum tube computer?
Get this on the berg I wanna render my dice rolls over SSH stat
lol but it’s not finished and everyone will see how stupid my code (and brain) is D:
It’s bash. Everyone is expecting nightmare code, and that’s why it’s fun!

I forgot to tell you how much I appreciate this meme. heh. thanks!
I hope you change your mind.
Most people care about features, not the implementation.
Those who dislike your code are probably going to generally dislike others’ code anyways, so in a sense they don’t even need to see your code to already disapprove of it 🤷♀️
Well, you guys are making some p good points. I’ll probably end up sharing it, but’ll give it a clean up, try to fix some bugs and improve my comments before posting it publicly. For now whoever really wants it (including you) can just ask and I’ll dm it, understanding it will be a hard read and still has bugs.
Thanks fam. Can’t wait to use this for dramatic and comedic effect during pair programming 🤣
Go nuts! haha. All yours.
My suggestion is do it. Its a cool project, and clearly there is interest from others who could contribute to the project by suggestions, bug fixing, or general collaboration, helping you learn. Just add some kind of disclaimer in the project that its not ready yet, and that youre still learning and it should be fine.
you make good points
i’m just gonna pastebin it for now but yeah, thanks for the encouragement.
Cut yourself some slack. These days, most people would have just pasted LLM outputs
lazy
The only way to do it is to do it - me, 2026
Nah, but seriously, that insecurity is a disease that will actually make you produce embarrassing code. As soon as you feel confidence feedback take off, you will paint the functions brilliant once you de-neuter your inner codebeast. It wants to fuck. Let it.
I fucked that sentence up, but you understand what I mean! ∆<3
I did and I appreciate it. here’s the code if you’re interested.
Thank you for your inspiration <3
Haha there is no shame in shell code, it’s already monstrous to start!
I’ve written things in shell that would look sooo nice and concise in any other language, but it became a Cthulu-ass demigorgon so quick in shell! Have no fear, fear is the mind killer, the little death!
psst… here ya go
When I opened the code I immediately scrolled to the bottom to see how many lines, and hell yeah. I read through it and I’m horrified, but I’m even more horrified it works. This is truly an chievement
Here it is running over SSH https://files.catbox.moe/qkwd4q.mp4 what more could I ask for, thank you for making this insane thing and sharing it!
holy shit, I’m so flattered! Thank you for your kind support and encouragement!
It’s crazy that it looks okaish right? quaternions, dude. I have implemented them in 3 projects and still have no fucking idea how they work.
Also, you can run it in --quality low if you’re struggling with framerate. :)
It’s insane how many features this has for being insane in of itself!
Edit: that was running on anemic “1 core” (1 very shared core) VPS, bumping it up to 4, hooboy do those dice fly
nice! I’m still working on and have kept adding features. the encouragement was really motivating, so now I’m finishing multi-dice rolls that later add the result of all rolls.
If you want an updated version later on, would be glad to share w you. :)
Sign me up!
'ere ya go. hope you like.
I’m curious why it seems the time slows down at the end compared to reality? Because more computation is needed to check if it’s a stable state?
the final resolution stage was a huge headache and as you can see, one I didn’t fully solve. Basically when the dice finally settle, particularly those with more sides, lots and lots of micro collisions happen in close sequence, each one having to apply friction and bounce back. As velocities come close to be rounded to 0, the bounce back effect and force of gravity no longer provide movement, but the final angle of the bottom face may not be fully settled on the floor. So basically if i don’t ignore all these tiny collisions I get the frame rate drop you see and if I do, I can arrive at not fully settled states which can become ambiguous result-wise in, say, the 20-sided die.
Can you predict the resolution when it is close enough to settled? Worst case maybe have an algorithm that estimates the probability of each face ending up on top, and if one face is overwhelmingly more probably, choose it. Otherwise let it settle using your physics engine
I can easily check for when motion stops, but checking for when any particular face is both parallel to the floor and at the same level can be computationally expensive, particularly in the dice with more sides. What you’re suggesting is likely a good idea, but I wouldn’t know how to get probabilities without doing what I just mentioned. I’m sure there’s an optimization i can do with this that I can’t think of rn.
maybe just “if velocity < 0.01, find which side is closest to the floor, and if its within 1mm of the floor, take the opposite side (the one facing up) as the answer”
The only edge case I can think of is if it gets close to balancing on an edge, and then finally tips over to one side or the other. But in that case I don’t think the face closest to the floor would be within 1mm of the floor, so it should still work.
that’s how it’s implemented, mostly, but sometimes dice “stop” while they’re still tilted and standing on a corner (and then roll back down, possibly going back more than 1 face) so there’s also that.
Ok well there’s probably a dozen different ways to tackle this issue but I’ll let you explore them since that’s part of the fun (and I’m lazy lol)
Cross products! If you take the cross product of two edges of a face, you get a perpendicular vector for that face. It shouldn’t be too bad to do 20 of those per frame to find if a face is level with the ground (cross product points straight up and/or down depending on how you’re doing them)… now I don’t know about the velocity/acceleration numbers (including rotation)…
Since you’re rolling on a plane, can’t you simplify the collisions to only check the corners? I think that should be all that’s needed. There shouldn’t be a time where the edges or faces are below the lowest corner on a plane, so they can be skipped I believe.
i need to check the corner collisions but when the die start settling and an entire edge comes close to the floor, gravity keeps pulling back on several of them making them bounce back just a tiny bit, not reaching the velocity that gets rounded to zero.
I fixed that on the current version doe!
why not save the state of the di(ce) in the settling phase and choose (or allow user assignable) value for how many consecutive identicle states before freezing the di(ce) and reporting the result?
my only concern would be a “spinning” di but short of colliding with other dice, that seems technically solved
that’s one of the aspects of the current implementation
Do you think God stays in heaven because he too lives in fear of what he’s created?
God comes over
creates some bullshit
stays in heaven
refuses to elaborate
I just woke up and this is the first thing I see. Did I really woke up?
Hey baby, wake up from your asleep.
Oh my God that’s amazing.
A banger to wake up to, as alarm clock song. :D
@Pudutr0n@lemmy.world - You are certifiably insane. There are a million more effective ways to achieve this, with less resources… I LOVE IT.
This is exactly the kind of flattery that truly touches my heart. <3
(hopefully) Constructive critique:
- it looks like you’re handling the dice in physics as a ball? Takes forever to settle at the end.
- the throw has a visual glitch.
Thanks! Yeah, there’s definitely A LOT of room for improvement. collisions are handled per vertex, but torque is applied to angular impulse to the dice as a whole (like a ball I guess). The settling is a huge issue, yes. the visual glitches I’ve been trying to get rid of but man… fix one and then another one pops up in a different case. Thanks for your critique. :)
I first read it as “there’s a lot of DOOM for improvement” but as the rest of your comment confirmed this, I’ll keep it that way in my head!
This is beautiful, and insane! But truly beautiful hahaha
Thank you! haha
Holy crap how cool
I think I might love you
ily2 bb <3
AI killed like 10 whales for this.
I didn’t know I needed this.
and now you have it
Looks like a great
slreplacement! Gonna need this on every machine.if you want it on yours, here it is. Thanks for your support. :)
this is fucking CONTENT, baby!!! Great work, honestly great code. This is an achievement.
Any chance you can share the code again please?
sure. sent via dm.








