Nature of Code final


When I was 9 or 10, my parents took me snorkeling over a reef, and I’ve loved coral ever since. It’s beautiful, it’s fractal, and sometimes it’s even funny. If you’ve ever seen one suddenly retract, you know what I mean.

So, my final will be a sketch with an interactive coral and a sea of particles. Er, fish.

Ocean currents and fish schooling will be simulated by flocking and steering algorithms. When they get too close to the coral, it will suddenly retract and startle (repel) the fish! The retraction works on a delay, so if any fish manage to reach the coral, they will be “stunned” and go belly-up, then float to the surface. You can guide the fish by creating temporary attractors, of variable strength/duration.

Coral reef as portrayed by a certain popular animated children’s movie:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s