Page MenuHome

Cycles: Add more options for controlling hair/curve radius
Needs ReviewPublic

Authored by Lukas Stockner (lukasstockner97) on Jun 1 2019, 6:02 PM.



This patch adds three new options for controlling curve radius:

  • An option to use a CurveMap instead of the shape parameter to control the radius along the curve
  • An option to use a Vertex Group as a multiplier of the curve radius
  • An option to apply some random variation to the curve radius

There are two ToDos: The hashing that's currently used for the randomness isn't great,
and the options aren't supported in Eevee yet.

Diff Detail

rB Blender
haircurve (branched from master)
Build Status
Buildable 3791
Build 3791: arc lint + arc unit

Event Timeline

Add a missing call to initialize the CurveMapping and change the random parameter to be a percentage.

This seems generally useful, will find more time to review this and your other patches as we get closer to opening master for new features in 2.81.

Long term we want to make hair its own data types with modifiers to control this kind of thing, but I think this can fit well with that design.