hi all, anyone can tell me exactly what info comes out of [part_info]? thx
kurt
www.kapotski.be
Zitiere kurt stockman kurt@kapotski.be:
hi all, anyone can tell me exactly what info comes out of [part_info]? thx
[part_info] gives information about each particle
as i remember (with a short look at the code):
outlet1: gemlist (for this particle) outlet2: ID of this particle outlet3: position (x,y,z) of this particle outlet4: colour (r,g,b,a) of this particle outlet5: velocity (vx, vy, vz) of this particle outlet6: size (w,l,h) of this particle outlet7: age (in frames) of this particle
mfg.as.edr IOhannes
thx!
really like the revamped particle system. i was wondering: is it possible to move the particle source without moving the 'living' particles? if now i try to move it with [translate] the entire particle system moves along... If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
greetz, kurt
-----Oorspronkelijk bericht----- Van: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at]Namens zmoelnig@iem.at Verzonden: donderdag 10 juli 2003 15:48 Aan: kurt stockman CC: pd-list@iem.kug.ac.at Onderwerp: Re: [PD] [gem] particle info
Zitiere kurt stockman kurt@kapotski.be:
hi all, anyone can tell me exactly what info comes out of [part_info]? thx
[part_info] gives information about each particle
as i remember (with a short look at the code):
outlet1: gemlist (for this particle) outlet2: ID of this particle outlet3: position (x,y,z) of this particle outlet4: colour (r,g,b,a) of this particle outlet5: velocity (vx, vy, vz) of this particle outlet6: size (w,l,h) of this particle outlet7: age (in frames) of this particle
mfg.as.edr IOhannes
kurt stockman wrote:
thx!
really like the revamped particle system. i was wondering: is it possible to move the particle source without moving the 'living' particles? if now i try to move it with [translate] the entire particle system moves along... If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
ah yes, this is a problem, and it is *not* possible in Gem for now (or i am missing something, which might well be;-)) i had to do the same thing about 1 month ago, and it turned out to complicated (as i wanted to do it in pd without modifying the Gem-sources)
the idea was, to keep track of each particle in plain pd (arrays) and give it an offset according to the position of the praticle's origin, which was then applied to each particle with [translateXYZ]. however this didn't work properly, since the indices of particles are not constant but are reallocated as particles are born/die. but since it was a rought simulation of an old 8bit-game i didn't care to much about exactness then....
mfg.a.sdr IOhannes
If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
check out the last couple examples in the pdp_opengl lib. there's some particle stuff using the 3dp_for looping object and pd arrays. (get the 0.12.2 test release in the test/ dir for the latest ex.)
heya,
tried the 0.12.2 test pdp; on loading the pdp_opengl lib i get:
undefined symbol: pdp_dpd_command_suicide
...
on Mon, 2003-07-14 at 14:28, Tom Schouten wrote:
If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
check out the last couple examples in the pdp_opengl lib. there's some particle stuff using the 3dp_for looping object and pd arrays. (get the 0.12.2 test release in the test/ dir for the latest ex.)
now i did... and it works *grin*
it must be the heat... ;)
On Tue, 2003-07-15 at 14:41, Tom Schouten wrote:
kurt stockman wrote:
heya,
tried the 0.12.2 test pdp; on loading the pdp_opengl lib i get:
undefined symbol: pdp_dpd_command_suicide
...
pdp_opengl depends on pdp. did you start it with something like
pd -lib pdp:pdp_opengl
?
tom
kurt stockman wrote:
thx!
really like the revamped particle system. i was wondering: is it possible to move the particle source without moving the 'living' particles? if now i try to move it with [translate] the entire particle system moves along... If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
i have just added a [part_vertex] object to the cvs-version of gem. it is almost what you want, moving particle-sources without moving the particle-system, but alas! only outputs a single particle each rendering cycle.
mfg.asd.r IOhannes
IOhannes zmoelnig wrote:
kurt stockman wrote:
thx!
really like the revamped particle system. i was wondering: is it possible to move the particle source without moving the 'living' particles? if now i try to move it with [translate] the entire particle system moves along... If it's not possible with the [part_...] objects is it with the Gem-OpenGl objects, or with pdp-openGl?
i have just added a [part_vertex] object to the cvs-version of gem. it is almost what you want, moving particle-sources without moving the particle-system, but alas! only outputs a single particle each rendering cycle.
oh, and right now i have checked in a revised version of [part_source], that let's you set the position of the particle source. (and outputs more than one particle at a time) this might be what you wanted.
mfg.asd.r IOhannes