Drawing an Led Lightbox in Open GL

gavspav's icon

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 64x10, and there must be a better way.

Max Patch
Copy patch and select New From Clipboard in Max.

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

dtr's icon

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

gavspav's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks.
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.

dtr's icon

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

gavspav's icon

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

dtr's icon

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