something about particles system

Apr 23, 2010 at 1:07pm

something about particles system

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. –
#49964
Apr 23, 2010 at 6:43pm

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. –
#179406
Apr 24, 2010 at 4:35am

this is what i want to do …

you give me a good example…thanks

#179407
Apr 25, 2010 at 3:04pm

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

#179408
Apr 25, 2010 at 8:32pm

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.

#179409
Apr 28, 2010 at 7:31am

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?

#179410
Apr 28, 2010 at 8:27am

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

#179411
Apr 28, 2010 at 8:50am

this is my patch…

– Pasted Max Patch, click to expand. –
#179412

You must be logged in to reply to this topic.