Showing posts with label Procedural Generation. Show all posts
Showing posts with label Procedural Generation. Show all posts

29.1.09

Wii with the World

Last semester I made this crazy web app for my final electroacoustic techniques course. The core idea is audience participation through interactive web design. Audience members that navigate to the webpage (hosted on my laptop) are greeted with an avatar that they can name, move around, and click on. All of their actions are recorded and sent back to the php server. Those actions are then sent to the other clients as updates.

Clicking on your avatar not only plays a sound on your laptop, but also plays a sound on the laptops of whomever is nearby you in the virtual space. Additionally, the click registers with the SuperCollider server running on my laptop, which responds by playing audio through the house speakers. The project includes:

  • A SuperCollider Program that procedurally generates melodies based on audience input and on wii audio samples transposed along the pentatonic scale.
  • A PHP Server that both hosts the website and keeps track each audience member's actions in virtual space
  • A simple HTML/CSS webpage
  • A Javascript interface that allows avatar 'mii's to be clicked, dragged, and updated inside a virtual playing field. Musical note graphics give user feedback when each of their respect laptops are playing sound. Implemented using JQuery.
  • JSON packets sent to each client notifying them of other virtual audience members' actions
  • A Flash player that plays the audio, triggered by Javascript events.
This incredible amount of work was done not only by me, but also by Phil Harnish. Special thanks goes out to all the beta testers that had to deal with some really buggy code. If you're interested you can download the source code here.

23.2.08

Procedural Video Games

Things have been quiet on my end as I ramp up for next week. At the moment I'm reaching you from the Western timezone: I've been in San Jose for the past couple days attending Google's Workshop for Women (more posts to follow on that). Among other things, I've been asked to give a presentation at Cornell's annual technology conference, Bits On Our Mind, or BOOM. I'll be giving a talk on Procedural Generation and how it relates specifically to video games and the new video game Spore, slated to be released in the US September 2008.

Since the talk will be given to ~100 high school students, I've left out all the intricate algorithms in favor of video game trailers. Here are some of the videos I'll be using:







Procedural Generation is a way of creating objects in video games using algorithms. This is especially useful if you want to create lots and lots of objects. These objects (such as buildings or trees) might take forever for humans to make one by one, but an algorithm can create thousands of these objects with minimal effort. The Game Beta .kkreiger is a quintessential example of procedural generation in action. Since the level, textures, and enemies are all created procedurally, the game in total is a mere 96kb. That means it could fit on a floppy disk. Here's a download link to try the game out if you'd like to see it in action.