For my Nature of Code final project, I decided to try my hands at Unity 3D.
I want to create a Coral Reef Scenery, full of abundant variety of living creatures fish, turtles, crabs, sharks etc. I’d like to implement some Nature of Code to the project, by creating different school of fish ( flocking systems), current and random movers ( single fish/ sharks).
I think this is a great opportunity to practice both coding, as visual skills.
I find it a bit challenging, since I haven’t been using Unity a lot, and am not familiar with C#, but with a little help of tutorials I’m sure I will be able to figure something out. So far, I’ve created several flocking systems and some caustic effects. Still working on Sun shafts.
For my midterm project, I decided to explore relations between attractors & movers in the code. Fortunately, I had zillion ideas, unfortunately, also had way too less skills to achieve the result what I wanted.
Tried to play with fractals, processing and three.js,
Not everything was successful, but I definitely learned a lot
Finally, I decided to focus on the ‘attractor’ example and modify it to make a nice visual effect.
My goal was have a system of movers, flying randomly on the screen. Then, slowly, they were supposed to create a hidden image.
To make it happen, I prepared a few png & jpg files, that were about to be presented by movers. After importing them into p5, I wrote a nested loop, that iterates through each pixel of the image. Each one, having the RGB value bigger than 0 and smaller than 254 was meant to attract elements of the particle.
Once it finally worked, I decided to add some functions to the mouse and keyboard. I just wanted to totally mess up the drawing and redraw it again when the mouse is pressed.
The key changes the image to another one from the array. Once we reach the last one, we go back to the 1st one.
For our first week assignment, I decided to practice Random Walker and Noise.
Here’s what I came up with :
Later,I tried to experiment with steering walker toward different directions using mouseX and mouseY. Also, to add another feature i set up ‘keyPressed()’ to help centralize random walker in the middle of the screen again.