Name a pig!

One of the kickstarter rewards will be to name a robot-pig that can race. I needed to setup a system that randomly generates shapes and colours for each race, and then picks 4 unique names from an array. The easiest way to do this to ensure no duplicates is to shuffle the array of names, then take out the first 4.

The basic material, using a Lerp node with 2 randomly generated colours, and a randomly chosen black and white pattern for the alpha.

I haven’t paid much notice to the aesthetic when building this setup, so currently it isn’t looking amazing, but the functionality is there to have repeating robot-pig races, with randomly selected colours and names.

And the video of the race is a scene capture camera, rendered to a texture:


Leave a Reply