jit.gl.multiple lay out on grid

jack@peacockvisualarts.co.uk's icon

Hi List,

Bit of noob question here, sorry for my ignorance but after days of pulling out my hair I'm still finding it really hard to get my head round the jit.gl.multiple it terms of how the new instances are positioned, I've read the documentation, played with the help patch extensivly and scoured the forums but still dont really understand how to tell the instances to position themselves. I have a gl.mesh which is captured to multiple and then on to a plane something like below, what I'd like to do is lay it out on a grid or layout 3 beside each other but I really cant understand how to position each instance.

Can some good samaritan patcher point we in the right direction as I really dont understand how to send simple x y z messages for each multiple instance.

Thanks in advance for any help you can offer

Cheers

JK

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

bryanteoh's icon

you send jit.gl.multiple a matrix with 3 planes. The value of each plane corresponds to x y and z coordinates. The number of cells in the matrix delineates how many iterations of the object you see. If you made a 3 plane 4x4 matrix, you would get 16 objects. I've made an example patch with one multiple of a sphere. Play with the floats and you'll see how it works.

Here's a link to a picture of the patch. I'm using max5 and I don't think I can post a patch as text that will work with older versions?

jack@peacockvisualarts.co.uk's icon

Hi there,

Thanks so much for your help, I really appreciate it. Your example
helps a lot but I'm still a little confused as to how I would go
about changing the position of the instances of each object
separately, if I change your example to a 4 x 4 matrix like this
jit.matrix example 3 float32 4 4 and change the floats I presume each
instance is rendered to exactly the same position, how would I go
about changing each instance independently?

Thanks again for your help on this!!

Cheers

JK
On 10 Oct 2008, at 18:56, bryanteoh wrote:

>
> you send jit.gl.multiple a matrix with 3 planes. The value of each
> plane corresponds to x y and z coordinates. The number of cells in
> the matrix delineates how many iterations of the object you see.
> If you made a 3 plane 4x4 matrix, you would get 16 objects. I've
> made an example patch with one multiple of a sphere. Play with the
> floats and you'll see how it works.
>
> Here's a link to a picture of the patch. I'm using max5 and I
> don't think I can post a patch as text that will work with older
> versions?
>
> http://www.bryanteoh.com/multiple_example.jpg
>
>
>

Jack Keenan
3sixty-tv coordinator
Peacock Visual Arts
21 Castle Street
Aberdeen
AB11 5BQ

01224 639539

www.threesixtytv.com
www.peacockvisualarts.com

Registered in Scotland No. SC 56235
Charity No. 14840

jack@peacockvisualarts.co.uk's icon

Hi there,

Thanks so much for your help, I really appreciate it. Your example helps a lot but I'm still a little confused as to how I would go about changing the position of the instances of each object separately, if I change your example to a 4 x 4 matrix like this jit.matrix example 3 float32 4 4 and change the floats each instance is rendered to exactly the same position, how would I go about changing each instance independently?

Thanks again for your help on this!!

Cheers

JK

bryanteoh's icon

that's kind of where the challenge in patching is. In this case we're using a 3 plane matrix. Plane 0 is the x axis, plane 1 is the y axis, and plane 2 is the z axis. Each cell of the matrix corresponds to to the position of a single object. If the matrix is a size of 2x1, then you'll get 2 objects each with an x y an z coordinate because it's a 2x1 matrix with 3 planes. You can set the value of either one or both of the cells using any of the methods described in the jitter tutorials pertaining to the manipulation of matrices. Use jit.noise if you want something random, or use jit.fill if you know specifically where you want to place each object. If you want to place several objects in very specific places, you have to face either creating a ton of message boxes which will place each object individually, or write an algorithm that will do all the work for you.

Keep playing with this patch and the help patcher for jit.gl.multiple and I'm sure you'll come up with something.

jack@peacockvisualarts.co.uk's icon

Thanks for your help your example gave me enough to (partially) get my head round gl.multiple, I have it working now using the following method.

Cheers

JK

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