If you played Species 0.5.0, you may have noticed an evolutionary bias towards brightly coloured creatures over grey, black or white.
If you’re thinking entirely in terms of natural selection, this might seem odd: colour is a completely neutral mutation in 0.5.0. There is no selection pressure related to colour. No, not even a hidden special one I haven’t told you about. Colour does not affect their survival or reproduction in any way.
And yet the creatures consistantly evolved from grey to bright colours. Why?
This is where an evolutionary mechanism known as Genetic Drift comes into the picture.
For a value that randomly mutates or ‘wanders’ in a single dimension, Genetic Drift has a fairly negligible influence. As you can see below: the wandering line hovers around it’s original horisontal position. It can still wander fairly significantly, but simple statistical pressure mimimises the effect of drift:
The same does not apply for a value that wanders in two dimensions. A value wandering in two dimensions is unlikely to return to it’s starting point, because when it does both the wandering x and wandering y co-ordinates have to be there at the same time. This rarely happens.
This effect increases with every dimension of wandering: if you allow the point to wander up and down as well, it’ll will move away from it’s starting point even faster. And for a creature in Species, with a genome of almost 100 different values or ‘dimensions’, this statistical bias exerts is a very strong pressure.
And this is where things relate back to colourful creatures. Colour is represented in computing terms by 3 values: red, green and blue. Each of these values mutates randomly. In order to get a monochrome colour like black, white or any shade of grey, these three values all have to pass through the same spot at the same time. As said before, this rarely happens.
So the end result is that even with no selection pressure applied, genetic drift causes continual change towards brighter, more distinct colours.
Genetic drift doesn’t get the attention that natural selection does in textbooks and introductory curriculum (afterall, ‘things diverge statistically’ is hardly as memorable a concept as ‘survival of the fittest’), but in reality a lot of the biodiversity in the world is likely more attrituable to genetic drift than to selection pressures. Selection pressures only provide traits that are strictly functional in the creatures niche: simpler neutral mutations like differing plumage and skin colours, facial features, fur growth patterns and so on are almost certainly the result of genetic drift.
The two aren’t so easily distinguished from each other, though. They’re intertwined: genetic drift is a statistical effect of random mutation, which means it provides the raw material for natural selection to work with. If Evolution were a games industry, genetic drift would be the indie developers who put out loads of crazy original idea’s, while natural selection is the AAA industry who rarely contribute new idea’s but do take the best idea’s and refine them to be even better.
Genetic drift also provides an interesting counter point to the common anti-evolutionist claim that “natural selection reduces information”. The common answer to this claim is that mutation increases information, which is true, but doesn’t tell the whole story: as you can see in the first example above, is mutation was a simple, 1-dimensional measure it would only provide small amounts of new information. Genetic drift makes up the difference by providing new combinations of information, and is a major contributor to rapid evolutionary effects like Punctuated Equilibrium.
Oh, and a note about Species: Genetic Drift in Species has a tendency to drown out Natural Selection. If you reduce the Mutation Rate, you’re likely to see much more in the way of selection pressures.
With all that said…
The bright colours looked garish and kind of ugly. They didn’t look natural at all. But as I said in the comment thread this came up on, it would be go against my design philosophy to ‘fix’ the issue. The bright colours are a valid result of Genetic Drift: applying counter-biases towards less bright colours would amount to me preprogramming my own preferences into the simulation.
There’s another option, though:
The RGB representation is unnatural in and of itself. In nature, pigmentation is handled by chemical compounds of certain colours that are pushed to the surface of the skin. A chemically-accurate pigmentation simulation is beyond even my level of bio-programming masochism, but the point is that there is more than one way to represent colours: we’re not necessarily locked into using RGB.
An alternative solution is storing colours as Hue-Saturation-Luminosity. This would mean the genetic drift would seem less directed: similar numbers in HSL would still be less likely than differing ones, but they don’t have any sort of correlation to a specific tone or shade.
As the test above shows, randomised HSL colours have a much higher incidence of desaturated black, white and grey’s, and in general look a lot less circus-y and a lot more natural than the equivalent randomised RGB palette. HSL randomisation can still generate bright colours, but they’re less common.
Of course, there are always going to be problems. The increased incidence of black makes it difficult to make out body texture on quite a few creatures in the game, for example. But that’s something we can deal with via graphical upgrades, like gloss mapping.
0.6.0 uses a hue/sat/lum shader, and even though the difference is subtle, it’s noticeable if you’re looking for it.