Giter VIP home page Giter VIP logo

sphater-godot-demo's Introduction

SPHater-Godot-Demo

Particle based water simulation demo in Godot 3.0. This my first working SPH simulation in any language. And for me that's saying a lot.

How to use SPHater

This fluid simulation uses the Smooth Particle Hydrodynamics technique to control how the particles interact with each other. A lot could be done with the code. The demo itself though is pretty simple. The particles are initialized in the classic dam break configuration. Showcasing how the fluid flows. You can also pick up the fluid particles and toss it around by holding the mouse. Particles around the mouse will get attracted to it.

The fluid can also have different visualizations. They can be accessed by pressing the corresponding numbers(no numpads).

  • 1- default water look.
  • 2- visualize pressure.
  • 3- visualize viscosity.

To finish this off, you can pause with P and reset with R.

sphater-godot-demo's People

Contributors

sisilicon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sphater-godot-demo's Issues

Very impressive!

That's awesome. An actual hydrodynamics simulation in Godot.
Unfortunately it slows down my i7-8550u a lot. Might run smooth if it was threaded.
Anyway. Keep it up. Might give rise to very interesting game mechanics.
What's next? FEM-solver?

best regards

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.