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:

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:

14 Responses to “openframeworks, una introducción”

  1. enrike Says:

    is there any link where to download the libraries from ? the http://www.openframeworks.cc is just a semi empty page yet …

  2. jesus gollonet Says:

    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.

  3. abstractmachine » openframeworks Says:

    […] 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. […]

  4. zach Says:

    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

  5. Software over the rainbow » Blog Archive » emulating toshio iwai Says:

    […] Thanks to the magic of openframeworks, it is realtime video. […]

  6. luke Says:

    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

  7. jesus gollonet Says:

    I know it keeps coming, but as zach said “as soon as humanly possible”

  8. janebeta7 Says:

    interesante Jesús, es como aprender C++ pero compactado? no se bien , y para que lo estas aplicando ahora? para el hijo?
    mua

  9. jesus gollonet Says:

    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 :)

  10. what’s openframeworks? « Lectio’s Weblog Says:

    […] 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. […]

  11. Gabriel Says:

    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

  12. jesus gollonet Says:

    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!

  13. Gabriel Says:

    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.

  14. lopz Says:

    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!

Leave a Reply