All Projects → utilForever → Cubbyflow

utilForever / Cubbyflow

Licence: mit
Voxel-based fluid simulation engine for computer games

Programming Languages

cpp
1120 projects
cplusplus
227 projects
cpp17
186 projects

Projects that are alternatives of or similar to Cubbyflow

CubbyFlow
Voxel-based fluid simulation engine for computer games
Stars: ✭ 215 (+42.38%)
Mutual labels:  computer-graphics, physics-engine
Fluid Engine Dev
Fluid simulation engine for computer graphics applications
Stars: ✭ 1,007 (+566.89%)
Mutual labels:  computer-graphics, physics-engine
Cubbyflow V1
Voxel-based fluid simulation engine for computer games
Stars: ✭ 90 (-40.4%)
Mutual labels:  computer-graphics, physics-engine
Cnncomplete
[CVPR'17] Shape Completion using 3D-Encoder-Predictor CNNs and Shape Synthesis
Stars: ✭ 117 (-22.52%)
Mutual labels:  computer-graphics
Tiny Renderer
A tiny sotfware 3D renderer in 100 lines of Python
Stars: ✭ 120 (-20.53%)
Mutual labels:  computer-graphics
Top 10 Computer Vision Papers 2020
A list of the top 10 computer vision papers in 2020 with video demos, articles, code and paper reference.
Stars: ✭ 132 (-12.58%)
Mutual labels:  computer-graphics
Lowpolify
Create low-poly art from any image 🌟🌟
Stars: ✭ 149 (-1.32%)
Mutual labels:  computer-graphics
Nphysics
2 and 3-dimensional rigid body physics engine for Rust.
Stars: ✭ 1,530 (+913.25%)
Mutual labels:  physics-engine
Simbody
High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.
Stars: ✭ 1,808 (+1097.35%)
Mutual labels:  physics-engine
Psraytracing
A (modern) C++ implementation of the first two books of the Peter Shirley Ray Tracing mini-books (https://raytracing.github.io). Features a clean project structure, perf. improvements (compared to the original code), multi-core rendering, and more.
Stars: ✭ 129 (-14.57%)
Mutual labels:  computer-graphics
Software Render
Simple Software Render
Stars: ✭ 128 (-15.23%)
Mutual labels:  computer-graphics
Crashnote
A Note for Computer Graphics
Stars: ✭ 122 (-19.21%)
Mutual labels:  computer-graphics
Elm Physics
3D physics engine in Elm
Stars: ✭ 132 (-12.58%)
Mutual labels:  physics-engine
Gpu Motunui
GPU-Motunui is a path tracer that renders Disney Animation's Moana Island scene.
Stars: ✭ 120 (-20.53%)
Mutual labels:  computer-graphics
Optcuts
OptCuts, a new parameterization algorithm, jointly optimizes arbitrary embeddings for seam quality and distortion. OptCuts requires no parameter tuning; automatically generating mappings that minimize seam-lengths while satisfying user-requested distortion bounds.
Stars: ✭ 145 (-3.97%)
Mutual labels:  computer-graphics
Edyn
Edyn is a real-time physics engine organized as an ECS.
Stars: ✭ 113 (-25.17%)
Mutual labels:  physics-engine
Jelloswift
Swift soft body physics engine
Stars: ✭ 134 (-11.26%)
Mutual labels:  physics-engine
Cyclegan
Software that can generate photos from paintings, turn horses into zebras, perform style transfer, and more.
Stars: ✭ 10,933 (+7140.4%)
Mutual labels:  computer-graphics
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+7698.68%)
Mutual labels:  computer-graphics
Vulkantutorial
Tutorial for the Vulkan graphics and compute API
Stars: ✭ 1,962 (+1199.34%)
Mutual labels:  computer-graphics

CubbyFlow

License Windows Ubuntu macOS Ubuntu - Codecov Build Status

codecov Codacy Badge Total alerts Language grade: C/C++ CodeFactor Discord

Quality Gate Status Lines of Code Maintainability Rating Reliability Rating Security Rating

CubbyFlow is voxel-based fluid simulation engine for computer games based on Jet framework that was created by Doyub Kim. The code is built on C++17 and can be compiled with commonly available compilers such as g++, clang++, or Microsoft Visual Studio. CubbyFlow currently supports macOS (10.12.6 or later), Ubuntu (17.04 or later), Windows (Visual Studio 2017 or later), and Windows Subsystem for Linux (WSL). Other untested platforms that support C++17 also should be able to build CubbyFlow.

Key Features

  • Basic math and geometry operations and data structures
  • Spatial query accelerators
  • SPH and PCISPH fluid simulators
  • Stable fluids-based smoke simulator
  • Level set-based liquid simulator
  • PIC, FLIP, and APIC fluid simulators
  • Upwind, ENO, and FMM level set solvers
  • Jacobi, Gauss-Seidel, SOR, MG, CG, ICCG, and MGPCG linear system solvers
  • Spherical, SPH, Zhu & Bridson, and Anisotropic kernel for points-to-surface converter
  • Converters between signed distance function and triangular mesh
  • C++ and Python API
  • Intel TBB, OpenMP, HPX and C++11 multi-threading backends

Every simulator has both 2-D and 3-D implementations.

Quick Start

You will need CMake to build the code. If you're using Windows, you need Visual Studio 2017 in addition to CMake.

First, clone the code:

git clone https://github.com/utilForever/CubbyFlow.git --recursive
cd CubbyFlow

C++ API

For macOS or Linux or Windows Subsystem for Linux (WSL):

mkdir build
cd build
cmake ..
make

For Windows:

mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64"
MSBuild CubbyFlow.sln /p:Configuration=Release

Now run some examples, such as:

bin/HybridLiquidSim

Python API

Build and install the package by running

pip install -U .

Docker

docker pull utilforever/cubbyflow:latest

Now run hybrid simulation example:

docker run -it utilforever/cubbyflow
[inside docker container]
/app/build/bin/HybridLiquidSim

More Instructions of Building the Code

To learn how to build, test, and install the SDK, please check out INSTALL.md.

Documentation

All the documentations for the framework can be found from the project website incluing the API reference.

Examples

Here are some of the example simulations generated using CubbyFlow framework. Corresponding example codes can be found under Examples. All images are rendered using Mitsuba renderer and the Mitsuba scene files can be found from the demo directory. Find out more demos from the project website.

PCISPH Simulation Example

PCISPH_dam_breaking

Level Set Simulation Example

Level-set_dam_breaking

FLIP Simulation Example

FLIP_dam_breaking

PIC Simulation Example

PIC_dam_breaking

APIC Simulation Example

APIC_dam_breaking

Level Set Example with Different Viscosity (high / low)

level_set_bunny_drop_high_viscosity level_set_bunny_drop_low_viscosity

Smoke Simulation with Different Advection Methods (Linear / Cubic-Spline)

rising_smoke_linear rising_smoke_cubic

Presentations

Articles

How To Contribute

Contributions are always welcome, either reporting issues/bugs or forking the repository and then issuing pull requests when you have completed some additional coding that you feel will be beneficial to the main project. If you are interested in contributing in a more dedicated capacity, then please contact me.

Contact

You can contact me via e-mail (utilForever at gmail.com). I am always happy to answer questions or help with any issues you might have, and please be sure to share any additional work or your creations with me, I love seeing what other people are making.

License

The class is licensed under the MIT License:

Copyright (c) 2018-2020 CubbyFlow Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].