Nov 14, 2009 at 5:23pm



I’m searching for a way to use [jit.noise] & [jit.pack] for “route” 7 planes to xyz and RGBA.
Is there a good solution without unpacking 7 planes then repacking 12 planes?

– Pasted Max Patch, click to expand. –
Nov 15, 2009 at 7:10pm

i believe what you want to do is plug your 7 plane jit.noise into:

jit.unpack 2 @offset 0 3 @jump 3 4

this will give you a 3 plane matrix from first outlet, and a the remaining 4 planes from second outlet.

took me a little while to figure out the offset/jump stuff as well.

Nov 17, 2009 at 5:19pm

Ok, but here is 2 possibilities and they don’t give the same result (colors).
I don’t understand why.

– Pasted Max Patch, click to expand. –
Nov 17, 2009 at 6:50pm

first, you are unpacking a 7 plane matrix with 12 plane unpack. it’s wrapping the results from the first 4 planes of the input matrix.

change to a jit.unpack 7.

second, your color inputs in the jit.pack 12 are slightly off. you need to pack the last 4 inputs (3 position, 2 texcoord, 3 normal, 4 color). you are off by one.

making those changes to the right side exactly duplicates the left side.

Nov 17, 2009 at 7:29pm

If I send an entire 12 planes matrix, it is for 3 position 2 texcoord, 3 normal, 4 color. Yes, this is in the tutorials.

But There is no way to send only one entire matrix to alter 3 position and 4 colors only?
And the separate inlets serve this purpose …
Ok. Thank you.


You must be logged in to reply to this topic.