All Projects → BlainMaguire → 3dfluid

BlainMaguire / 3dfluid

Licence: mit
A 3D version of Jos Stam's famous fluid solver written in C using GLUT.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to 3dfluid

Filament
Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
Stars: ✭ 13,215 (+22684.48%)
Mutual labels:  3d-graphics, real-time
Yave
Yet Another Vulkan Engine
Stars: ✭ 211 (+263.79%)
Mutual labels:  3d-graphics, real-time
Plotoptix
Data visualisation in Python based on OptiX 7.2 ray tracing framework.
Stars: ✭ 252 (+334.48%)
Mutual labels:  3d-graphics, real-time
Prettyos
A Preemptive Hard Real Time kernel for embedded devices.
Stars: ✭ 36 (-37.93%)
Mutual labels:  real-time
Pendulum
ROS, ROS2, real-time, control, pendulum
Stars: ✭ 37 (-36.21%)
Mutual labels:  real-time
Facekit
Implementations of PCN (an accurate real-time rotation-invariant face detector) and other face-related algorithms
Stars: ✭ 1,028 (+1672.41%)
Mutual labels:  real-time
Ngx dynamic limit req module
The ngx_dynamic_limit_req_module module is used to dynamically lock IP and release it periodically.
Stars: ✭ 57 (-1.72%)
Mutual labels:  real-time
Awesome Creative Coding
Creative Coding: Generative Art, Data visualization, Interaction Design, Resources.
Stars: ✭ 8,696 (+14893.1%)
Mutual labels:  3d-graphics
Peac
Fast Plane Extraction Using Agglomerative Hierarchical Clustering (AHC)
Stars: ✭ 51 (-12.07%)
Mutual labels:  real-time
Nodejs Socketio Chat App
MEAN Stack & Socket.IO Real-time Chat App | A MEAN stack based Real Time chat application
Stars: ✭ 45 (-22.41%)
Mutual labels:  real-time
Realtimefaceapi
This is a demo project showing how to use Face API in Cognitive Services with OpenCV
Stars: ✭ 44 (-24.14%)
Mutual labels:  real-time
Movie
Personalized real-time movie recommendation system
Stars: ✭ 37 (-36.21%)
Mutual labels:  real-time
Ab3dmot
(IROS 2020, ECCVW 2020) Official Python Implementation for "3D Multi-Object Tracking: A Baseline and New Evaluation Metrics"
Stars: ✭ 1,032 (+1679.31%)
Mutual labels:  real-time
Cve Api
Unofficial api for cve.mitre.org
Stars: ✭ 36 (-37.93%)
Mutual labels:  real-time
Csgnet
CSGNet: Neural Shape parser for Constructive Solid Geometry
Stars: ✭ 55 (-5.17%)
Mutual labels:  3d-graphics
Rtb
Benchmarking tool to stress real-time protocols
Stars: ✭ 35 (-39.66%)
Mutual labels:  real-time
Fspy
A cross platform app for quick and easy still image camera matching
Stars: ✭ 1,056 (+1720.69%)
Mutual labels:  3d-graphics
Realtime Detectron
Real-time Detectron using webcam.
Stars: ✭ 42 (-27.59%)
Mutual labels:  real-time
Kuzzle
Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -
Stars: ✭ 991 (+1608.62%)
Mutual labels:  real-time
Yolo tensorflow
🚖 Object Detection (YOLOv1) implentation in tensorflow, with training, testing and video features.
Stars: ✭ 45 (-22.41%)
Mutual labels:  real-time

3D Fluid

A 3D Real Time Fluid Solver based on Jos Stam's 2D fluid solver (stable Navier-Stokes solver).

Video Demonstration

Try it in your browser:

http://blainmaguire.com/projects/3dfluid/fluid.html

Reference: Jos Stam, "Real-Time Fluid Dynamics for Games". Proceedings of the Game Developer Conference, March 2003.

http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/GDC03.pdf

Controls:

  • 'X' key - add source at center
  • 'W' key - apply force x-axis
  • 'D' key - apply force y-axis
  • 'S' key - apply force z-axis
  • 'C' key - clear simulation
  • 'V' key - show/hide velocities
  • 'A' Key - show/hide the XYZ axis
  • 'H' key - show/hide this help message
  • Left click - pan from location
  • Right click - rotate cube
  • ESC - quit

Potential Issues

Nothing's Happening

Be sure to press X a few times to add fluid. Then tap W, S, or D repeatedly. It could also be it's running way too slow on your computer.

It runs really slow

It takes exponentially more time to render larger the grid size gets. Try lowering the value of SIZE at the beginning of main.c. Increasing SIZE does make it look better but at the cost of performance.

Compiling

The code is all in c using GLUT, so it should be quite portable. I've included a simple makefile which I used.

The only thing I think might be problematic is I'm using GLUT to render bitmap characters for the help message via glutBitmapCharacter. This shouldn't really be a problem for newer implementations (openglut/freeglut).

If you are having other issues let me know.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].