
For my final project I played with particle systems and vector fields. Each element uses imported drawings rather than the dreaded circles. The numbers 1 through 6 control the different larger graphics that represent a varied selection of vector fields. One can move the individual elements by pressing any of those numbers and so can try to create different behaviors in the particles.
here is a first attempt of playing around with the spring system. it would seem i was more interested at first just playing with the aesthetics of it. lots of circles, i know, i know, but it was just playing around.
below is another attempt at playing with the spring code. I built the spring system based on the following diagram.
I did all kinds of stuff like having lines radiate from the particles, had ellipses based on the springs, added repulsion forces on timers so that they moved back and forth across the page, the mouse had an attraction force and would grab the first particle if the mouse was depressed -- this is what creates the entertaining stretching when the repulsion forces are moving the particles one way, but the mouse is keeping the first one in place.
Below is interaction with the original construct.
Below is how the shape first started. I then added supports through the exterior points since the shape would unwind itself.
This spring animation employs the slow increase and decrease of spring distance between particles. Using the same formation created for homework problem b, I then played with what it would be to expand these individual distances at varied rates and then bring it all back to the original shape. One issue that I discovered was when the particles would find themselves in the same space -- this causes the springs to vibrate out of control. I spent a great deal of time problem-solving this issue by adjusting the damping, the springiness, the rates at which the particles move, and also the level of repulsion that each particle would enact on another. It would seem that it is in an ok place now, but using the spacebar key to reset the particles and also using the cursor which has an attraction force on it both help to get the particles to calm down. Not exactly a creature, but was definitely
I finally succeeded in getting the ATAN rectangle to work with a particle system. Very pleased about that. The size of the rectangle is also dependent on the angle used in the ATAN formula. This makes the rectangles going to the left ful sized and the ones going the right quite small. I added a randomness to the separation force, as well. This makes some (only some) of the particles incredibly jumpy to be near other particles. The color is based on the particle's position in the vector with the most recently added particles being hot pink. Lastly, There are little X's that lead ahead of the particles since they are drawn in the particle class rather than the rectangle class that has the xeno on it. This creates a more interesting tension between the two pieces as one flies ahead and the other accelerates to meet it.
This interaction was created by setting the damping to be very high for this particle system. The repulsion force set for each of the particles evens the spacing back out no matter what the mouse pointer does. The "sparkling" effect was created by making the color and size of the particles dependent on the force being acted on it. Obviously, the particles being moved by the mouse position show the most change, but the rest of the particles will continue to to sparkle as their individual repulsion forces settle them back in position.
I'm pretty excited about this animation. Somewhere along the line, it finally clicked how I should incorporate the point recorder into the particle system. Just like the Atan, I felt like I was wasting a lot of time getting nowhere with it, but finally - triumph. To create this animation, I set an attraction force in the center of the screen and made the damping really low. This makes the particles pretty bouncy around the center of the screen. I then added the point recorder with rectangles of increasing size. There are some other little details in there, but that's the bulk of it.
So, I've been trying to do a number of different things to animate the particles. First of all, I was trying to add atan to the movement. I brought in the rectangle class and tried to borrow the code to get the rectangles to turn... not sucessful... at all. Oh well. In the meantime, I changed the colors, fill, size, etc. I was trying to get the shapes to be sensitive to the mouse, but unfortunately it again just didn't work out. I wanted to post this to show progress, but am going to begin anew with another example since I've kindof worked this one to the bone. I really wanted it to do the atan!
In this animation I was playing more with particles being part of a bezier curve. I seem to enjoy animations employing this. The particles are also shown as ellipses based on velocity. The color is based on x & y coordinates. I find some of the movements interesting - especially when I change the radius and strength or flip the force.
Ok, so this might not be characterized as my best work. I spent lots and lots of time fighting against a servo motor that was not working and then spent another equal amount of time constructing and deconstructing different lego contraptions. Ultimately, I ended up with this arrangement. Tried to add a little humor since I didn't quite capture fantastical movement.
This animation has taken my previous fireworks animation and added control by the potentiometer. The external input controls both the position on the screen along with the curve of the lines connecting the particles. I changed the line to a bezier and depending on the setting on the potentiometer, the curves are pulled differently. You can see this most visibly between the explosions in the top left corner and those in the bottom right.
Here was a second try at this assignment. I was able to incorporate a switch into the control panel.
Ok. Here is another try here. First of all, I based the animation on the spring system I developed for homework 11. Here's the breakdown: One potentiometer controls the downward gravitational sforce, one switch controls full screen, another potentiometer controls the color of the background. Frankly, I tried to control a lot of things (the distance between points, the damping, the rate at which they are moving) with the potentiometer, but it simply didn't work. So... I was able to improve with each try, but this is all I have at this point.... I'm pretty spent on this one.
I like the look of it, but it seemed to slow down a bit. Thinking it might not have liked the transparency being applied to every circle
Not exactly fireworks... although the particles are in there. I started playing with the shape of the particles -- making them into little triangles. I tried to rotate the little guys, but it did not exactly work out. Instead I just continued to play with manipulating force. It came out with a kind of unsettling animation, but kept it for effect. I added the lines to play with the sunburst effect. One vertex of the line was positioned at the initial (x,y) point and the other is attached to the (x,y) of the particle.
In this animation I was trying to recreate the floating feeling of bubbles. I played with changing the colors with each click, but ultimately ended up with a more simple blue and white animation since the changing colors began to make my head hurt. The lissajous was created through manipulating the sinusoidal information, of course.
my commentary
my commentary
my commentary
At the moment, my solution to this assignment looks like a drawing canvas. The second video incorporates color into the mix. I placed the ofSetColor() within the clear function for this one. I spent a little more time thinking about how to arrange the ofSetColor() function so that the color would not change for all of the lines. Set in the for loop which draws all of the point recorders, the color changes slowly in gradient. It is not stable for infinity, however -- it begins to stay at orange at a certain point, I think.
To create this animation I changed the point recorder to create circles instead of vertices. Also, I layered on another circle and set the timing a little differently by controlling the increments within the for loop.
I continued with the circle motif for the John Whitney-inspired animation. I played with sin and cos to control size and speed.
So... I got caught in the web of perpetual revisions. I experimented with a number of different movements, but frankly they were all a bit off.
Attempting to animate the motion of waves, I played with an array of bezier curves. Although not exactly like video of waves, I feel like the motion and the speed really gives the feeling of it. Here's the link to video of waves
Evaluation: I changed the speed setting down to 0.000005f. This variable was what slowed down the movement to a near standstill. It finally finished
the span after about 50 minutes and change.
::::: minute 0 :::::
::::: minute 15 :::::
::::: minute 32 :::::
::::: minute 40 :::::
::::: minute 48 :::::
::::: minute 52 :::::
Evaluation: I found that 0.047f was the fastest speed I could set the box while continuing to have smooth animation.
Evaluation: This one turned out to be successful, I think. The motion is what was requested, however I would like to start thinking more along aesthetic lines. I ended up leaving this one with exactly the same black background and green box.
Evaluation: I had some fun playing with this one although I would have like to have taken it further. I played with some transparency and tried to set another box inside as well as making the center of the box be 0 in terms of controlling the motion. In the end, I left it as a successful solution to the assignment, but one that could still be expanded upon.
Evaluation: There was certainly a moment when I thought I just might not get this one. Well, I think that I did. Yay. In addition, I varied the color and staggered the boxes. This one is a fun worm.
evaluation : next time I would set out to find footage with easier shapes to follow. there are some moments when you can see a fish moving through the masses, but unfortunately it can get a little muddy during other portions.