Drawing in jitter

wijesijp's icon

I am new to max/msp jitter so I am not quite sure how to approach this problem. I hope some of you can point me in the correct direction.

I wanted to display a scene consist of some simple objects like squares, triangles, circles. Locations of these objects are provided to max by some other program and I have their location inside max/msp.

Initially I designed the entire scene using jit.sketch. I send messages to it to draw these objects, and it was working fine but when the number of objects increased it became so complicated.
Then I decided to make a java external to handle this problem and I can see the entire program can be simplified.

But how do I draw something in jitter using java external? Can I draw into a jit.sketch?
Can anyone tell me how something like this done

seejayjames's icon

you might also look into using javascript, in some ways it's better integrated for using sketch. there are some tutorials about it, it's easy to get started.

There are some other optimization techniques for managing all that data, like arrays in tables, jit.cellblock, coll, and jit.matrix. Just depends how you want to manage things. I like doing most stuff in Max since things like preset and pattr make life much easier and there are cool manipulations you can do to the data easily.