open knowledge community

Posts Tagged ‘c++’

#21 – OpenFrameworks workshop

This Sunday, May 23rd there will be an OpenFrameworks beginners workshop at SETUP in Utrecht (the new media lab at Neude). The workshop is a collaboration between OpenToko, OF Freakdays and Setup Utrecht.

OpenFrameworks is a free application framework designed for creative coding. It’s a c++ library designed to assist the creative process by providing a simple and intuitive framework for experimentation.

OpenFrameworks is designed to work as a general purpose glue, and wraps together several commonly used libraries under a tidy interface: openGL for graphics, rtAudio for audio input and output, freeType for fonts, freeImage for image input and output, quicktime for video playing and sequence grabbing.

The code is written to be both cross platform (PC, Mac, Linux, iPhone) and cross compiler. The API is designed to be minimal and easy to grasp. There are very few classes, and inside of those classes, there are very few functions.

The day starts at 10.00h with a ‘Introduction to OpenFrameworks’ lecture by Rick Companje followed by a talk by Diederick Huijbers showing the work he created at the OFLab in Breda at the Graphic Design Museum. The afternoon will be “hands-on” where everyone (beginners and experienced users, in groups or alone) can work on their own OpenFrameworks projects. Several experienced OpenFrameworks users will be there to help out.

Topics being adressed during the talks:

- What is OpenFrameworks and how to use it?
- Understanding the code examples and how to modify them for your own needs.
- How to use OpenFrameworks for text, audio, vector graphics, 3D graphics, vector math, images, movies, live video, xml files, hardware (ie. Arduino), network (ie. Open Sound Control), hi-res PDF or Illustrator output etc.
- We will teach you how to build a simple Particle System and also how to create some nice graphic design effects for creating printable posters.

Please bring a laptop with Mac OSX, Windows or Linux and download XCode (mac) or CodeBlocks (windows, linux) and download the OpenFrameworks version 0.061.

There will be coffee, tea and cookies and we will arrange a basic lunch. There is no fixed entrance fee but instead we ask you for a donation for what the knowlegde you gained is worth to you helping us to cover our expenses.

There is a maximum of 25 participants so please register now if you want to join.

Location: SETUP Utrecht, the old ABN-AMRO building at Neude 4, Utrecht
Date/time: May 23rd 2010 – 10.00h – 17.00h

Notes

SLIDES OF THE MORNING TUTORIAL

Things learnt during the Open Frameworks workshop at SETUP. In the morning we were working on a basic bouncing balls tutorial. Here are the final files that we worked on:

CONTROL PANEL

Remember that spiffy control panel?

IMAGE PROCESSING

Did you know there was a guy called Alfred Haar who was an incredible nerd already back in 1909? In Open Frameworks there is an extention of OpenCV’s capabilities called OFXCVHaarfinder (Open Frameworks eXtention Computer Vision Haarfinder). This is a general image recognition library. It’s general in the sense that you can teach it to recognise anything by training it. Show it a lot of faces, and it will start finding them after the training period.
When Sebastian told us about it, we thought he was talking about tracking hair..
Here you can download the extention to the OpenCV addon:
More about Alfred Haar:

FLOW DETECTION! <– google this!

One step further is working with Haar-Cascades. These are XML files that describe how detected objects are related to eachother. This make complicated relatios possible. For example, an arm should be attached to a body, which should be attached to a face, etc.
A list of XML files:
More on the Open Frameworks Forum:
Some piratepads we used:
Final code that Sebastian created:

AUDIO SYNTHESIS ADD-ON

Andre Michelle’s Pulsate; http://lab.andre-michelle.com/pulsate
Fancy opengl particle stuff from Sebastian:

SHADOW FIGHTER

Basicly an extended opencv example that throws particle at the blobs :-)
To get it running, copy the opencv example and paste the files.
#12 – OpenFrameworks 006

on May 2nd, Toko will be about Open Frameworks 6. Open Frameworks is a free application framework designed for “creative coding”. OpenFrameworks is written in C++ and runs on Windows, Mac OS X, Linux and iPhone. For more information and examples, go to http://www.openframeworks.cc. The day starts at 10.00h with a lecture by Rick Companje and possibly Theo Watson.

Topics that will be addressed are:
-getting started
-what’s new in Open Frameworks 6
-what is and isn’t Open Frameworks good at (yet)
-what can we do to improve OF

From 16.00h to 23.59h will be a working session. What you could do there is:
-start on a project and get some help
-get a project made in OF5 to work in OF6
-help improve OF
Send us an email if you have any request for any OF topics you would like us to deal with.

Toko is an initiative of Rick Companje, Diana Wildschut and Harmen Zijp. We are not a funded organisation. Toko is set up as a knowledge sharing community. We open our workshop to people who are interested in participating. Everybody is welcome and everybody should share the knowledge they have. Which doesn’t mean you have to know a lot to join. We ask you to make a donation for the food we cook and for what the knowledge you have gained from the workshop is worth to you. We also ask you to give us some topics about which you know something, so that next time you might be able to teach (part of) a Toko.

