Short.Demonstration.mp4
Implement Fluid Simulation (FLIP) on Unreal Engine 5 with NVIDIA GVDB Library.
The particles are simulated with a Niagara system. (using Sprite Renderer & Mesh Renderer)
Reference Paper / Link
- NVIDIA Kepler generation or later GPU
- CUDA Toolkit 6.5 or later (Toolkit 10.2 recommended)
- Visual Studio 16 2019 or later
- CMake 3.10 or later
Tested on CUDA Toolkit 10.2 & Visual Studio 16 2019 only. Other versions may not work properly.
- Move to
GVDB_Library
Directory - Generate files using CMake (Put your CUDA Path at argument)
cmake -B ./build -G "Visual Studio 16 2019" -DCUDA_PATH_BUILD="YOUR_CUDA_PATH"
# Example
cmake -B ./build -G "Visual Studio 16 2019" -DCUDA_PATH_BUILD="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2"
- Open
build/gvdb.sln
- Set Output Directory of gvdb project as
GVDB_Library/lib
path (ex. $(SolutionDir)..\lib
) - Set Target Extension of gvdb proejct as
Static Library (*.lib)
- Set Target File Extension of gvdb project as
.lib
- Build gvdb project with 'Release' (It will generate
gvdb.lib
atGVDB_Library/lib
)
- Generate Visual Studio project files (using
UE_GVDB.uproject
) - Open
UE_GVDB.sln
- Build and Launch