My Brute

Devlog: a female body type and 4 new haircuts

A female body type joins the brute editor, haircuts go from 2 to 6, and the voxel model gets reorganized to make room for it all.

Two haircuts was cutting it short

Creating your brute is the first thing you do in the game. Since launch, that moment boiled down to four colors and two haircuts, on a single body type. Many players ended up with brutes that looked alike, and one request kept coming back: being able to play a brute that isn't always the same burly guy.

This sprint tackles that. The editor gains a female body type, and the hairstyle catalog goes from 2 to 6 haircuts in total.

What changes in the editor

A new attribute appears in the brute creator: BODY. You set it like skin or clothing, at the start of customization, and it costs nothing: it is a purely cosmetic choice.

  • Male body type: 4 haircuts, including 2 new ones added to the two originals.
  • Female body type: a new head, dedicated eyelashes, and 2 haircuts, one of them with its own hair accessory.

Each haircut belongs to one body type: they aren't interchangeable, because they are sculpted for the head they sit on. In practice, if you switch from one body type to the other during creation, the haircut automatically readjusts to a valid one: no need to set it up again by hand.

An important point: the body type has no effect on gameplay. No bonus, no penalty, no hidden stat, and nothing is shown anywhere else in the interface. It is appearance, and nothing more. Two brutes with identical stats fight exactly the same way, whatever their build.

Under the hood: a model that reorganizes itself

My Brute Legacy brutes are 3D voxel models with no skeleton: each body part is a named mesh, and the game decides at load time which ones to show and what color to paint them. Until now, the logic was simple: one head, eyebrows, and two haircuts to show or hide.

With a second body type, the model now contains two heads, two sets of brows (eyebrows and eyelashes) and six haircuts, but a brute must only show one consistent set. So the rendering code was generalized: instead of handling each case by hand, it works out from each mesh's name which body type and which haircut it belongs to, then shows only what matches the brute. Adding a seventh haircut tomorrow will take a single line.

Another subtlety: some pieces have their own texture: the eyelashes and the accessory of the female haircut. Unlike hair, which takes the color chosen by the player, these pieces must never be repainted. So they are flagged as such and left untouched, while still appearing and disappearing along with the haircut they belong to.

The silliest bug of the sprint

A story for the curious. During testing, the hair accessory of the female haircut stubbornly stayed visible when switching to the male body type: a ribbon floating next to the head of a guy who never asked for it.

The cause: in the 3D model file, that mesh had been exported with a trailing space in its name. The rendering engine replaces spaces with underscores at load time, so the piece arrived in the game under a name slightly different from the one expected. Matching no rule, it simply slipped past the display logic and kept whatever visibility it had at load time.

The fix fits in one line (names are now normalized before being compared), but it is a good reminder that half of all 3D rendering bugs are actually naming problems.

What about existing brutes?

Nothing changes for them. Every brute created before this update keeps exactly the look and haircut it had: they are simply assigned the male body type, and their haircuts 1 and 2 stay the same as before. No action needed.

The flip side, in full transparency: appearance can still only be chosen at creation. There is no screen yet to change haircut or body type after the fact, so the new options mostly benefit the next brutes you create.

What's next?

Customization is far from finished:

  • More haircuts for both builds, now that the system accepts them without an overhaul.
  • A way to change your look later on, modeled on the existing potions.
  • More variety beyond hair: accessories, outfit details.

In the meantime, the editor has what it takes to make brutes that no longer look alike. Go create one, and this time, it will have a face of its own. The beginner's guide explains what to do with the five stat points that follow, and the demo shows what a fight looks like.

Read next

Tourne ton telephone en portrait pour jouer