something about particles system

kdcl's icon

hi all!!
i want to change the draw_mode in this example, all mode is geometry, i want to change it like text particles system, i don't know how to do.i also see Recipe 19: Tannenbaum, but even have any idea, can give me some suggestion?

thanks

this is some example for particles system

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

Rob Ramirez's icon

here is a very basic example of how to use the particle generator to draw jit.gl.text2d/3d.

basically, you have to use jit.iter on the position matrix output from the p.vishnu, and for each position value in the matrix (ie, the dim of the particle system), set the text on the gl.text*d, update the position, and bang it to draw it. this example is simply using the cell coordinate of the position matrix to index a separate matrix filled by jit.noise, in order to get text values.

there are many, many more factors to take into account. the main thing being, the position value cell coordinates in the position matrix, will shift over time.
to put it another way, the first cell in the position matrix may not refer to the same particle through the entire lifespan of that particle.

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

hopefully, this is enough to get you started.

kdcl's icon

this is what i want to do ...

you give me a good example...thanks

kdcl's icon

hi robtherich

I have some question in this patch,if i want to let the text stay in the window?

how to do it?

thanks

Rob Ramirez's icon

i'm not quite sure what you mean, but i can answer generally.
for anything other than very basic particle simulations, you are going to want to handle the force and lifetime calculations yourself, instead of using p.vishnu.
or perhaps you can make use of jit.p.bounds.

i've posted an example of managing wall collisions, and particle lifetime using jit.op and jit.expr here:
https://cycling74.com/forums/particles-rebounding-or-bypassing-object
however, this is not for the faint of heart.

there are also many more great examples on the forum, found by simply searching Jitter forum for "particles".

if you can provide another example patch illustrating what you are trying to achieve, or more specific questions, i'd be happy to attempt further assistance.

kdcl's icon

hi robtherich!!

i have some problem want to ask you ...

sometimes i use this patch, but the window always didn't work, i don't know which part was wrong, i don't change any object in this patch ...so can you give me some suggestion?

kdcl's icon

i think is jit.gl.videoplane question ....because i use webcam to detect people motion and as a texture to the gl.render....is that a priority question???

kdcl's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this is my patch...