Forums > Jitter

jit.expr for positioning.

February 4, 2010 | 4:02 am

HI,
I have several occurences of a 3d model to be positionned in columns and rows
I use the jit.gl .multiple object and try to understand the content of expr objects used for the positionning in the jit.gl.multiple helpfile.
The problem is that I can’t really understand what the norms and snorms are standing for (idem for the index between square brakets)
is there a place where to learn about jit.expr functionnalities?
thanks


February 4, 2010 | 7:45 am

norm[x] and snorm[x] refer to a range of values across a given dimension x. norm ranges from 0 – 1, while snorm ranges from -1 to 1.


February 8, 2010 | 11:11 am

thanks for your answer but it is still obscure to me.
where could I find tutorial for real beginners?
I can’t figure how to iterate my model in rows and columns (even with the jit.expr helpfile that is not really detailed.)
thanks for any link


February 8, 2010 | 10:03 pm

see if this patch helps.

– Pasted Max Patch, click to expand. –

February 8, 2010 | 10:11 pm

No tutorials as far as I know. You’ll have to struggle with it as we all do. jit.cellblock can be very helpful in figuring this all out:

– Pasted Max Patch, click to expand. –

August 9, 2010 | 7:47 am

Thanks for your interesting patches.
I’m a bit curious about positioning 3d models in other structures than classic rows and columns.
what could be the solution for hexagones like in the following picture.
Which tool could be use to place models in staggered rows or quinconce.

[attachment=138492,939]

Attachments:
  1. hexagone.jpg

August 9, 2010 | 8:43 am

FYI this might help: http://cycling74.com/2010/03/08/demystifying-expressions-in-jitter/


August 13, 2010 | 12:03 am

Thanks.
In order to delete some model in precise row, I’m tring to manually empty jit.cellblock by sending "clear" message to the proper cell.
The problem is that when connected to a jit.expr object, I’m not allowed to make the cellblock change any value.
So how could I delete some values?


August 13, 2010 | 2:24 pm

I’m completely stuck. maybe I mislead and should find an other way to position my pattern unless there is a way to manually modify cellblock.
Thanks for precious help.


August 13, 2010 | 6:01 pm

i would suggest you post a patch so we can get a better understanding of what you are trying to achieve.


August 14, 2010 | 1:10 am

Sorry,
Here is my patch.

– Pasted Max Patch, click to expand. –

I found an expression that creates a simple hexagonal pattern based on my 3d model;
but I wish I could create other "rings" of hexagones to copy the illustration I have posted before.
After that, I planed to delete ( manually or randomly) some of my hexagones. ( I tried, at first, to deal with a jit.cellblock that I could manually edit but I forgot about that)
The best way would certainly be to iterate the created polygones and decide, after that, to make it visible or not.
I hope to be clear enough.
Thanks.

Attachments:
  1. poly.obj

August 17, 2010 | 2:59 am

Hello,
Groping along, I finally found a way to recreate the pattern I desired.
I used three different expressions to create 3 rings of polygons; so It is certainly not the best way to construct the entire structure.
I have difficulties to reduct those 3 expressions in a single one. Being able to do that would allow me to control each rotation degree of my instances through one single matrice.
Thanks for you help.

– Pasted Max Patch, click to expand. –

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