▲ 510 ▼ I wrote a dice rolling script with 3d rendering, collisions and friction in bash because why not [edit: code available now] (files.catbox.moe) submitted 1 week ago* (last edited 6 days ago) by Pudutr0n@lemmy.world to c/programming@programming.dev 99 comments fedilink hide all child comments 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)
[–] Pudutr0n@lemmy.world [S] 7 points 6 days ago (1 child) psst... here ya go permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 4 points 6 days ago (1 child) 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! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 5 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 3 points 6 days ago* (last edited 6 days ago) (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] glizzyguzzler@piefed.blahaj.zone 4 points 6 days ago (1 child) 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! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 5 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 3 points 6 days ago* (last edited 6 days ago) (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] Pudutr0n@lemmy.world [S] 5 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 3 points 6 days ago* (last edited 6 days ago) (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] glizzyguzzler@piefed.blahaj.zone 3 points 6 days ago* (last edited 6 days ago) (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 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. :) permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] glizzyguzzler@piefed.blahaj.zone 2 points 6 days ago (1 child) Sign me up! permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] Pudutr0n@lemmy.world [S] 2 points 6 days ago (1 child) 'ere ya go. hope you like. permalink fedilink source parent hideshow 2 child comments replies: [–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] glizzyguzzler@piefed.blahaj.zone 1 point 5 days ago (1 child) https://files.catbox.moe/365hxz.mp4 now THIS is dice rolling permalink fedilink source parent hideshow 2 child comments replies: [–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent
[–] Pudutr0n@lemmy.world [S] 2 points 5 days ago Wooo! Glad you're enjoying. Also, nice rolls. :) permalink fedilink source parent