Forums > Jitter

drawing multiple shapes



Jay
Feb 28 2011 | 2:27 pm

Hi,

Forgive me if this is a very simple question, it seems like it should be but yet I can’t find the answer in the tutorials/forums…

I’m attempting to draw multiple shapes at random in Jitter at the same time, but with the OpenGL platform it seems that you can only draw one shape at a time. I’m going for something, for example, like shapes appearing and disappearing at random in different places, different sizes, different dimensions, etc.

Any suggestions?

Cheers,

Feb 28 2011 | 5:48 pm

why do you think you can only draw one shape at a time?
check out the example patch below for one technique for drawing multiple gl objects each frame.
the trick for this is "automatic 0" on the gridshape.

also check out jit.gl.multiple and search for opengl poly~ examples (a link was just posted to the forum with an example).


-- Pasted Max Patch, click to expand. --

Feb 28 2011 | 11:13 pm

What does this ‘automatic 0’ do? Couldn’t find it in the object reference…

Mar 02 2011 | 7:07 pm

turns off automatic rendering, meaning you must explicitly bang to draw the object.
check out the Jitter 3D Object (OB3D) Messages section of the documentation. there’s a link to this page from each of the gl object pages.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter