Using jit.gen as a processing-like tool ?

Julien Bayle's icon

I'd like to use jit.gen and jitter objects as a processing-like too.
This is more my current approach on my current project which drives me to this way.

I'd be interested in a global design pattern for that

my purpose: generative design in 2D (lines, points, curves) only.

let me know if this is a stupid question too :)

dtr's icon

you wanna check out jit.gl.sketch and .mesh

Julien Bayle's icon

I guess I should drive positions and other object parameters with jit.gen in order to be efficient.
I got it.

For instance, to create a lot of circles moving, I can also use jit.gl.multiple with a jit.gen processing a position matrix
I guess it makes sense in my head... I mean, I got it.

I'm sorry about those kind of questions.
I'm okay with these objects, but global new approaches sometimes give me problems

A whole jit.gen driven stuff could also be used too, no?
Maybe it wouldn't be the best practice to follow.

Julien Bayle's icon

I tested and I'm okay with jit.gen + jit.gl.gridshape + jit.gl.multiple
Indeed, it seems very efficient.

I didn't have notice something with multiple.
Here, I'm using a gridshape circle named and "multiplied" by jit.gl.multiple
But the first original instance indeed isn't considered. I guess I could also process its coordinates etc but did I miss something else smarter here ?

I need to keep the whole stuff into my window in 2D now.
checking that...

4490.snapshot2012100413.01.53.PNG
PNG
leafcutter's icon

look at jitter tutorial 32 - camera view. The ortho attribute might be of help.

Julien Bayle's icon

I tested with that but I especially scale the noise inside jit.gen to control my area of random.

how to make the initial instance of gridshape not visible or else, I still don't know.
indeed, I have everytime that circle in the middle, of course.

Julien Bayle's icon

last snapshot

4491.snapshot2012100414.19.56.PNG
PNG
ak's icon

try gridshape @automatic 0

endziu's icon

"how to make the initial instance of gridshape not visible or else, I still don't know."

use @automatic 0

Julien Bayle's icon

missed that attribute... it works fine, of course :)
thnks a lot

some pb to scale the whole stuff correctly to fill the screen.
I mean, I can play with camera position, lens (with ortho), but also with my objects positions.

I have a peak of hesitation with processing right now.
some line of code would make that in 5 min.
btw, I want to keep jitter here, I just need to make me a kind of template to be quickly able to draw on the screen without scaling problem.
I mean: I want to divide the screen into 4 parts, I don't want to have to reshape all my objects, my view etc.

Julien Bayle's icon

hesitating... with JAVA for my project.
indeed, this would be more code typing for my snippets.
and if I have hard pix processing or things like that I can even use.

indeed, this would be nice to generate bits with that and, further in the patch, eventually, make my pixel processing with jit.gl.pix.
because I (only) want to make 2D and it is a pain (for me) to have to deal with cam position + scale of the renderer, the multiple, the objects only to have a 2D matrix I want to fill with pixel with generated structure..

Julien Bayle's icon

jitcellvecaccess convinced me, I had to add this :)