I recently finished a project that involved controlling many LEDs from Processing through the DMX USB Pro adapter:
I wrote a little object that encapsulates the handling of the DMX messages, click on the link below to view/download it:
It is based on an example posted in the Processing forum. I simplified the code a little bit. It doesn’t create that many intermediate arrays, so it should be somewhat faster.
I wrote a couple of new objects to simplify the handling of opengl textures and glsl filters in Processing.
The PTexture object is a descendant of PImage. It holds an opengl texture that can be copied from and to the pixel property. Then the PTextureFilter allows for applying glsl filters to the PTexture objects. The filter can include grid mapping and distortion of the texture through the use of vertex shaders.
Read the rest of this entry »