← Workshop

Costumes that belong to her fur.

22.700 → 12.000 triangles per hood

We built every hood in mofu's shop in Blender, all to one shared plan, so that the fifteen of them fit together in the end. We walked into a few traps along the way.

One plan for all of them

Every hood has the same basic shape. What sets them apart we decide one by one: what kind of ears, how big, which colors, what goes on top. On the hedgehog, for example, the spines get flatter toward the neck, and the unicorn gets a twisted horn and a mane of nine tufts in rainbow colors.

Fifteen hoods as gray wireframes with triangle counts
All 15 hoods, drawn without their back faces. Each one has roughly 12,000 triangles.

How big a hood can be, we tried out right on the cat.

Tiger and frog hoods in three sizes on a cat
Three sizes side by side, still on the cat from November.

12,000 triangles

The first tiger hood had 22,700 triangles and weighed 2.3 MB. Now we bring every hood down to 12,000 triangles, which leaves about 1.5 MB. In the game you can't see the difference, but the iPhone definitely notices.

The tiger hood from the front, the side and the top, with dimension lines
The tiger hood from the front, the side and the top.

Every hood is one mesh, one material and one texture of 1024 × 1024 pixels. We assign colors by part: ear, snout, stripes, rim. Every pixel of the texture knows which part it belongs to and takes that part's color. So a hood looks exactly the same after every new export, even when we change something elsewhere.

The black pixels

For quite a while, every hood had one to four black pixels that came and went. It took us a while to find the cause. When a mesh is reduced, single triangles flip over and end up facing inward. Blender had exported the models double-sided, so the iPhone drew those triangles from behind, and from behind they're black.

Now we flip those triangles back after reducing, and only the front side gets drawn. By the way, the unicorn has 11,980 triangles instead of 12,000. At exactly 12,000, one triangle by the ear turned inward, so we just left it at 11,980.

Fur and hood in the same color

Until today, the hood was a slightly different color from the body. The body is drawn as fur, with its own light in the picture-book style, but the hoods were still painted with an older, slightly milky color curve. In the shop, a panda looked like it had two different costumes on.

Now we treat the hood like fur, with the same color curve and the same light. We repainted all 15, and their shape didn't change at all.

Hood textures, pale on top, stronger below
The hood textures, laid out flat. Top: before. Bottom: after.
Eight hoods on stands in the shop, pale on top, in rich colors below
The shop window. Top: before. Bottom: after.

Read more: How mofu is built, How mofu's world is built and mofu no longer gets stuck in the furniture.