Giter VIP home page Giter VIP logo

fluid-simulation-3d's Introduction

SPH Fluid Simulation 3D

This is a repository for my 3D version of a SPH Langarian fluid simulation using my own rendering engine SpectraWise-Engine. The implementation is using OpenGL 4.6.
My 2D implementation version can be found here: Fluid-Simulation-2D

Note

The simulation is utilizing Multithreading and GPU Billboard rendering.

Table of Content

Requirements

  • Cmake 3.2+
  • Compiler that runs C++20

Instructions

Download the repo to you computer. Generate the build file with CMake and just go crazy! All of the Fluid simulation files is in the Engine->Physics folder.

Note

A more descriptive manual is found here

TODO List

  • Cleanup code!
  • Make Compute shader work
  • Make 3D bound better looking
  • Apply stickyness to the particles to mimic water better.
  • Implement a simple Rigidbody to particle collision system
  • Experiment with Spheretrace rendering for water.
  • Implement simple lights
  • Make water reflective.
  • Make bound rotate.
  • Possibillity to export and import to 3D softwares like Houdini.
  • Add liquid presets
  • Implement a usable UI
  • Add better movement
  • Implement input manager
  • Implement quick reset of shaders
  • Add possibilities to change from 2D to 3D
  • Add possibilities to change from CPU to GPU Calculations
  • Add possibility to import and export Universal Scene Description(USD) files.
  • Dynamic color gradient in water.

Bug Reporting

Would you encounter any bugs within the simulation, please create an issue and report it!

Known Issues

  • Viscosity infinity energy loop. (Making infinity swirls in corners)
  • Compute shader implementation not working.
  • Pressure going crazy when the fps is below 40.

Resarch Papers and referenses

Examples

Loading Examples ...

External Librarys

Spectrawise uses:

  • GLFW
  • GLEW
  • Dear ImGUI
  • NanoVG
  • Soloud
  • GLM

External help

CMake

CMAKE Tutorials

OpenGL

LearnOpenGL

fluid-simulation-3d's People

Contributors

allkams avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.