Blender Git Loki

Git Commits -> Revision b86042f

Revision b86042f by Alexander Gavrilov (master)
January 4, 2017, 16:44 (GMT)
Dynamic Paint: Fix random pixel flooding by absolute brush with spread.

If a very low wetness absolute alpha brush is used with spread and
drying effects enabled, some pixels will rapidly accumulate paint.
This happens because paint drying code applies a minimal wetness
threshold that causes the paint to instantly dry out.

Specifically, every frame the brush adds paint at the specified
absolute alpha and wetness set to the minimal threshold, spread
drops it below threshold, and finally drying moves all paint to
the dry layer. This drastically accelerates the rate of flow of
paint into the affected pixels.

Fortunately, the reason paint spread actually ends up decreasing
wetness turns out to be a simple floating point precision problem,
which can be easily fixed by restructuring the affected expression.

Commit Details:

Full Hash: b86042f21a8d905bea91af7c04b1265b7517f4cf
Parent Commit: a9163f7
Lines Changed: +1, -1

1 Modified Path:

/source/blender/blenkernel/intern/dynamicpaint.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021