Forums > Jitter

something about particles system

April 23, 2010 | 1:07 pm

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

– Pasted Max Patch, click to expand. –

April 23, 2010 | 6:43 pm

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.

hopefully, this is enough to get you started.

– Pasted Max Patch, click to expand. –

April 24, 2010 | 4:35 am

this is what i want to do …

you give me a good example…thanks


April 25, 2010 | 3:04 pm

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


April 25, 2010 | 8:32 pm

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:
http://cycling74.com/forums/topic.php?id=17847
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.


April 28, 2010 | 7:31 am

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?


April 28, 2010 | 8:27 am

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???


April 28, 2010 | 8:50 am

this is my patch…

– Pasted Max Patch, click to expand. –

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