Thoughts and musings of Peter Kupfer

+menu-


  • Category Archives Video Games
  • Angry Birds & Physics

    For a while I have been trying to think of ways to incorporate Rovio’s fantastic game Angry Birds into my physics class. On twitter today a tweet sent me to the Sweeny Math blog to a post about using Geogebra to analyze Angry Birds. In short Mr. Sweeny had his students analyze the trajectory of an Angry Birds launch (I think he must have done a screen shot post launch) and then let Geogebra find the curve fit of the line. Now, I have been working Geogebra this year and really find that it is a powerful program for analyzing mathematical systems, but I don’t know that it is best tool for analyzing an Angry Birds video.

    For analyzing video in class (and for fun) we use a freeware program called Tracker. Tracker is a pretty amazing program especially considering software of this quality can cost a lot of money and still not be as good as Tracker is. I didn’t really have a project in mind, so I decided to jump into this analysis as an open-ended question which are becoming all the rage in science classes. So, I went to YouTube to download an Angry Birds video. (I downloaded the video using Easy YouTube Video Downloader which is a FireFox Add-On.)

    The basic premise of Tracker is that you click on a spot of an object for every frame of a video and Tracker than turns the grid of the video into an x-y coordinate plane and can compute the displacement and velocity of an object. Here is how the Tracker screen looked after I finished clicking:

    Angry Birds Image with Tracks

    So, now I wanted to get some data. This is where Tracker is awesome.

    Angry Birds Launch xvt & yvt

    Angry Birds Launch Vx v t & Vy v t

    So, these graphs show the shapes and relationships that we would expect from a projectile launch: Constant velocity in the x-direction and acceleration in the y-direction. However, now, I wanted to do some analysis of the accuracy of the program. So, from here I was going to treat this first video as a control and assume that it was correct. In order for Tracker to return numerical data the scale of the video has to be set so that the program knows how “large” each pixel should be.

    I tried to find an object in the video that would always be the same and so I settled on one of the yellow birds. I adjusted the size of the bird until the slope of the Vy v. t graph was -9.81 which should the acceleration of gravity.

    Angry Birds -- Define the Schale with the Yellow Bird Angry Birds - Vy v t Graph for Yellow Bird

    In order to test if other objects on the screen would follow the same behavior, I tracked the motion of one of the falling pigs.


    Angry Birds -- Falling Big Angry Birds -- Vy v t -- Falling Pig

    So, the acceleration of the pig was the same as the yellow bird, so it seems to work out.

    From here I’m not sure where I would go next, one problem I can see is that depending on the zoom of the level I don’t know if I could use the same size of the yellow bird consistently between videos. I think if I could zoom in the closest level in each video in the game then I could use the yellow bird size across videos. After writing this post, I found that A Professor of Physics at Southeastern Louisiana University tackled this same issue and came to similar conclusions, but didn’t really provide any revelations into the issue of zooming in on the bird. He did remind me Tracker’s ability to track motion of a panning video, which may help since all of the Rovio videos on YouTube start with the default zoom. He did try to include a little more quantitative analysis in his second Angry Bird’s analysis, but made the assumptions as before. (In case you haven’t seen enough, here is a similar analysis of Super Mario Brothers.)

    The next experiment I want to try is to determine the mass of the birds. This video wouldn’t work well for it, but if you could assume the density of the rock barriers and then find the volume (find the height and width using the scale and the assume the depth) then you could find the mass of the rock barriers and using the conservation of momentum you could find the mass of the bird. I am sure there are other ways to go, but that would be a fun start.

    Here is the final result:


  • Wii Review: Learning with the Poo-Yoos

    While playing Super Mario Galaxy 2 last week, little Isaac wanted to get involved and kept taking my Wiimote to play the “mouse game.” (Somehow he mistook Mario for Mickey Mouse.) While this was cute and all, it made me want to find him a Wii game of his own to play with and learn how to use the Wiimote and possibly let me play my game in peace.

    After looking at a few choices I settled on a WiiWare game called Learning with the PooYoos.

    Learning with the PooYoos is a game developed in France and available via WiiWare download on the Wii for 500 points ($5.00). The game is designed with two different levels: Little PooYoos (ages 3-4) and Big PooYoos (ages 5-6). Given the age levels, the graphics and catchy theme song are perfect and will capture the young players’ attention. After you pick you level, there are two different games to play. One involves matching the shape of a PooYoo with the shape in a cloud (first picture below) and the second involved popping balloons with the water from the elephant PooYoo’s trunk.

    [adsense]

    Isaac can not yet handle the shape matching game so I can’t speak as much to that part of the game, but we have played the balloon popping game several times. In the little PooYoo level of this game the player simply shakes the remote and the elephant PooYoo shoots water at balloons until they are all gone. (As shown in the video of Isaac below.) In the Big PooYoo level, the player actually has to point the Wiimote at the screen and aim at the balloons to pop them.

    After you pop the balloons the first time, the game has an intermission and asks what shape the balloons were and then goes through a second round of balloon popping followed by a question of what color the balloons were. Then the PooYoos lead you through a nice dance routine. During the dance routine, by pressing different buttons on the Wiimote various effects happen on screen like spot lights, confetti and other fun. After the dance, you take a boat ride where again, pressing buttons on the Wiimote causes different effects on the screen. Isaac especially enjoys pushing the buttons and causing lights and the sun (a fan to him) to go across the screen.

    Isaac has not played the big PooYoo level, but he enjoys the little PooYoo level quite a lot. Simply shaking the remote is a nice way for him to learn about the cause and effect relationship of the Wii. As I said, he truly enjoys pushing the buttons on the Wiimote that cause various visual effects to appear on the screen.

    My biggest complaint with the game is that the few questions it asks are always the same. At one point the game asks what color the bubbles are or what color an umbrella was but the answer is always the same color. I would like it better if the color would rotate to make Isaac think a little more. There is a version 2 released, but I have not looked at it yet.

    Ultimately, this game did exactly what I wanted it to do, especially for only $5.oo. Isaac is able to use the Wiimote and learn how it works. He is learning more about cause and effect relationships and a little about hand-eye coordination. Another learning piece I didn’t think about was that it counts on screen and out load to help re-enforce math skills. I have a feeling I will download the second episode before the end of the summer for Isaac to play. If you have a two – six year old who you want to introduce to the world of Wii, this is the game for you.

    [adsense]


  • Blog Credibility is Growing

    I don’t like to brag or anthing, but the credibility of my blog is growing. I was looking through the referring sites to my blog and I found that I have been cited as a source in a debate about video games. As a former collegiate debater at Northern Illinois University, I was thrilled to be included in as a source.

    http://www.debate.org/debate/8093/

    Debate.org | Video games have had an overall positive impact on society. via kwout

    I realize that this is just some guy borrowing my blog post to help support an argument and that my post has know actual authority to it beyond my personal experience, but the reason I do this blog thing is to be a part of the internet community and share what I am thinking. So, it is exciting when what you are sharing is used and shared by others. It makes the world feel smaller and make me feel like a member of a larger community.


  • Video Game Driving School — More Dexterity

    I had an odd/potentially scary realization while driving the other day. I had to change lanes across three lanes to get into the right turn lane in front of Hawthorn mall. This was during the snow and there was a fair amount of traffic. Well while I was crossing these three lanes, rather quickly, and checking my blind spots and mirrors this car in front of my splashed a bunch of slush onto the windshield and I had to push the windshield washer cleaner button while turning on the turn signal while maintaining a decent speed so as not to get rear ended and then negatively accelerating :) quickly because I still had to turn.

    Now, this is not a horribly dramatic situation, but it was a lot of things happening at once and I handled it all in stride without even really flinching, and I honestly think it was because I have been playing a lot of Mario Kart lately. Continue reading 


  • Is playing Mario Kart Wiiii. Now I get to unleash some stress on Toad!

    Is playing mario kart Wiiii. I haven’t been able to play all week. Now I get to unleash some stress on Toad! Oh how I loathe him…

    This Tweet got a lot of comment on Facebook, so I wanted to clarify why I despise Toad so much. You see, for years Toad has taunted me by placing my princess in another castle. I busted my butt to get through goombas, beatles, and other varieties of baddies all to find out it was a farce. Also, other times he has just been whiny. “Find the princess, she is lost” or “You need more star power to open this door,” give me a break!

    So, that is why I despise Toad. The only expception is when Gina plays Mario Kart using Toad. Then I don’t have a strong hated towards him.