mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
100.71k stars 35.22k forks source link

Rolling Dice #973

Closed markusv closed 12 years ago

markusv commented 12 years ago

Hi,

I am trying to make a boardgame using web technologies like HTML, CSS and javascript. While I am familiar with these technologies I have no prior experience with 3d programming. As a part of mye board game I was thinking of making a 3d rolling dice animation of upto 6 dices. I am wondering if three.js can help me doing this? Maybe a demo of this already exists?

Regards, Markus

mrdoob commented 12 years ago

Not that I know of. Do you have any reference?

html5genart commented 12 years ago

Check out: http://learningthreejs.com/blog/2011/12/10/constructive-solid-geometry-with-csg-js/

markusv commented 12 years ago

That looks nice html5genart. Is there a physics engine included in threeJS? Guessing I wil need one while rolling the dices, they might colide with each other and they should bounce of the screen edges..

mrdoob commented 12 years ago

Nope. But you can wire it up with JigLibJS or Bullet. http://brokstuk.com/jiglibjs2/