All Projects → utilForever → Cubbyflow V1

utilForever / Cubbyflow V1

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

Projects that are alternatives of or similar to Cubbyflow V1

Cubbyflow
Voxel-based fluid simulation engine for computer games
Stars: ✭ 151 (+67.78%)
Mutual labels:  computer-graphics, physics-engine
CubbyFlow
Voxel-based fluid simulation engine for computer games
Stars: ✭ 215 (+138.89%)
Mutual labels:  computer-graphics, physics-engine
Fluid Engine Dev
Fluid simulation engine for computer graphics applications
Stars: ✭ 1,007 (+1018.89%)
Mutual labels:  computer-graphics, physics-engine
Pifu
This repository contains the code for the paper "PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization"
Stars: ✭ 1,021 (+1034.44%)
Mutual labels:  computer-graphics
Solarsys
Realistic Solar System simulation with three.js
Stars: ✭ 49 (-45.56%)
Mutual labels:  computer-graphics
Imath
Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics
Stars: ✭ 70 (-22.22%)
Mutual labels:  computer-graphics
Shoebot
Easy vector graphics with Python
Stars: ✭ 88 (-2.22%)
Mutual labels:  computer-graphics
P5 Matter Examples
Examples showing how to combine p5.js and matter.js.
Stars: ✭ 43 (-52.22%)
Mutual labels:  physics-engine
Seam Erasure
Seamlessly erase seams from your favorite 3D models.
Stars: ✭ 80 (-11.11%)
Mutual labels:  computer-graphics
Graphics Algorithm
3D图形学算法Code。包括软渲染、光线追踪、PBR等等~
Stars: ✭ 67 (-25.56%)
Mutual labels:  computer-graphics
Pix2pix
Image-to-image translation with conditional adversarial nets
Stars: ✭ 8,765 (+9638.89%)
Mutual labels:  computer-graphics
Graphics Snippets
Shading techniques and GLSL snippets
Stars: ✭ 53 (-41.11%)
Mutual labels:  computer-graphics
Dmech
3D physics engine for D
Stars: ✭ 70 (-22.22%)
Mutual labels:  physics-engine
Meshcnn
Convolutional Neural Network for 3D meshes in PyTorch
Stars: ✭ 1,032 (+1046.67%)
Mutual labels:  computer-graphics
Attend infer repeat
A Tensorfflow implementation of Attend, Infer, Repeat
Stars: ✭ 82 (-8.89%)
Mutual labels:  computer-graphics
Metatrace
Stars: ✭ 67 (-25.56%)
Mutual labels:  computer-graphics
Bru 9
Aesthetic Engine 2
Stars: ✭ 74 (-17.78%)
Mutual labels:  computer-graphics
Noneuclidgraphics
非欧几何世界中的渲染引擎
Stars: ✭ 65 (-27.78%)
Mutual labels:  computer-graphics
Bfm to flame
Convert from Basel Face Model (BFM) to the FLAME head model
Stars: ✭ 55 (-38.89%)
Mutual labels:  computer-graphics
Miyuki Renderer
Experimental Physically Based Renderer
Stars: ✭ 89 (-1.11%)
Mutual labels:  computer-graphics

CubbyFlow-v1

Notice: This project is archived to maintain an initial version of CubbyFlow. If you want to see a project that is actively working, please visit CubbyFlow project.

License

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-v1.git --recursive
cd CubbyFlow-v1

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-v1.sln /p:Configuration=Release

Now run some examples, such as:

bin/HybridLiquidSim

Python API

Build and install the package by running

pip install -U .

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

Korean

[NDC 2018] 유체역학 엔진 개발기 - 게임에서 물리 기반의 유체를 구현하기 위한 고군분투

Related articles

English

Coming soon...

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 © 2018 Chris Ohk and Dongmin Kim.

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