News for hackers. Stuff that matters.
Re:Teal 3d dice roller by DanielStraight on Tuesday August 05, 2014 @11:33AM (#8137440)
May 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.
Re:Teal 3d dice roller by jaredmcateer on Tuesday August 05, 2014 @11:46AM (#8137524)
How 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.

Re:Teal 3d dice roller by DanielStraight on Tuesday August 05, 2014 @11:48AM (#8137542)
I suspect you do not have WebGL support. When working correctly, the site has dice to select and a clear "Throw" button to roll them.
Re:Teal 3d dice roller by jaredmcateer on Tuesday August 05, 2014 @11:54AM (#8137576)
You suspect correctly, I had disabled hardware acceleration troubleshooting something and forgot to re-enable it.
Re:Teal 3d dice roller by twic on Tuesday August 05, 2014 @02:23PM (#8138461)
This 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.

Re:Teal 3d dice roller by theandrewbailey on Tuesday August 05, 2014 @12:17PM (#8137688)
Re:Teal 3d dice roller by JimmaDaRustla on Tuesday August 05, 2014 @12:54PM (#8137901)
"503 - Over Quota" - Roll double sixes for bonus data!
Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @12:57PM (#8137934)
It 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.
Re:Teal 3d dice roller by JimmaDaRustla on Tuesday August 05, 2014 @01:07PM (#8138010)
Thanks! Look forward to it.
Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @01:53PM (#8138279)
OK, now it works. Just didn't expect such traffic at once =)
Re:Teal 3d dice roller by iconjack on Tuesday August 05, 2014 @02:26PM (#8138489)
What did you do to fix it?
Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @03:27PM (#8138812)
I have moved heavyweight libraries into separate storage. Quotas were exceeded by outgoing traffic, but statistics are counting every hour and now it works.
Re:Teal 3d dice roller by ooniverse on Tuesday August 05, 2014 @12:26PM (#8137746)
This 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!

Re:Teal 3d dice roller by sbierwagen on Tuesday August 05, 2014 @12:32PM (#8137764)
I'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.

Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @12:46PM (#8137852)
You are right, exactly this way.
Re:Teal 3d dice roller by Pxtl on Tuesday August 05, 2014 @01:04PM (#8137986)
Ah, so both the physics and the Random.org affect the outcome of the dice. So you can't actually control the outcome of the dice by swapping out Random.org with a non-random source because the physics are also a factor.
Re:Teal 3d dice roller by echeese on Tuesday August 05, 2014 @02:05PM (#8138369)
You could with a replay attack
Re:Teal 3d dice roller by Udo on Tuesday August 05, 2014 @12:48PM (#8137867)
I just wanted to say: excellent job and welcome to HN, teal. :)
Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @12:52PM (#8137887)
Thank you =)
Re:Teal 3d dice roller by silverlight on Tuesday August 05, 2014 @12:05PM (#8137625)
Nice job! I did some similar work for our 3D Dice on Roll20. Looking at your code you did a nicer job than I did :-)
Re:Teal 3d dice roller by teal on Tuesday August 05, 2014 @12:24PM (#8137730)
You will lought, but your work was an inspiration to me =)
Re:Teal 3d dice roller by silverlight on Tuesday August 05, 2014 @12:33PM (#8137772)
Haha, thanks!
Re:Teal 3d dice roller by timje1 on Tuesday August 05, 2014 @12:00PM (#8137598)
This 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 ...
Re:Teal 3d dice roller by teekert on Tuesday August 05, 2014 @04:03PM (#8139020)
Again, 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.
Re:Teal 3d dice roller by kolme on Tuesday August 05, 2014 @04:24PM (#8139163)
FF31 on Windows 8.1. Runs really smooth.

I can't currently use Chrome on my computer because they don't support high DPIs :(

Re:Teal 3d dice roller by theandrewbailey on Tuesday August 05, 2014 @04:37PM (#8139250)
I'm using Fx31, works fine. Perhaps your GPU driver is blacklisted?

https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drive...

Re:Teal 3d dice roller by 0x0 on Tuesday August 05, 2014 @12:25PM (#8137733)
Error 503 Over Quota
Re:Teal 3d dice roller by Iamnotesr on Tuesday August 05, 2014 @12:02PM (#8137609)
Crashes when trying to load page in firefox.
Re:Teal 3d dice roller by theandrewbailey on Tuesday August 05, 2014 @02:31PM (#8138507)
I'm on the latest Firefox, everything is fine. It's smooth enough, even on integrated graphics.
Re:Teal 3d dice roller by yawz on Tuesday August 05, 2014 @02:02PM (#8138350)
Very very nice! Thank you.