Hangar Valley
DevlogTech · 3 of 3

Hair, from a comb to a game

Two views of a head with long straight brown hair, the top half gathered back into a small round bun, rendered hair by hair on a dark green background.
Half-up with a bun, 150,000 hairs, in our own hairstyle planner

Hair is what makes people look like people, and it is what games most often get wrong. This is the story of how we got from clay wigs to hair you can comb, and from there to something that runs on a Quest.

This is the last of three behind-the-scenes devlogs. Part one was about running the game inside Blender, part two about clothes sewn from patterns.


Round 1: shapes, not hair

A character with a short bob made of a few smooth, solid pink shapes, like clay.Locks as solid shapes
Five views of a brown bob made as one solid mass around a character's head.A bob as one mass

The first try was the cheap one: hair as a few smooth shapes, the way many games do it. Guide hairs follow a comb field over the head (outward from the crown whorl, sideways away from the parting, down over the dome), are grouped into locks, and each lock gets a solid shape. It read as a helmet of clay. For beards, hundreds of small locks were no better: they looked like chips.

Round 2: real strands in Blender

Four portraits of the same character with different hair rendered as fine strands: straight, wavy with highlights, curly, and coily.
Hair types 1A, highlights, 3C and 4B, as real strands in Blender

Then real hair. Blender fills in thousands of fine strands around the guides with its hair particles and procedural hair nodes, and renders them with its hair shader in Cycles. On top of that I wrote the parts Blender does not have:

Two renders of a head with long honey-brown wavy hair seen from behind: the top half is twisted back and woven into a braid that runs down over the loose waves.
The best Blender gave us: half-up, woven into a braid

It was a big step, but I was not happy with it. Every change meant waiting for a render, and you shaped hair by changing numbers in code, not with your hands. A hairdresser does not type. I wanted to comb.

Round 3: our own hairstyle planner

The Kapselplanner app: on the left a list of hairstyles such as layers, bob, A-line, pixie, braids, Dutch braids, fishtail, bun, half-up, space buns and bubble ponytail; on the right a head with long straight brown hair and a parting on the left.
The planner: choose your hair type, then a style

So, like the clothes, hair got an app of its own: a planner written in Rust that grows every hair on the graphics card. You first choose your hair type, then a style (40 of them, from a bob and a pixie to Dutch braids, box braids, locs, Bantu knots, a wolf cut and a quiff with a fade), and then you take over by hand.

Eighteen small portraits of the same test head with different hairstyles: long straight hair, a bob, a pixie, braids, a French braid, a fishtail, half-up, a bun, space buns, a crown braid, locs, box braids, twists, Bantu knots, a puff, a wolf cut, a mullet and an undercut.
Eighteen of the forty styles, each grown in about a second
The test head with two Dutch braids seen from the left, from behind and from the right: the braids start at the hairline and run down the back.
Two Dutch braids, from three sides
Three views from behind of the same long brown hair: smooth, a little frizzy, and very frizzy and tangled.
One slider: from sleek to tangled
A short haircut from the side and the back: the top left longer, the sides and neck clipped down to stubble in a fade.
A fade, cut hair by hair with the clipper
Rows of small heads with long hair, from white and platinum blond through browns to black.
Hair colour from melanin, from platinum to black
Three hair accessories on a light grey background: a tortoiseshell claw clip, a pink scrunchie and a gold barrette.
Claw clip, scrunchie and barrette

Round 4: into the game

A game cannot draw 150,000 hairs on a headset. So every kind of strand (straight, wave, curl, ringlet, braid, loc) is rendered once as real fine hair in Blender's Cycles: 4,500 hairs for a straight strand, and for a dreadlock 3,600 hairs plus 900 loops of loose fuzz. Those pictures go on thin bending strips laid along the guides. Up close it still reads as hair, because it is pictures of hair.

Four baked hair textures on a dark background: a felted blond dreadlock with loose fuzz, two straight copper strands, and a wavy copper strand.
Strand cards, rendered from real hair
The two eye views of a VR headset, each showing a head with short copper hair made of strand cards against a dark background.
The hair cards on a Quest headset

What fought back along the way

Hair is not in the game yet. It comes with the people of the valley, Mac and PC first, then the Quest.

Feedback welcome

Behind the scenes, in three parts: 1. The game runs inside Blender · 2. Clothes cut from real patterns · 3. Hair, from a comb to a game

Come say hi on Discord. The game also streams live on Twitch, every night at 20:00 CET.

All devlog posts