6 min readThe Clanmarch team

Devlog: two Wayfarers, two shades of brown

Getting my first 3D warrior from a 6 MB file into the game on my iPhone, making the female version right the first time, and the colour lesson I didn't see coming.

  • devlog
  • 3d art
  • ai tools
  • character design

Last time I ended with one goal: get the Wayfarer walking inside the actual app, on my phone, on the dark stage where your warrior lives. He's there now, and so is a female Wayfarer. Getting both in took a performance fix, a buckle I couldn't fully remove, and one problem I didn't see coming: two shades of brown.

I'm building Clanmarch, a walking game where your daily steps power up your warrior and your clan. I'm a frontend developer, not a 3D artist, so my characters come from 2D concept images turned into 3D models with Meshy, an image-to-3D tool.

First test: does a real model even run on a phone?

The Wayfarer came out of Meshy as a 6 MB file: 12,389 triangles, a 36-bone skeleton and walk, run and idle animations. About 70% of that file was a single 2048×2048 painted texture.

I built a test screen into the app that loads the model, plays an animation and times every step. The first run, on an Android emulator, took 7.7 seconds to load. Far too slow.

The fix was mostly the texture. Shrinking it to 1024×1024 and saving it as a JPEG, plus storing the shape data more compactly, brought the file down to 1.1 MB with no difference I could see. I also learned what not to use: the strongest compression formats need a decoder that phones running React Native can't load. So 1.1 MB is close to the floor.

On my iPhone the result was better than I hoped:

The Wayfarer on a dark stage in the app's test screen, with a load time of 341 milliseconds

341 milliseconds from tapping to seeing him, and a steady 60 frames per second.

That settled two big questions at once: the 3D setup the app already used can handle a real painted character, and roughly 12,000 to 15,000 triangles with one 1024 texture is a comfortable budget per warrior.

The buckle I couldn't fully remove

You might remember the extra buckle Meshy added to the satchel. Up close, it turned out to be two buckles fused into one frame.

Close-up of the satchel flap with the extra right-hand buckle circled in red

The extra half, circled.

I painted it out with Blender's clone brush, which copies a patch of nearby leather over whatever you paint. That got rid of the metal colour, the part that actually reads as a buckle. Then I tried to flatten its raised outline with a script, and it pushed part of the bag 74 mm inward. I rolled that back.

The model is built from a few large triangles, and the extra buckle shares an edge with the one I wanted to keep. There's no clean piece to push down. I accepted a faint raised outline that, at phone size, looks like a leather patch. The real fix happens earlier, in the images, which is where the next character comes in.

The female Wayfarer, right the first time

Then came the real test of last post's rules: making the female version. I made three views (front, side and back) and checked them against each other before spending any credits: one satchel on the same hip, the strap on top of the scarf, and one buckle, centred on the outer face of the flap, in every view where it shows.

Front, side and back concept views of the female Wayfarer, with the satchel and its single buckle in the same place in each

Same bag, same buckle, same place, three times.

Meshy got it right on the first try.

Close-up of the female Wayfarer's satchel with a single buckle on the flap

One satchel, one buckle. Finally.

She also came with a bonus: 66 bones instead of 36, including proper finger bones, so her hands won't look like mittens when the warriors pick up weapons.

Two shades of brown

I put both characters on my phone, side by side, and something was off. His shirt was rosy where hers was cream. His trousers and boots were redder and lighter.

The male and female Wayfarer side by side as Meshy made them, his shirt, trousers and boots noticeably rosier

Same outfit, two different browns.

It makes sense in hindsight. Meshy paints each model's texture fresh from the images you give it, and my two sets of images came from separate chats. "Cream shirt" and "brown trousers" leave a lot of room. A strong colour like the red scarf survives; quiet neutrals drift.

To fix his, I made a mask of only his shirt, trousers, boots and shin wraps. The mask picked them out by where they sit on his body and by their colour, leaving the satchel, vest, scarf and skin alone. The magenta and cyan below are the mask, not paint.

The male Wayfarer with his shirt marked in magenta and trousers in cyan, showing exactly what would be recoloured

Magenta for the shirt, cyan for the trousers.

Then I shifted those areas until their average colour matched hers. The folds, shading and wear all survive.

The two Wayfarers side by side after the fix, their shirts, trousers and boots now matching

Matched.

It worked, but it was fixing a problem that should never have existed. For every outfit from now on, I'll write the exact colours into the image prompts, and I'll make the second body's images from the first body's images ("the same outfit, on a female body") so the palette carries over.

Your warrior, your colours

The same masking trick solved customization. Each model now has a small mask marking its skin and its hair (his goatee and moustache count as hair). The game recolours just those areas to the skin tone and hair colour you pick, keeping the painted shading.

The two Wayfarers with new colours: him with deep skin and white hair, her with tan skin and red hair

Same two models, new skin and hair.

Getting the masks right took a few rounds. Light-brown hair highlights and shadowed skin are nearly the same colour, so colour alone couldn't tell them apart; I ended up deciding triangle by triangle whether each piece of the model was hair or face. And at one point the top of his vest counted as hair, so choosing a hair colour gave him a glowing orange shoulder.

Now the Look screen offers male or female, five skin tones and six hair colours, and the warrior on your home screen is the Wayfarer.

The Look screen with the Wayfarer turning on the stage above options for character, skin and hair colour

The new Look screen.

The white-haired Wayfarer standing on the dark stage of the home screen

My own warrior on my home screen, white hair and all.

What I learned

Adding to last time's list:

  1. Test on a real phone early. One afternoon settled the renderer, the file size and the triangle budget.
  2. Shrink the texture first. It was 70% of the file. A 1024 JPEG looked the same on a phone screen.
  3. The image rules work. Three views with every detail in the same place gave me a clean model on the first try.
  4. Pin down the palette, not just the design. Write exact colours into every prompt, and make the second body's images from the first's.
  5. Fix it in the images, not in Blender. A raised outline taught me the same lesson as the buckle last time.
  6. Masks beat extra models. One mask per character gives every player their own skin and hair colour, no new models needed.

What's next

The old Vorga armour, earned by beating the boss, needs remaking as a Wayfarer-style outfit for both bodies. I'll also add a proper victory cheer, since for now he celebrates by running.

If you want to follow along, or march with a clan when Clanmarch launches, join the waitlist.

Keep reading