Simple hair children: Make twist affected by texture
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Feb 2018 10:22:44 +0000 (11:22 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 15 Feb 2018 11:24:48 +0000 (12:24 +0100)
commit6d4022f61980ba46efd391dcfe96dd88a8db8deb
tree47de0c472537be5d8eb8550135c3c3e039d5a594
parent5ce6ca05366e653cc576ac6beaed72d07c0e2e6c
Simple hair children: Make twist affected by texture

This completes twist feature, which is now possible to also control by
texture. Since textures can not easily contain negative values as well,
same trick with 0.5 neutral as vertex groups is used.

All in all, this twist features allows to do following things.

Original hair:

{F2287535}

Hair with scientifically calculated twist value of 0.5:

{F2287540}

And we can also twist braids in opposite directions dependent on left/right
side:

{F2287548}
release/scripts/startup/bl_ui/properties_texture.py
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/particle_child.c
source/blender/blenkernel/intern/texture.c
source/blender/makesdna/DNA_particle_types.h
source/blender/makesdna/DNA_texture_types.h
source/blender/makesrna/intern/rna_particle.c