Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leonardo-montes/Unity-ECS-Job-System-SPH
Implementation of the SPH Algorithm (fluid simulation) in Unity, comparing singlethread and ECS/Job System performances.
https://github.com/leonardo-montes/Unity-ECS-Job-System-SPH
Last synced: 3 months ago
JSON representation
Implementation of the SPH Algorithm (fluid simulation) in Unity, comparing singlethread and ECS/Job System performances.
- Host: GitHub
- URL: https://github.com/leonardo-montes/Unity-ECS-Job-System-SPH
- Owner: leonardo-montes
- License: mit
- Created: 2018-12-10T17:15:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T13:29:55.000Z (over 5 years ago)
- Last Synced: 2024-08-02T05:11:59.231Z (6 months ago)
- Language: ShaderLab
- Size: 6.11 MB
- Stars: 247
- Watchers: 15
- Forks: 43
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity (ECS/Job System) SPH - Implementation of the SPH Algorithm (fluid simulation) (ECS)
README
# Unity (ECS/Job System) SPH
Implementation of the SPH Algorithm (fluid simulation) in Unity, comparing singlethread and ECS/Job System performances.Updated to Unity 2019.2!
More info in this article: https://medium.com/@leomontes_60748/how-to-implement-a-fluid-simulation-on-the-cpu-with-unity-ecs-job-system-bf90a0f2724f
### How to:
You can select the scene from 'Assets/Scenes'. Once in the scene, you can hit play to see the simulation. You can change some settings in the script from the MANAGER GameObject.### Settings:
**Single-thread:**
- Particle count
- Particle parameters***ECS, Job system:**
- Particle count
You can find the particle parameters* inside 'Assets/Job System/Prefabs' in the SPHSphereECS GameObject.* Particle parameters:
- radius
- smoothing radius
- rest density
- gravity multiplier
- mass
- viscosity
- drag