Monday, 16 May 2011

Another Idea

Okay, so Ive thought of an idea which I really like and think that I will use for project three. I thought of using nail polish bottles and hands to portray the idea of a while loops.  So, what will happen is that the bottles will paint a  hand each repeatedly until all the bottle have been used/seen. The bottles are repeating painting the same hands but with different colours. So to display this I will do a stop motion video and use photoshop to edit. I will also use the programs Imovie and garage band to help develop my project.

Ideas for Project Three

Idea One: Blow up a balloon till the point where it pops. This would be showing a while loop more than if/else. So the balloon would be getting repeatedly blowing up with air until it pops which will make this statement false. I could make a stop motion movie to this or even a timeline. This could be a very good way in showing a while loop. I would need to get ballons and also a pump. I have a camera I can borrow froma friend or from uni, so Id only need money for printing and also the balloons and pump. I dont wanna spend more than $40

Idea Two:  Make a game. Have balls rolling around inside of a box that has holes in the bottom of it. So you would move it aroud to try get the balls in the holes. This will turn false when there are no more balls left. I would need to go and work in the workshop to complete some of this project. I would not spend more the $40 on this. I would only have to get would and some balls.

Idea Three: Have a bucket and a bunch of balls. This is showing a while loop. You will put the balls into the bucket until it becomes full that no more balls can fit which means this statement becomes false. I will need to buy a bucket and some balls. I could also present my model with a timeline behind it also showing the bucket filling up with balls. Spend no more than $40.

Project Three - Codes

 I have changed my coding term again and have decided to use while loops as I have a lot more ideas for it.

http://www.openprocessing.org/visuals/?visualID=8184

http://www.openprocessing.org/visuals/?visualID=5609




I have decided to use " if/else" as my coding term.
Definition: Extends the if() structure allowing the program to choose between two or more block of code. It specifies a block of code to execute when the expression in if() is false. (Processing)

Monday, 9 May 2011

My Programming Term

I have decided I will use "while loops". "While loops are the most fundamental form of a loop and are an easy way to achieve most repetitive task. There are two parts of a while loop. The condition and the body (the code contained by the loop)The condition of the loop is essentially what tells the loop when to stop running, if the loop never stops running your computer will crash".

Project Three

For project three we have to choose  a basic coding operation and by creating a metaphor and present it in a way spectators are able to understand it. So I can use variables, loops, arrays, if/else, function and loops. I will have to research more into these and find the best one I think I can achieve well in. I cannot use any text or words spoken. I dont have to use code. I can present it in the exhibition however I want.. but in a way the spectators can understand it. So can be a group of images, poster, a movie, a game or whatever.

Sunday, 1 May 2011

Screen Shot of Final


Screen shot of Final sketch.

Progress over the holidays

Final Sketch: http://www.openprocessing.org/visuals/?visualID=27933

I have been having a bit of trouble with getting the balloons to fall down separately as them seem to fall down and bounce at the same time which doesn't look too effective. I found the code which has helped me in that situation.

Now, moving onto making the balloons "Pop!!"  I know this was going to be a challenge as I had no idea whats so ever. So I had to similar it own to how much I could understand. So I decided to just make the balloons disappear when they touch the bottom of the screen. When I did this, I realized that when the first balloon touched the bottom of the screen, all the balloons disappeared! So I had to rearrange the code so it would delete one balloon if it touch the bottom of the screen not if one touched the bottom of the screen it would delete all of them.

Then, I moved onto sound. This something I thought I was going to have trouble with. Turns out it was rather simple. I had to add some simple code that everyone uses for making sound. Then I went onto youtube and found heaps of popping balloon sounds. I then edited to suit me in garage band which was useful. I had trouble exporting it as wav. So then found a site "converter" to convert my mp4 to a .wav. I had recently tried putting in the sound but it didn't seem to find the file. So i converted the file again. This time it worked which I was really proud of.

So I had the ballons falling down and popping if they touched the bottom of the screen. I also has the sound of popping  happening. All I had to do then was to make my sketch interactive.

Adding interaction was something i thought was going to be difficult. I had a meeting with Ben and it was actually really simple. All I had to do was this (if(dist(mouseX,mouseY,x,y)<50){
      speedY = -abs(speedY);) This made my sketch interactive.

My Final Sketch: So I have created a balloon popping sketch which uses sound and which is also interactive. When I first had a play on the final, I found it quite entertaining because it was a bit of a challenge to keep the balloons up! Its a sketch you will definitely enjoy!