Simple hair children: Make twist affected by vertex group
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 14 Feb 2018 15:46:29 +0000 (16:46 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Feb 2018 10:53:58 +0000 (11:53 +0100)
commit67cec97387965009dfaa57f7f4c8ab948e048e70
tree7e2ec71d0db86c28a2a7ce051a4593661637f726
parentffde74a878882618ab4d4179ba8dd9b98aab15e2
Simple hair children: Make twist affected by vertex group

The idea is to give a control over direction of twist, and maybe amount of
twist as well. More concrete example: make braids on left and right side of
character head to be twisting opposite directions.

Now, tricky part: we need some negative values to flip direction, but weights
can not be negative. So we use same trick as displacement map and tangent normal
maps, where 0.5 is neutral, values below 0.5 are considered negative and values
above 0.5 are considered positive.
release/scripts/startup/bl_ui/properties_particle.py
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_child.c
source/blender/blenkernel/intern/particle_system.c
source/blender/makesdna/DNA_particle_types.h
source/blender/makesrna/intern/rna_particle.c