Skip to main content

Generative Art with Unity



GENUARY is an artificially generated month of time where we build code that makes beautiful things. In 2021, I saw a co-worker participate and looked really cool. So I wanted to try it. Here are the prompts.

Preparing for this, I setup a few goals and guidelines for myself:

  1. Use Unity - I'm in PHP and web world too much, I wanted to have fun in Unity.
  2. Setup a framework so I can generate hundreds if not thousands of iterations at a go.
  3. Save Images of each iteration.
  4. Save whatever data I need so I can re-build each iteration if I want to go back to tweak, switch out color palettes or whatever.

I spent a lot more time with not too many results but I had a lot of fun doing it.

Jan 01

Draw 10,000 of something.

Generated Circles on a black background
Generated Circles on a black background
Generated Circles on a black background
Generated Circles on a black background

Jan 02


For this, I just used a custom shader to dither. Pretty interesting to learn about all the different ways to dither. The first image were test images in one of the linked articles. The second was a picture from an old trip to India.

Jan 03


I was originally going to just upload a black square to make it an easy day. But then I wanted to play with some shaders and see if I could get them to glow. Wish I had some more time to play with this, I wanted to get the "cloud" look, like the Milky Way, but ran out of time. Maybe another day.

Random spheres, sizes, colors and position.

Sapce - 195
Space - 196

Jan 04 - The next next Fidenza.

First, check out Tyler Hobbs and everything behind his Fidenza work. Its pretty crazy and cool.

For this I totally got lost (had fun) in flow fields and generating random meshes in Unity. A lot of fun but I spent too much time on the code side. I would love to spend time now on the actually visuals. All, the core pieces are there now so maybe I can return to this for another prompt later on.

First image is the final result.
Second, you can see how the image is generated. The spheres move, which gives me the points for the meshes.
Third, One of the first attempts, but the lines would get jagged half way through.
Fourth, more tweaking.
Fifth, even more tweaking.

Fidenza - 01
Fidenza - 03
Fidenza - 02
Fidenza - 04

Jan 05 - Destroy a square.

So this was fun! and quick.

Second is vertical destroyer.
Third is a destroyer from the left, with and without gravity.

Blocks in the middle of being destroyed

Jan 06 - Trade styles with a friend.

For the Space prompt I saw a lot of other people do "Solar Systems". I've always wanted to try and do our solar system in Unity. So for this I did completely Randomly Generated Solar Systems.

Jan 07 - Sol LeWitt Wall Drawing.

One of the links provided a prompt Sol LeWitt apparently gave to a class as a visiting artist and lecturer.

"On a wall surface, any
continuous stretch of wall,
using a hard pencil, place
fifty points at random.
The points should be evenly
distributed over the area
of the wall. All of the
points should be connected
by straight lines. "

I adapted this slightly. There are 50 points positioned at random but with a slight bias to the center of the image. Each point connects to the next and previous 2 points in the series.

Sol LeWitt 49
Sol LeWitt 53
Sol LeWitt 55
Sol LeWitt 56
Sol LeWitt 57

Jan 08 - Single curve only.

For this day, I just created random spline curves.

And now as you can see my month got a lot more busy... I had a few other days started and a few more ideas bouncing around in my head, but thats all to show here.

Related Tech