Hair Tool addon for blender to simplify creation process of low/medium poly hair models
This addon will help you generate hair mesh ribbons with uv’s from bezier/nurbs curves. It is how most current games are doing hairs for characters.
Hair Tool workflow
ability to generate and interactively comb hair ribbons based on blender particle hairs (since 1.8 version)
generating hair ribbons from guide mesh surface
ability to uv unwrap and preview textures on hair curve ribbons
easy and convenient switching back and forth between curve ribbons and mesh mesh, while preserving uv’s
ability to adjust ribbons radius profile over strand length to taper the ribbons shape
ability to convert stuff eg: Grease Pencil strokes to Particle Hair or Curves ribbons, Curves to Particle Hair, Particle Hair to curve ribbons
generating randomized ribbons UV’s (you can draw multiple uv boxes, that will be randomly picked for each ribbon strand).
Curve Resampling – increase, decrease curve/ribbon points amount, while preserving it’s tilt and radius.
Generating vertex color/weights gradients for ribbons.
Video tutorial mostly about generating curves from mesh surface, with some tips and tricks, problem solving and stuff.
Video showing: creating particle hair from grease pencil, generating curve ribbons from parent particle hair with children, resampling curve ribbons and other stuff.
Videos showing interactive hair ribbons combing : First, Second (includes new curve clumping)
Video showing material material setup on curve ribbons, and new modeling tool for curve ribbons- ‘ Linear deformer‘ – tool can be found on github here.
Old Video about hair shader: https://vimeo.com/229043427Old Video about creating texture:
discord server where you can report bugs. Basic workflow for generating curves from mesh surface:
First step is to generate base shape of hair. For that use grid mesh, created only of quads. Mark one border of this mesh with sharp edges – those will become roots of hair splines:
Press ‘ Curves from surface‘ button located in left Tool Shelf -> Tools, to generate curves from selected object. Generated curve settings can be modified using ‘ F6‘ hotkey. You can adjust stuff like hair amount, length, add some noise etc. Or you can do some manual tweaking here going into curve ‘Edit mode’.
To add ribbons profile to generated curves, press ‘Generate Ribbons’ button. There are some settings to play with under ‘F6’ hotkey. Use ‘Align tilt’ to align curves rotation to source mesh (head) .
You can now uv map curve ribbons by going into UV editor and search for ‘ Hair UV’ operator under spacebar. Left click and draw rectangular shape, in uv Editor, to define the uv bounds for hair strands. If you assign material to curve ribbons, use ‘ Curve Ribbons UV refresh‘ to update material uv mapping. You can convert curve hair to mesh ribbons by using ‘ Curve ribbons to mesh ribbons‘ – now they can be exported to game engine. Any time you want, you can go back to curve ribbons by using ‘ Mesh ribbons to Curve ribbons‘. Curve Ribbon operations:
Curve Simplify- Allows to reduce point count. Good for reducing polycount on hairs .
Resample Curve. Allows to increase/decrease number of points each curve is made of. It keeps the original strand radius and tilt.
Smooth Curve – smooth strand points (eg. to reduce noise)
Taper Curve – change strands radius over length
Align Curve tilt – lets you align cure tilt to target object surface.
Randomize Curve Tilt – change curve tilt over its length
Select Tips/Roots – lets you select first/last points on curves. There is randomize option under F6 properties. Mesh Ribbon operations:
Add Ribbon Vertex Color – create black and white color gradient from strand root to tip
Add Ribbon Weights – create vertex weight gradient from strand root to tip
UV hair operator (found under spacebar) – Left click and draw multiple rectangular shapes, in uv Editor, to define the uv bounds for hair strands. Press enter to confirm. Interactive hair combing:
Interactive Hair Combing – panel is displayed in left Tool Shelf, when combing Blender particle hair. Enabling it will generate interactively updated curve hair ribbons. In that panel you will have option for smoothing, embedding, aligning tilt etc. of generated strands. Convert operations – let you convert Particle Hair to (ribbon curves), curves to Particle hair, Grease Pencil to Curves etc.:
Ribbon to Curves/ Curves to Ribbon – allow for switching between ribbon curve and ribbon mesh state. Usually you will want to do hair modeling in curve state, and then do UV in ribbon mesh state.
Particle Hairs to Curve – generate curve ribbons from Particle hair. Align their tilt to head with ‘Align Tilt’ checkbox, and embed hair roots deeper into the scull using ‘Embed Roots’ parameter.
Particle Hair from Curves (this can be used to convert zbrush fibermesh to blender Particle Hair system). Select curves and target mesh (that will receive Particle Hair) and use ‘ Particle Hair from Curves‘ to convert curves object to blenders Hair system.
‘ Ribbons from particle hair with children‘ – gives more evenly distributed result compared to build-in child particles . Great for short Hair.
‘ Particle Hair From Grease Pencil‘ strokes painted with grease pencil, can be converted to particle hair (with some options available under f6). Checkbox next to this button, describes if you want to use Scene GPencil data (when enabled), or Object GP data (when disabled).
‘Flip UV’ option in preferences – if enabled random strands will have uv’s flipped in X-axis.
Grease Pencil to curve – quickly sketch gprease pencil guides, that will be converted to curve ribbons. Use F6 for options. If you run this operation with curve hair selected, it will add new curves to it. If you run it with mesh selected, then it will be used for as target for ribbons aligning and offset.
Braids from curve – just select Source curve, and run ‘Generate Braids’ on it. As usual there are some options under the F6 button. After you are finish, original Source curve can influences the generated braid so you can twist it (ctrl +T), scale radius (alt+s) to change the sape of braid. Hair Tool examples:
Hair Tool examples
Hair Tool source meshes