Wednesday 27 February 2013

Processing experiments with flocking

For the past 2 days I have been intensively into Processing. I've spent about 20 hours out of the past 48 coding.
The result has been that I've created a few Processing sketches, all on the subject of "flocking". Each of the boids detects the proximity of its peers and steers towards the average direction of the "flock". They also repel each other, and attract towards each other to form the "flocks". When the boids collide they both take a new vector of the average sum of the previous ones.
For some of these sketches, colour is controlled by the weighted number of nearby boids, some of them alpha is the attribute thats modified, and for all of them diameter/size is also controlled by size of the flock.

For colourising the main 3D sketches I mapped the boids location in 3D space to control the values of RGB. There is also basic user interface for the 3D sketches, allowing the user to change colour modes between B&W, Blue & Black, and Rainbow, and to change the camera mode between spiral rotation, level rotation, and mouse rotation. There is also facility to pause the camera so the user may examine the flocking inside the cube.
The 2D sketches respond to mouse gestures and the boids repel away from the mouse.

Also most of the 2D sketches are js compatible and you can view one of them here, its #04.

I used heavily modified code from these locations:
http://www.openprocessing.org/sketch/47022
http://processing.org/learning/topics/flocking.html


3D sketches


Video of 3D Flocking Demo


2D sketches

Monday 25 February 2013

More work done on hexagon page

So...
I'm back at uni and working hard again.
Today a bit more work was done on Arcc.cc, specifically the hexagon page (link for the lazy). It still has a couple of small pieces of code that need to be written (or rewritten) but overall its functionality is acceptable.

Breakdown of changes:
1. Switched from iframes to javascript.
  • Removes the reliance on openprocessing.com.
  • Faster load times.
  • No java applet permission requests as it draws straight to canvas.

2. Changed from a straight up layout to request and interaction based, also changed the size of sketches.
  • Gives a more clear place for viewing.
  • No more confusion and scrolling.
  • Borders to know that happens when you click a navigation button.
  • Allows for more organisation and layout, and sets a set size for sketches.
  • Con - the change of size of one sketch causes quite intensive load (this is due to the sketch itself as well as the fact that it is being drawn in a browser).

3. Implemented JQuery.
  • Can modify content on the page much, much easier.
  • Quickly implemented and can be quickly added to.


What I learned from today (in chronological order):
  • My Web Development class is not nearly as fast paced and awesome as my Internet Art class.
  • Hackertyper.net is good for trolling other students who aren't as computer literate as I am.
  • JQuery is AWESOME! and can do all the things.
  • Revere Occam's Razor. It is your god.

Sunday 3 February 2013

Another interesting method of drawing

This is a very interesting method of drawing on this site.

http://www.koalastothemax.com

Falling

http://www.fallingfalling.com

This site piqued my interest tonight mainly due to the sound. the frequency of it seems to be constantly falling. I think I'll investigate this phenomena in a project this year.