6 ms·
Teal 3d dice roller
- DanielStraight 12y agoMay not be immediately obvious, after rolling, click and drag and it will roll again using your drag to generate the vector along which the dice are rolled.
- jaredmcateer 12y agoHow do you roll the first time? All I get is a mostly blank page with links to the help and multiplayer. Edit: nvm figured it out this relies on WebGL.
- DanielStraight 12y agoI suspect you do not have WebGL support. When working correctly, the site has dice to select and a clear "Throw" button to roll them.
- jaredmcateer 12y agoYou suspect correctly, I had disabled hardware acceleration troubleshooting something and forgot to re-enable it.
- timje1 12y agoThis seems to be very laggy (on chrome), getting a very low framerate considering the simplicity of the polygons on my fairly beefy machine. I might have been spoilt after seeing the unreal 3 demo on asm.js ...
- Iamnotesr 12y agoCrashes when trying to load page in firefox.
- theandrewbailey 12y agoI'm on the latest Firefox, everything is fine. It's smooth enough, even on integrated graphics.
- silverlight 12y agoNice job! I did some similar work for our 3D Dice on Roll20. Looking at your code you did a nicer job than I did :-)
- teal 12y agoYou will lought, but your work was an inspiration to me =)
- silverlight 12y agoHaha, thanks!
- theandrewbailey 12y agoblog post/link to source: http://www.teall.info/2014/01/online-3d-dice-roller.html http://www.teall.info/2014/01/online-3d-dice-roller.html
- 0x0 12y agoError 503 Over Quota
- ooniverse 12y agoThis is really cool! I rolled a few times, then decided to have a look at the code but unfortunately, between one request and the next, it's now responding with 503 Over Quota, so I guess it's the old HN hug of death... Anyway - quick question: I noticed you mentioned using random.org, which is great and everything, but would anyone be able to comment on whether or not the physics simulation introduces biases that might reduce randomness? Like, what if I always swiped from/to particular points on the screen? Does the size of the window matter? How about different framerates? I'm assuming that the random.org data is used to set up (some of the) initial conditions since I can't check the code right now. Thanks!
- sbierwagen 12y agoI'm guessing that he uses random.org to randomize the initial values of the dice, how they're "being held". All the physics simulation does is roll them across the table. So it should be impossible to precisely throw a value, since you can't control how you're holding the dice in your hand.
- teal 12y agoYou are right, exactly this way.
- Udo 12y agoI just wanted to say: excellent job and welcome to HN, teal. :)
- teal 12y agoThank you =)
- JimmaDaRustla 12y ago"503 - Over Quota" - Roll double sixes for bonus data!
- teal 12y agoIt seems that GAE, on which my site is running, is not configured well to obtain so many requests. I will see how to manage this.
- JimmaDaRustla 12y agoThanks! Look forward to it.
- yawz 12y agoVery very nice! Thank you.
- twic 12y agoThis is really nice. Do you think you could add one really silly little feature? An option to score by counting the number of dice which roll over some threshold, rather than summing the rolls. Defaulting to 5+, but adjustable. Perhaps by adding a ">5" to the end of the "NdM" string. This would make this actually really useful for playing Arkham Horror. If you could add super eldritch skins to the dice models, that would make it really, really useful for playing Arkham Horror.
- teekert 12y agoAgain, I feel like I need chrome to enjoy the latest and greatest of the web... I'm seeing nothing in Firefox 31 on win 7.
- kolme 12y agoFF31 on Windows 8.1. Runs really smooth. I can't currently use Chrome on my computer because they don't support high DPIs :(
- theandrewbailey 12y agoI'm using Fx31, works fine. Perhaps your GPU driver is blacklisted? https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drive...