Drawing an Led Lightbox in Open GL

Dec 4, 2012 at 5:06pm

Drawing an Led Lightbox in Open GL

I thought I’d be able to quickly knock up a quick simulation of an led lightbox in Max 6.

Read the Jitter 3d tutorials and I’ve cobbled together the following code (below). It works I guess but I want to build a much bigger array, say 64×10, and there must be a better way.

Would I be able to change the colours of each cube if I used jit.gl.multiple? Or can I use poly~ or something?

– Pasted Max Patch, click to expand. –
Dec 4, 2012 at 6:11pm

jit.gl.multiple indeed. Much easier to set up and scale. Store your colors and positions in matching 64×10 matrices.

Dec 5, 2012 at 11:49am

Maybe I’m being a bit slow but it still took me ages and then only by culling from forum patches here and there!
Here we go.

– Pasted Max Patch, click to expand. –
Dec 5, 2012 at 4:57pm

Looks good! On a side note, if you’re just going to make ‘m look like a square matrix you could just as well send your color matrix directly to jit.(p)window ;)

Dec 5, 2012 at 7:23pm

No – I do have complicated 3d plans. This is just the beginning!

Dec 5, 2012 at 8:49pm

That’s very well do-able. I once modeled the entire interactive lighting setup for a dance piece in Jitter. Good luck!


You must be logged in to reply to this topic.