made with openFrameworks from openFrameworks on Vimeo.

Participants
*Harmen Zijp
*Diana Wildschut
*Edwin Dertien
*Rick Companje
*Jeroen Zijp
*Leo van der Veen
*Iris Douma
*Peter Uithoven
*Peter van der West
*Siert Wijnja
*Diederick Huijbers
*Adriaan Wormgoor
*Joey van der Bie
*Maarten van der Mark
*Bojhan Somers
*Tim Olden

===== Topics being investigated in the afternoon =====
*compile openFrameworks as 1 dll
*scrollwheel
*mouse warping addon
*005->006
*iphone
*webcam / opencv / objectherkenning
*3d
*physics
*geluidinput tone recognition
*codeblocks for mac

===== Notes taken in the morning =====
Diana wildschut, -> p progt pascal, maakt interactive video applicaties
rick zegt: vet. OpenToko.org -> wiki: post allemaal je spul daarop.
rick maakt accounts voor iedereen aan.

Harmen zijp, spullenmannen, programmeert basic -> pascal -> C, Programmeert vanuit scheikuundige simulaties. Alle projecten met steile leercurve. Toko als instrument om dingen te tackelen

Volgende toko communicatieprotocollen: twi, i2c, serieel, parallel, etc

====== Voorstelrondje ======
Rick Compagne, 2007 openframeworks, komt uit processing hoek, beperkingen (niet snel genoeg) OF probeert op processing te lijken. Gebruikersgroep groeit.

maarten – inf student, java C# , studeert mediatech, werkt met processing. Geen C++ ervaring. heeft een arduino gekocht. Kan vertellen over versiebeheer, svn, cvs. werkt bij NFI als wetenschappelijk programmeur, weet wat van imaging.

Joey, inf student, HS Rotterdam, eerste jaar Mediatech, kan java programmeren, web sites, web services. Papier machee -> hollebolle gijs. Enterprise java beans.

Diederik werkt als webdeveloper, php, flash, java, mediatech student, sparkle -> projectgroep, ontwikkelen game interfaces voor festivals, freetime. RooieRod.nl rolstoelen racespel. interactieve prullenbakken voor festival. Beeldverwerking, 3D, AR toolkit, wat ervaring met arduino, pic.

Peter van de West, Interaction design, eerste jaar. Phidgets, Actionscript3.. Interactieve animatie voor DJ met wiimote.

Bojan. eerste jaars interaction design, html css, geen diepe talen, research, design research, usability testing, dat soort gedoe.

Peter Uithoven, multimedia vormgeving, professioneel actionscript 3 prog,

Leo van Veen, amersfoort, bouwt interactieve isntallaties. eerst max/msp, nu Iphone. osc-remote voor iphone. Visuele dingen voro iphone,

Tim (interaction designer) Hilversum, HKU? programmeren beginner. director, max, jitter. vriend van theo watson. check of uit. Blender. sensor lab, phidgets interesse.

Adriaan wormgoor, Interaction design, freelance flash programmeur, game bedrijf, fysieke spelinstallaties. Beetje arduino proggen. Kan wat over flash, actionscript vertellen

Jeroen mbo elektro, HKU composition for the media. Stage bij spullenmannen.

Iris, interaction designer HKU. Interactieve media voor kinderen. heeft testsubject meegenomen, Low tech installaties. Werkt twee dagen medialab hogeschool amsterdam, Interdisciplinaire studententeams, UVA studenten (theorie) missen praktische achtergrond een beetje. Hoop veel voorbeelden etc. te zien en heeft Kira meegenomen

====== Demonstratie OpenFrameworks door Rick ======
virtueel mapje libs, met openframeworks spul.

void main() opent new window. Glut is window manager. voor iphone is andere.

F11 switch tussen CPP en headerfile
void setup: initialisatie

programma is eeuwige loop update -> draw

update: berekeningen
draw: tekenen (video)

framerate -> niet default gezet.

documentatie is achterhaald v. 0.03 oktober 2007 laatst ge-update
gaat boek over v. 0.06 komen

wiki.openframeworks.cc

waarom werkt openframeworks minder snel dan processing?
steilere leercurve, langer opzetten project, niet 1 play knop?
veel overhead -> dependencies?

Wat is het verschil tussen compileren en linken?

addon example
addon = plugin op openframeworks

tip, hou mapstructuur aan en copy-paste. Alle paden zijn relatief. Er lijkt jammergenoeg niet echt een betere optie…

codeblox project file bevat alle paden.. is xml, dus is wel te editen.

neem allAdonsExample -> zo dik mogelijk.. meest aangekleed.

vanuit emtpy project-> include cpp files. voor release en debug editie

addons.openframeworks.cc/projects

interessante sites:

http://www.k2.t.u-tokyo.ac.jp/members/alvaro/Khronos/
http://blendid.nl/index.php?id=22
http://www.youtube.com/activevision
http://vimeo.com/4353898

© opentoko.org Proudly Powered by WordPress. Theme Untitled I Designed by Ruby Entries (RSS) and Comments (RSS).