openframeworks, una introducción
La semana pasada estuve en un taller de dos días sobre openframeworks, impartido por Zach Lieberman en hangar.
Como ya hemos dicho por aquí (y en otros sitios), openframeworks es una librería open-source que pretende ayudar a artistas y estudiantes a trabajar con código en c++. Si, puede que te suene familiar. Su filosofía e intenciones son muy similares a las de processing.
Sin embargo, openframeworks no es una IDE, sino una colección coherente de envoltorios (no me mireis así, es la traducción que he encontrado de wrappers) alrededor de unas cuantas librerías útiles. Tal y como dice zach, es más un pegamento que une diferentes piezas, a saber:
- OpenGL para mostrar gráficos,
- FreeImage para manipulación de imágenes,
- Freetype para mostrar y manipular fuentes,
- rtAudio para audio.
- Quicktime (mac o pc), directShow (pc) y (pronto) Video4Linux (linux) para captura y reproducción de vídeo
Algunos de los conceptos clave tras openframeworks:
- Su finalidad es simplificar las cosas. La intención principal es que “no tengas que mirar mucho código cuando estás comenzando” (que es de todo menos fácil en c++).
- Está conformado por piezas reusables, no interdependientes. Puedes usar cualquiera de sus partes sin tener que usar todas las demás.
- Pretende proveerte acceso lo más directo a datos e.g: pixels de una imagen, audio de bajo nivel…
He estado usándolo el último par de meses. Nunca había hecho nada con c++ ni tenía ni idea de como empezar. Openframeworks definitivamente ha hecho que la curva de aprendizaje sea mucho más suave. Siendo un lenguaje que existe desde hace siglos, c++ tiene un montón de detalles truculentos por los que preocuparse (punteros vs variables, preprocesador, diferentes compiladores, IDEs incompatibles…), por lo que tener una especie de plantilla que comparte algunos de los conceptos de programación de processing te hace sentir un poco más como en casa.
Aunque se ha usado frecuentemente para dar talleres y clases, está en versión super-alpha (incluso el proceso de instalación se estaba testando en nuestro workshop). Zach está trabajando con Theo Watson en una release para publicar muy muy pronto. La mayoría de cosas funcionará en win, mac y linux.
Así que permanece atento.
Edit: No me había dado cuenta de que daniel julià ha contado casi lo mismo. Me lo podría haber ahorrado :)
tags:c++ creative code hangar openframeworks workshop zach lieberman
January 23rd, 2007 at 1:06 pm
is there any link where to download the libraries from ? the http://www.openframeworks.cc is just a semi empty page yet …
January 23rd, 2007 at 4:31 pm
if you want to have a look at the libraries you can download openframeworks.zip from this page
[edit:have a look at zach’s comment for latest code]
(which was ultra-quickly put together before the workshop). the installation instructions are for dev-c++ but I guess they’re somewhat confusing… (I can help with it though)
you can also check
http://muonics.net/blog/?postid=4
with an older version and some examples…
However, things are changing quickly, so I’d wait for a proper release. It’s coming really (no, really) soon.
January 23rd, 2007 at 4:51 pm
[…] If you’re coming to this from somewhere else than Processingblogs, and you’re interested in code, then you might want to check out Jesús Gollonet’s recent post about openframeworks. […]
January 27th, 2007 at 6:37 pm
hi -
you can check out the links jesus posted (with the dev-c++) version, but the most current code is on the SVN here
http://www.openframeworks.cc/admin/index.fcgi/browser
and I promise (as jesus does too) that the release is coming as soon as humanly possible. There are 1 or 2 outstanding issues including finalizing the API (so that it doesn’t change too much) and some helpful features (like adding textures to the ofImage and ofQuicktime classes), and then some instructions and documentation to make, but the release is almost out the door now, and we the quality will be high.
thanks for the patience, really, and I promise that openframeworks.cc will come alive soon, and invite you to participate when it does.
- zach
February 11th, 2007 at 10:08 pm
[…] Thanks to the magic of openframeworks, it is realtime video. […]
February 21st, 2007 at 11:36 pm
any new updates on the openframeworks code, i am on osx with xcode.
it just sounds so cool, i cant wait to try it out.
thanks
luke
February 23rd, 2007 at 1:51 pm
I know it keeps coming, but as zach said “as soon as humanly possible”
March 28th, 2007 at 11:29 pm
interesante Jesús, es como aprender C++ pero compactado? no se bien , y para que lo estas aplicando ahora? para el hijo?
mua
March 31st, 2007 at 8:47 pm
openframeworks es a c++ lo que processing a java, en el sentido de que lo que ofrece son atajos para el lenguaje, así que como en processing, no dejas de estar escribiendo c++.
desde luego te aconsejaría q lo probaras.
y si, el hijo lo estamos fabricando con esto :)
January 30th, 2008 at 5:00 pm
[…] I’m not an expert so posible not the best person to talk about openframeworks. You can get all the information at the openframework’s homepage and also here. […]
April 27th, 2008 at 9:52 pm
Hi,
I work at Medialab-Prado and I would like to see and learn a bit of C++ through openFrameworks. I have seen the svn with the ssh, but it ask me for the passwork. Can anyone tell me how can I download it.
Million thanks
April 28th, 2008 at 11:21 pm
hey gabriel, sorry I didn’t see your comment until today.
you can download openframeworks at
http://openframeworks.cc/download
and ask any question you have at the forum
http://openframeworks.cc/forum
best!
April 29th, 2008 at 9:18 am
Hola Jesús,
Thanks a lot for the link, as soon I have a bit of time I would take a look on openFramewoks….
Hasta entonces
Saludos.
June 12th, 2009 at 2:48 am
Hola,
Yo recién voy 1 día xD
Lástima que aquí no se imparten este tipo de cursos ni reuniones :(
Pero con la buena doc de la API en su web y el foro solo queda practicar.
Saludos!