From 4e84e076b2567ee2ec9fc70aced35a3ebd0ad19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 9 Aug 2021 11:19:42 +0200 Subject: Fluid: Initial support for 2D fluid simulations Initial adjustments for 2D (real-time) simulations. Basic functionality includes: - 2D/3D switcher in domain settings - 2D simulation support for smoke/fire, wavelet noise, liquid particles, secondary particles - UI switcher to choose the axis that will be simulated on - Planar visualization in workbench render Some things that remain to do (non-exhaustive list): - Eevee & Cycles support - Liquid meshing - Liquid viscosity solver --- source/blender/makesdna/DNA_fluid_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/makesdna/DNA_fluid_types.h') diff --git a/source/blender/makesdna/DNA_fluid_types.h b/source/blender/makesdna/DNA_fluid_types.h index 5ac5f7ca8a2..fe703182f65 100644 --- a/source/blender/makesdna/DNA_fluid_types.h +++ b/source/blender/makesdna/DNA_fluid_types.h @@ -198,6 +198,12 @@ enum { FLUID_DOMAIN_TYPE_LIQUID = 1, }; +/* Fluid domain dimension. */ +enum { + FLUID_DOMAIN_DIMENSION_2D = 2, + FLUID_DOMAIN_DIMENSION_3D = 3, +}; + /* Mesh levelset generator types. */ enum { FLUID_DOMAIN_MESH_IMPROVED = 0, -- cgit v1.2.3