Blender Git Commit Log

Git Commits -> Revision f135246

Revision f135246 by Brecht Van Lommel (master)
April 29, 2013, 17:35 (GMT)
Fix #35140: texture paint would give 'noisy' strokes and poor results for strokes
crossing themselves.

Again an old issue, the code that was limiting the max contribution to a pixel by
doing a max() operation, which is very sensitive to the spacing of the stroke dabs.
Instead we now use a formula does adds up on repeated dabs but approaches the
maximum brush value slowly and never exceeds it, which gives nice smooth results.

mask_accum = mask_accum + (sqrt(brush_max) - mask_accum) * sqrt(brush_max) * mask;

Commit Details:

Full Hash: f135246c01e7e59c6718c781bbecbdb6eec5bc8b
SVN Revision: 56391
Parent Commit: 93e3107
Lines Changed: +25, -14

1 Modified Path:

/source/blender/editors/sculpt_paint/paint_image_proj.c (+25, -14) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021