FluiDemo
C# implementation of a real-time Smoothed Particle Hydrodynamics (SPH) physics fluid simulation engine.
Install / Use
/learn @reneschulte/FluiDemoREADME
FluiDemo
This was originally developed by Rene Schulte in 2008 but still works with Visual Studio 2015!
Flui°D°emo is an interactive 2D physically based fluid simulation engine using a Smoothed Particle Hydrodynamics (SPH) approach as described in the paper "Particle-Based Fluid Simulation for Interactive Applications" by M. Mueller et al. This approach utilizes the Navier-Stokes equation and SPH to simulate the behaviour of a fluid. The resulting differential equation is solved with a basic Verlet integration. This all is implemented in a flexible and small 2D particle system engine, including emitters, consumers and a renderer for Meta-Balls (Blobs). The Meta-Balls are drawn with a Render-To-Texture technique using OpenGLs framebuffer extension (FBO), a procedural generated gaussian distribution texture and alpha-testing. The collision handling is done with the Separating-Axis-Theorem (SAT) and Oriented Bounding Boxes (OBBs).
The whole project is written in C# 3.0 against the .Net Runtime 2.0 and released under the GPLv3 license. The visualization is done with OpenGL (OpenTK library). The download includes the binaries, the source code (including Visual C# Express 2008 solution) and the OpenTK library. See the "Readme.txt" for further instructions and requirements.
By now my SPH code was ported to several other platforms and an awesome iPhone game called Splash !!! uses it. The platforms and languages include Unity, C++, D, JS, ...
There's also a video at Vimeo: http://vimeo.com/4391370
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
