E
E
Evgeny2019-05-27 06:54:26
WebGL
Evgeny, 2019-05-27 06:54:26

WebGL without additional lib. How to create dice animation?

Hello!
My task is to make such an imitation of falling cubes only with webgl :
a.teall.info/dice
Is it possible?
It is necessary to simulate the sliding of cubes on the surface, collisions, shadows.
Is it possible to do this with the help of webgl alone, or do I need to connect tree.js and the library responsible for physics?
It is also necessary that the cubes fall out with the desired face up, that is, before the throw, you must somehow set the desired position of the texture on the cube.
If possible, can you tell me step by step what needs to be done and what technologies to use? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gribanov, 2019-05-28
@gribanov2la

Good afternoon!
Perhaps, if you can write in GLSL +, you have the mathematical base to implement physics in 3d space. 90% of the time will be spent on writing the engine, and 10% on the scene itself. In general, the task is extremely nontrivial.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question