Koi modelling

February 2024

Koi shapes
Koi shapes

The koi models I've used up until now were very simple flattened cylinders, but the game needs more realistic and above all more mutable shapes to make the game fun. All fish should resemble koi, but many properties of the shape should be mutable too.

Several fins will also need to be attached to the body shape. The tail fin, back fin and dorsal fins seem to be the most visually important, but I may also add ventral fins. The body model should be designed in such a way that fins can attach to it without giving the impression that the fins are simply stapled onto the fish without being connected to the body.

The body shape is animated using a strip of bones that move from the front of the fish all the way towards the end of the tail fin. This chain of vertebrae swings when swimming, and makes the fish bend. All fins will have their own bone(s) to allow for independent animation, so they don't just move with the body.

Koi bodies are created from several mutable curves:

  • The lateral curve going from the nose to the tail along the back,
  • the lateral curve going from the nose to the tail along the belly, and
  • the top-down profile of the koi, which determines the width of the body.

The profile as seen from the front is partially derived from those three curves, and has some mutable parameters that determine the thickness and sharpness of the body shape.

When studying pictures of koi, one important thing I noticed is that the head is clearly separate from the body in several ways:

  • It has no fins, and it's rather smooth.
  • There's a clear dividing line between the head and the body at the location of the gills.
  • The top of a koi body where the back fin is attached is somewhat pointed, but the top of the head is round.
  • The head does not bend.
  • The back curve changes direction where the head begins.
Koi models
Koi models

To account for this difference, the first part of the koi body is modelled differently. The top of the head is rounded instead of sharp, the head turns but does not bend, and triangles are arranged differently to make the nose nice and round, rather than pointy and flattened like the back of the koi body.

The screenshot shows some koi models generated from simple curves according to these rules. The heads are clearly separate, the back of the body shape is sharpened around the area where the back fin will be attached, and the tails end in flat wedges where the tail fins will be attached.