Blender Git Commit Log

Git Commits -> Revision 7349d77

Revision 7349d77 by Nicholas Bishop (master)
June 19, 2009, 22:16 (GMT)
2.5/Sculpt:

Made some improvements to how brush strength works.

* For the draw and inflate brushes, the brush's 3D radius is used to set the "goal" distance, towards which vertices move. A strength setting of 1.0 will move verts there immediately (with the usual exceptions of tablet pressure, texture/curve input, etc.)

* Also changed strength calculation to use the square of the strength slider, so that you don't have to be as finicky setting a low brush strength.

* For smooth brush, added an extra loop through the verts. So, a bit slower, but now verts take into account more than the immediate vertex ring.

TODO:
Still some magic numbers:
* Pinch limits the effect to moving vertices half of the way towards brush center. I see no use for a 100% pinch (it pretty much destroys the mesh.) Even half may be too high a limit, but this is hard to place an exact number on.

* Smooth has two magic numbers, the strength fudge factor and the number of smooth repetitions (currently 2.)

* The way the layer brush works is left unchanged for now.

Commit Details:

Full Hash: 7349d775b0c80a112cc90888db80f481a36c4b92
SVN Revision: 21017
Parent Commit: c3b8db4
Lines Changed: +46, -41

1 Modified Path:

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