If you have a question about a post, feel free to reach out!

Through the Streets of Rome

È passato ormai quasi un anno da quando ho iniziato ad interessarmi concretamente al mondo della Data Visualization, seguendo un breve corso alla RUFA intitolato Open and Big Data Visualization: L’estetica dei flussi.

Da quel corso di 8 lezioni ne è poi uscito fuori un piccolo spunto per il mio progetto finale, “I trasporti”, che ho iniziato a portare con me anche dopo la presentazione finale del corso. Sono un pendolare praticamente fin da quando ho finito il liceo e ho sempre preferito il trasporto pubblico a quello privato. Non per chissà quale vezzo “comunitario”, ma semplicemente perché viaggiare sui mezzi mi ha sempre dato la possibilità di ottimizzare il mio tempo: leggendo, studiando – spesso lavorando – durante quei piccoli intermezzi tra un pit stop e l’altro. Il progetto che presento qui è frutto proprio di questo: 1 anno di lavoro inframmezzato, spezzato, realizzato a tratti tra mille gadget tecnologici diversi (laptop, tablet, smartphone, carta e penna..) tra mille lavori diversi, sul caro Freccia Nera Velletri – Roma. Nasceva come visualizzazione interattiva orientata al web (D3js), più focalizzata sulla tecnica che su altro. Poi si è evoluto con me, dopo che ho iniziato a conoscere sempre di più il mondo del design generativo, fino ad approdare su un software totalmente diverso: Houdini. Così è fuggita via l’interattività a favore di una maggiore libertà durante il processo creativo. Ne è cambiata anche la finalità: un lavoro un po’ più improntato sull’informare e comunicare piuttosto che sul trasmettere.

Read more  ↩︎

Importing Kinect's point clouds in Houdini

Hi guys!

Just to let you know, this year we’re facing an extremely hot summer here in Italy (50 degrees in some cities!), so as you would image sitting all day in front of a screen is getting quite challenging.. nonetheless, I’m still too excited about learning Houdini to stop my researches! This time I picked up an old time classic from the interactive world, the Kinect , and I wanted to push it a little forward. I wanted to import point cloud animations into Houdini, and manipulate them in all the magical ways that this software lets us do.

Exporting .ply from Openframeworks

As a first step, you need to create the point cloud animation by recording the kinect data.

I’m using OpenFrameworks in order to connect with the Kinect and export a binary .ply file for each frame received.

On my github repo you’ll find the code, which is very easy and mostly grabbed online and from the examples of the official library. A .ply file contains a header and a list of x,y,z position for each point. The header structure can be seen from https://en.wikipedia.org/wiki/PLY_(file_format) and the list of points in our case was supplied as stream of bytes (see https://stackoverflow.com/questions/20400128/how-to-write-a-file-byte-by-byte-using-c)).

Read more  ↩︎

Using openframeworks without XCode

It’s been quite a long time since I’ve been using Atom for developing nodejs apps, but a few months ago I’ve decided to migrate to Visual Studio Code, and I must say that I don’t regret this decision. Code is faster, has a tons of extensions and great support for many different languages.

Last but not least, typing code . in terminal in order to open Code in the current directory is really cool. 😁

So when I came back to openframeworks and all its XCode thing I felt a little overwhelmed, as if there were too many things before me and the code that I was writing. XCode is a very powerful IDE, but sometimes you need the comfort of something a little lighter.. which brings us back to the title:

Using openframeworks without XCode

It’s really easier than you may think, since OF supports make files on macOs!

I have to thanks a random sfpc repository I found which documented the process of using Sublime Text instead of XCode (I’ve lost the correct link, it’s somewhere in their github).

Here’s my gist showing how to do it with Visual Studio Code (but really, you should be able to reproduce the steps in most text editors).

This first file is an example of a c_cpp_properties.json file and below it you’ll find all the instructions.