CHATPRIVACYDONATELOGINREGISTER
DMT-Nexus
FAQWIKIHEALTH & SAFETYARTATTITUDEACTIVE TOPICS
Something fun to play with Options
 
MelCat
#1 Posted : 10/24/2014 6:56:04 AM

DMT-Nexus member


Posts: 1925
Joined: 28-Apr-2010
Last visit: 07-Jul-2024
HTML5 Fluid Simulation in WebGL

Hint - Click and drag to get it started
Tip - 1.) You probably need a halfway decent computer
Tip - 2.) You'll definitely need a current browser
Convert a melodic element into a rhythmic element...
 

Explore our global analysis service for precise testing of your extracts and other substances.
 
arcologist
#2 Posted : 10/24/2014 9:01:19 AM

DMT-Nexus member


Posts: 503
Joined: 11-May-2013
Last visit: 29-Nov-2020
Here's some info on what is going on behind the scenes, since this is somewhat related to my research area (computer physical simulations).

It looks like they are doing a fluid simulation on a low-resolution grid (visualized in purple overtop of the cyan particles). They then use this low resolution fluid grid (as a texture on the GPU) to sample the flow direction and strength at each particle's position, which is used to modify its velocity.

A full simulation of the fluid as individual particles would not be interactive (taking seconds or minutes to compute one frame update). In addition, this simulation cannot handle incompressible fluids, but it sure looks cool!
 
MelCat
#3 Posted : 10/27/2014 9:30:17 PM

DMT-Nexus member


Posts: 1925
Joined: 28-Apr-2010
Last visit: 07-Jul-2024
Thanks for the background arcologist. Very happy

Here is another fun site to play with.

Explore the Universe
Convert a melodic element into a rhythmic element...
 
RAM
#4 Posted : 10/28/2014 3:21:06 AM

Hail the keys!


Posts: 553
Joined: 30-Aug-2014
Last visit: 07-Nov-2022
Ah the second link is awesome MelCat! It's nice to be reminded how small we really are. And some have the audacity to say that we are the kings, the owners, the only life in the universe...

The sheer magnitude of it all is stunning
"Think for yourself and question authority." - Leary

"To step out of ideology - it hurts. It's a painful experience. You must force yourself to do it." - Ε½iΕΎek
 
 
Users browsing this forum
Guest

DMT-Nexus theme created by The Traveler
This page was generated in 0.020 seconds.