Kapirga

How are the birds made? Blender, Python and a poultry atlas

There is not a single hand-sculpted 3D mesh in Kapirga. Every bird – from the hen to the tom turkey –, the farmer, the girl, the livestock beyond the fence and every coop is built by a Python script in Blender, the free 3D program. The script describes the body proportions, the feather colours, the shape of the beak and the comb and the movements, and Blender assembles the model from it and exports it for the game.

Why code?

  • One change applies everywhere. When the birds' legs got better – most recently scaly shanks, claws and spurs –, one run of the scripts rebuilt every species and breed.
  • A new breed in minutes. A new chicken breed is usually just a few lines: other feather colours, a crest, feathered feet, a bigger or smaller body.
  • Exact sizes. The world is 1.28 times real size and every animal follows it: people and large livestock at their real size, smaller animals with a little extra so they read well on a phone screen.

The poultry atlas

The breeds come from our own "poultry atlas": photos of real birds and breed descriptions. That is how we know that a Brahma has feathered feet, a Naked Neck a bare neck, that a Serama is barely bigger than a palm, and that the Vietnamese Đông Tảo has legs as thick as a boot. The model keeps changing until its preview holds up next to the reference photo.

The movement

The birds' movements – walking, running, pecking, scratching, jumping, preening – come from a shared base, and every species adds its own differences. The duck waddles and dabbles, the goose grazes, the turkey struts, and every species has its own dust bath: the rooster first looks around to see if anyone is watching, then drops dramatically; the duck "swims" in the dust; the goose sweeps it with its neck; the turkey spreads its wings. Even the droppings differ by species, just like the real ones.

Where it can, reality decides

The rules of the game come from the real farmyard too. Hatching takes a quarter of the real time in hours (5 hours instead of a hen's 21 days), the hawk cannot lift a goose or a turkey, the gander stays true to his mate, and the jump height follows the bird's body height. So you can learn a little about real poultry from Kapirga – read more on the Species page.

← Back to the news