this post was submitted on 01 Sep 2026
512 points (98.7% liked)

Programming

28351 readers
448 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

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)

you are viewing a single comment's thread
view the rest of the comments
[–] mike_wooskey@lemmy.thewooskeys.com 8 points 3 days ago (2 children)

I'm viewing this thread in Lemmy and am unable to find any mention of a link to the source code or a demo, and I can't see the attached media (genetic image icon - is it an animated gif or a video?).

Based on all the comments, I appear to be in the [significant] minority. Would you mind posting a link to your source or demo or image/video?

[–] Pudutr0n@lemmy.world 19 points 3 days ago (4 children)

I haven't shared the source code yet because criticism is terrifying and I'm a horrible coder, but with the encouragement of the the community I might give it a shot. I don't even have a codeberg account yet though.

The post contains these two video links: https://files.catbox.moe/8rz9m7.mp4 https://files.catbox.moe/5d3n2k.mp4

If you still can't see them, maybe you can suggest a different hosting service, one that works for you? Or if you really really want the source code I suppose I could send it by DM on the meantime.

[–] oce@jlai.lu 12 points 3 days ago

There are millions of professional coders who couldn't do what you did there.

[–] vrek@programming.dev 6 points 3 days ago (1 children)

Just letting you know the original post video didn't load and gave a 500 error in jerboa but those two links work. Looks impressive but I'm confused on how to read the die. Yes there is a giant banner telling me the value it chose but I'm struggling to figure out how the visuals map to those values, can you give some details on how to read the die?

[–] Pudutr0n@lemmy.world 6 points 3 days ago* (last edited 3 days ago) (1 children)

Yes, the values are rendered on top of each face with "pixel" maps (ascii art) that have the character of the digit they represent as each pixel. These are later manipulated by the perspective projection.

For example on this d6 you can see the top face has 1s written down (in the shape of a sideways one) and the front one has 4s written down in the shape of a skewed and sideways 4.

In this specific color scheme there's not a lot of contrast between the values, but even in the palettes with better contrast, good readability is something I'm kind of giving up on solving well.

edit: might be clearer here:

[–] vrek@programming.dev 2 points 2 days ago (1 children)

In the second picture (with the d20) I'm guessing the face with "999" is actually a 9 but what is the value of the face with "999#111"...there is no value of 91 on a d20 :)

[–] Pudutr0n@lemmy.world 1 points 2 days ago (1 children)

actually I was working on the code and realized i got the textures mirrored due to negative-positive mix up. so it was reflecting the mirror image of 19

[–] vrek@programming.dev 2 points 2 days ago (1 children)

Ah that makes sense. Overall looks impressive, was just confused on my end.

[–] Pudutr0n@lemmy.world 1 points 2 days ago
[–] mike_wooskey@lemmy.thewooskeys.com 3 points 2 days ago (2 children)

That's pretty darn cool! Thanks for sharing. Ik forward to cloning your repo someday.

[–] Pudutr0n@lemmy.world 1 points 2 days ago

I'll do a follow up post when I upload

[–] SystemDisc@feddit.org 2 points 2 days ago (1 children)
[–] Pudutr0n@lemmy.world 1 points 2 days ago (1 children)

what video hosting service works for you?

[–] SystemDisc@feddit.org 2 points 2 days ago (1 children)

I have no idea. I self-host a lot

[–] Pudutr0n@lemmy.world 1 points 2 days ago (1 children)

well i don't know how to deliver the media to you then D: sry. you can snag the code from pastebin though. I linked on my last edit.

[–] SystemDisc@feddit.org 2 points 2 days ago

No worries. That service is just refusing the connection or 500ing for people.

[–] Pudutr0n@lemmy.world 4 points 2 days ago

here's the source code. :)