Post

After a bit of finagling, you can now roll Dice in kosmod! I spend a bit of time baking some nice normal maps, and then scribbled on the dice with a pencil. A die is some 3d model with attached metadata, so players can upload all kinds of crazy dice when its all sorted. #gamedev #ttrpg

1 repost7 likes

There's still a quite a bit of work to be done to get them minimally acceptable (getting them to roll properly, fixing the "face detection" code which is a little buggy, making the texture nice to look at) but I'm quite happy with this first pass!

Dice a physically simulated (with Jolt!) on the the client that rolled them, which means less work for the server (yay) but a little more syncing code. How truly random is it? I have no idea! I made some of the die shapes by hand. Until fixed, I just consider it "unfairly weighted in a random way".