Sunday, 29 May 2011

Project 3 Final

I've gotten it working heaps better now with photos instead of clips. Also got the button's corners trimmed so it looks nicer. Still cant put it on openprocessing due to it imploding, (dont ask,) which may be due to the size of the applet. Or because it needs more memory to run. To be safe I crank it up to 1024MB, which allows it to work fine. I'll drop it in the R drive along with a couple screenshots.

Chilling - ScreenShot (Default)

 Booing - ScreenShots (Pop Crap)


 Moshing - ScreenShots (METAL!!!!!!!!!!!!!!)

Thursday, 26 May 2011

YES!!

With Tim's help, it runs a lot better, but now I think stop motion will look better. A little code rewrite and another photo session and it will be heaps better. Also gotta trim the corners of my buttons by converting to gif.

Mosh If/Else program problems...

I've been having a lot of trouble getting the .mov files to run smoothly on Processing. Otherwise, I've pretty much succeeded. However, if I cannot resolve this lag issue, I am considering converting my project to video and salvaging what I can. It does work, but barely, and it has just failed to be uploaded to openProcessing, or I would've posted a link.

I'll have a talk to the tutors and see what they recommend to do next.

200-300 Word description of Project 3


IF / ELSE Interpretation

Taking the idea of “headbanging” or “moshing” to symbolise a loop, I tried to see how Processing would interpret the conditions. It was clear that If and Else would work a lot better than While.


In pseudo code, I came up with the following:

If (musicIsPlaying and musicIsMetal) {
Then play video of moshing;
}
Else if (musicIsPlaying and musicIsNotMetal) {
Then play video of booing;
}
Else {
Then show photos, in a stop-motion like manner, of waiting;
}


Basically I wanted to show that when the code was run, Processing would check if there was music playing and if there was, then it would check to see if it was good music (anything heavy/metal). If it met both of those conditions, then it would play a video of a MetalHead moshing or headbanging. Keeping with my original idea of a loop, I went with the less traditional “windmilling”, or “circle” headbanging. However, if the music playing was crap, (pop music or anything similar,) then it would show a video of the same Metaller booing (or showing general displeasure).  By default, or when no music was playing, it would show a series of photos with the same Bogan waiting (arms crossed, tapping his foot).


I added 2 buttons, giving the user a little control. The first is a Play button which, once clicked, would become the stop button. Once playing, the second button (Skip), would randomly select a new track and play it, causing the program to check again if the music is metal or not and play the appropriate clip.


Once play was clicked, the code would keep running until the user clicked Stop or exit the program. The program would select a new sample when the previous one ends or when the user clicks Skip.

Wednesday, 18 May 2011

Storyboard Presentation

My board is too big to fit in the scanner, but the important stuff came through.

I had intended to do the light switch with motion detectors but I cannot think of a way to make it interesting. The only thought on that regard is to use the Xbox 360 Kinect and set up an LED display to recreate the motion it sees. In terms of time, I am unable to pull this off as far as I can tell. Instead I am going back to the moshing program. I hope to have a rough outline for Friday night so I can ask our tutors for their opinion. Stop-motion photos, short video segments; which would load the best without delay.

Either a small clip to be looped for each state (Mosh, Boo, Wait),
or multiple photos for each state.

Then over the weekend I should be able to get this code running for testing Monday onwards. I'm feeling like it'll need more user interaction, perhaps some buttons for controls rather than clicking with the mouse?

Thursday, 5 May 2011

Project 3 - Further Idea Development

Based on blowing up a balloon, another idea could be:

If ( balloonDiameter < 20 ) {
balloonDiameter++;
}
Else {
balloon.pop();
}

or something like this?

If Else Description

If ( something is true ) then {
do this
}
otherwise if ( something else is true ) then {
do this instead
}
otherwise {
do this instead
}

This is my understanding of how If/Else works, or rather, how If / Else If / Else works.

The Littlest Robot uses a count system. ( Each time through the If/Else loop, the count is incremented (+1)).

By modifying the condition of the if statement, the whole 'story' is changed. Each change is dictated by the count or by 'how long the code has been running'. By changing the condition of when events occur, the story becomes changes, affecting the order of events and when they occur.

The Dungeon uses a user initiated If/Else system. By clicking certain 'buttons', the if/else triggers different events (or pages in this case,)  based on the previous events (or page). This is a very good example of If/Else.

Alice and Mad Hatter's Maze is very simlar to the dungeon. It uses mouseOver to highlight when clicking the mouse will trigger an event. Not as in depth or interesting, but still shows the basis of the If/Else.

Zombie in Wonderland . Very similar to the previous 2, but text based only. Very interesting though. The dungeon is based on this code.

Modifying either of the previous 3 codes just messes with the program. It just stops working or stops making sense.