diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-11-13 18:06:39 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:07 +0300 |
commit | b3cbafb96630c370d1750fc8cb59053ddae0d6f2 (patch) | |
tree | ad196084618e3f631656751a27da1b03006f6930 /release/scripts/startup/bl_ui | |
parent | a754c0af4088aaa7d1799351db1d03b9250a0d2e (diff) |
Implementation of a target density feature for the hair simulation.
This allows setting a target density which the fluid simulation will
take into account as an additional term in the pressure Poisson
equation. Based on two papers
"Detail Preserving Continuum Simulation of Straight Hair" (McAdams et al. 2009)
and
"Two-way Coupled SPH and Particle Level Set Fluid Simulation" (Losasso et al. 2008)
Currently the target pressure is specified directly, but it will be
a lot more convenient to define this in terms of a geometric value such
as "number of hairs per area" (combined with hair "thickness").
Conflicts:
source/blender/physics/intern/BPH_mass_spring.cpp
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 690a9d1d8bd..e6e7e1fb43c 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -325,10 +325,9 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel): col.label(text="Volume") col.prop(cloth, "air_damping", text="Air Drag") col.prop(cloth, "internal_friction", slider=True) - sub = col.row(align=True) - # XXX disabled due to stability issues - #sub.prop(cloth, "pressure", slider=True, text="Pressure") - #sub.prop(cloth, "pressure_threshold", slider=True, text="Threshold") + sub = col.column(align=True) + sub.prop(cloth, "density_target", text="Density Target") + sub.prop(cloth, "density_strength", slider=True, text="Strength") col.prop(cloth, "voxel_cell_size") split.separator() |