https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation
3D fluid simulation on the in Unity
https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation
fluid-simulation unity
Last synced: about 2 months ago
JSON representation
3D fluid simulation on the in Unity
- Host: GitHub
- URL: https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation
- Owner: Scrawk
- License: mit
- Created: 2017-06-21T00:49:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-30T13:49:02.000Z (over 3 years ago)
- Last Synced: 2024-11-14T21:37:58.258Z (7 months ago)
- Topics: fluid-simulation, unity
- Language: C#
- Size: 75.2 KB
- Stars: 281
- Watchers: 13
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - GPU-GEMS-3D-Fluid-Simulation
README
# GPU-GEMS-3D-Fluid-Simulation
This project is based on the GPU Gems 3D fluid simulation article. This article presents a method for calculating and rendering 3D fluid simulations. The method used for rendering was designed to best integrate the fluid simulation into the scene and have it interact with other scene components. I have gone with a simpler renderer however by using a ray tracer that is attached to a cube and there is no interaction with other scene components.
This project was originally written when Unity 4 was current and at that time render textures were not available in the free version. I decided to use compute buffers instead to make it more accessible. The only down side to using compute buffers instead of render textures is that there is no support for filtering. I added the code to the shaders to manually do the bi-linear filtering but its probably not as optimal as using a render texture.

[Position-Based-Dynamics](https://github.com/Scrawk/Position-Based-Dynamics)\
[PBD-Fluid-in-Unity](https://github.com/Scrawk/PBD-Fluid-in-Unity)\
[GPU-GEMS-NBody-Simulation](https://github.com/Scrawk/GPU-GEMS-NBody-Simulation)\
[GPU-GEMS-2D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-2D-Fluid-Simulation)\
[GPU-GEMS-3D-Fluid-Simulation](https://github.com/Scrawk/GPU-GEMS-3D-Fluid-Simulation)\
[CyclonePhysicsEngine](https://github.com/Scrawk/CyclonePhysicsEngine)\
[2D-Deformable-body-in-Unity](https://github.com/Scrawk/2D-Deformable-body-in-Unity)