CodingTrain / Suggestion-Box

A repo to track ideas for topics
572 stars 86 forks source link

Coding challenge: DEM (Discrete element modelling) for particles collision using the soft model #734

Open dgcdevelopment opened 6 years ago

dgcdevelopment commented 6 years ago

I have seen your videos of particles simulations, but when you want to simulate collisions between particles after a number of particles the model explodes and becomes very slow.

Could you try something on DEM (Discrete element modelling) using the soft model? It seems that it can manage so many particle collisions somehow? and still work at a fast fps.

Here there is a video of a guy that achieves it using sfml https://www.youtube.com/watch?v=v3WY5E4-mBc and a paper http://www.mss.cbi.fau.de/content/uploads/Event-driven_AIP_Conference_Proceedings_2013.pdf it would be great to see how to implement something like that in P5.js :) :)

Thank you very much for your effort and videos, they are truly amazing!! Kind regards!!

Lugsole commented 6 years ago

I don't know how fast JavaScript can go, but C++ compiles and runs faster than JavaScript you could use the GPU's power to potentially run that fast. First link is C++, and second is JavaScript. In this example C++ is 10 times faster than JavaScript.

C++ JavaScript