openFrameworks

XCode openFrameworks Templates

I have been using my own file templates for openFrameworks for a while now, but since I found out about this in China and was messing around with it on a train between Shanghai and Hangzhou I totally forgot about it. Recently people in class have been asking about creating classes in OF, so I’m taking this as an opportunity to fix some things I have been meaning to correct in my file templates and put them up for people to share/use.

These templates are file templates, if you’re looking for Project Templates Memo Akten has a great post on how to install his XCode project templates for both desktop and iphone. You can check that out here:

Memo’s iPhone Templates

To install these templates, you first need to create the following folder:
(Your Hard Disk)>>Library>>Application Support>>Developer>>Shared>>XCode>>File Templates

NOTE: This folder probably doesn’t exist yet, but this is the main place XCode will look for your templates. This is different than the Apple templates, which are in the following directory:

(Your Hard Disk)>>Developer>>Library>>XCode>>File Templates

This is a great place to look at the built in templates (this is how I figured out how to create these templates), but you shouldn’t modify these or depend on them because I believe they get changed when you update XCode.

The next step is to download the zip I’m including below and copy the files into your File templates folder (specified above).

Now if you go into XCode, open a project, right click on the SRC folder and select “Add>New File…” you’ll be presented with a dialog. You should see the category “User Templates” on the left, and under that “openFrameworks”. Click on “openFrameworks” and select “basicClass”. Hit “next”, name your class, and click “finish”.

You now should have a new OF/C++ class ready to go with the basic setup(), update() and draw() functions, header includes, definitions, etc.

Enjoy!

Files for Download:
openFrameworks File Templates

Continue reading » 2 Comments

New Work!

Here are a few things I have done recently, I think all for my setPixel class. My thesis work is in other posts and my data vis class is still getting rolling work-wise (expect a first project from there by next week), so most of the work I have done this semester is from this class.

I won’t go crazy into descriptions, but basically the images here use algorithms I wrote to accomplish “square-packing” and “circle-packing” by finding the largest square or circle that would fit in each image, drawing it, then finding the next largest, so on and so forth till the image is recreated using squares or circles. Really hard for me to figure out but the effect is awesome and was well worth the effort I think!

soup

soupsquares

soupcircles

These videos are made by averaging the pixels of two movies (The Darjeeling Limited) and reproducing the colors of the frames from every second of the movie. Really interesting how a movie as colorful as the Darjeeling Limited reduces to a lot of browns (most likely due to complimentary colors)

Continue reading » No comments

stringTheory

stringTheory from Steve Varga on Vimeo.

stringTheory is an experimental program I made that is not as much data vis as it is abstract data. Using the concept of String Theory (theoretical physics) to visualize my email, the program first shows everyone that has sent me email in the last year as particles within a group of atoms. Each node when rolled over shows the numer of emails this address has sent me as well as playing a tone based on this number. After clicking one of these nodes, that person’s messages are abstracted further as particles (protons & neutrons maybe? that doesn’t quite work yet but its loosely based…) which contain particles of the subject of the email. Rolling over one of the messages displays the message’s subject and plays a tone for each letter, with the timing based on the overall length of the subject and the tone of each letter based on both the message length and a value I’m giving to each letter.

The project uses PHP to collect my email to a MySQL database, then openFrameworks is used to grab a php file which generates XML from the database. This XML data is then used to drive the visuals.

The audio is generated by pushing OSC commands from openFrameworks to SuperCollider. The tones are somewhat harmonious but I’m just getting started with SuperCollider and I’d love to see what I can do with this data once I get a better understanding of the full power of super collider.

Overall I can already think of a lot more interesting things I could do with this but I’m super happy with the results so far….

Continue reading » No comments

Respond//React

Respond//React is a text messaging interface for openFrameworks. Software is written for S60 python on nokia N80 which first connects to a computer via bluetooth serial port and then receives messages and forwards them through the port. The messages are queued in the application and displayed one at a time every 15 seconds. Ideally this project would be presented as a mobile urban projection, allowing users to interact in a large public space.


Respond//React from Steve Varga on Vimeo.

Continue reading » No comments