Voxel Water Physics - Waterfalls, Rivers and Tunnels

Follow me on Twitter for more updates: It took a bit longer than expected, but the fluid simulation design from a few months ago has been implemented in our voxel project. It uses the same cell/particle hybrid method and is therefore fully volumetric with no height range limit beyond the 0-4095 y world boundary! It will flow through buildings, fall down into caves, flow over and under cliffs, fill up containers and lakebeds, and navigate through tunnels. The design has been adapted to run sparsely and inline with the world generation. The entire pipeline has also had its design improved to be 99% multithreaded, with a 1% critical section that has the smallest execution time. In this video, 4 CPU threads were used and the simulation time never exceeded 8ms. Saving to/loading from disk, generating it naturally, spawning and controlling it, and not pouring into unloaded areas are implemented. Currently it only interacts with terrain and buildings as seen in the
Back to Top