Particles System And Collision

kawakkawak Join Date: 2003-01-11 Member: 12160Members, Constellation
<div class="IPBDescription">rain fall and "splash"</div> Hello!

I'm trying to do some rains who "splash" when it touch the floor but I've got some problems.

I'm using 1 env_particles called "Rain" and 1 illusion_brush for the "generation entity".
"collide" is checked
"generate system on collision" have the name of the "collision" env_particles (splash).

The rain works perfectly (it falls and stop on contact with a world brush) but the "splash particles" isn't working..

I dont know what settings i have to use for this env_particles..
If i have to use the "velocity params", "generation rate" and "maximum particles"?

Thanks in advance for your help!

Comments

  • ShenTraXShenTraX Join Date: 2003-11-10 Member: 22434Members, Constellation
    i dunno if you can do it that way.... but..

    you may could try

    [------------------] ceiling
    [ps1]
    <rainfall>
    <rainfall>
    <rainfall>
    [ps2]
    [------------------] floor

    the second particle system could just produce the 'rings' or waves effect, using the 'face up' flag. Just start both systems at once.
  • kawakkawak Join Date: 2003-01-11 Member: 12160Members, Constellation
    yes but i prefer to use the setting "generate system on collision" as it's certainly more realistic (like the lava in Refinery (ns_bast)).

    PS to the bast remaker: can you tell me what settings has the second "collision env_custom_particle" in refinery?
  • kawakkawak Join Date: 2003-01-11 Member: 12160Members, Constellation
    edited March 2004
    Mendasp answered me about the particles effect in Refinery, here is a copy/paste:

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->The PS (ore) has "Generate system on collision" triggering "orepuff" which is another env_particles custom with these settings:
    {
    "classname" "env_particles_custom"
    "spawnflags" "273"
    "pGenRate" "4"
    "pSpriteNumFrames" "1"
    "pNumParticles" "80"
    "pSize" "7"
    "pSystemLifetime" "-1"
    "pLifetime" "-1"
    "pVelShape" "2"
    "pVelParams" "-150,-40,160,150,175,300,0,0"
    "pScale" "1.0"
    "pMaxAlpha" "1"
    "pRenderMode" "5"
    "pAnimationSpeed" "1"
    "targetname" "ore"
    "pPSToGen" "orepuff"
    "pSprite" "sprites/ns_bast/muz2.spr"
    "origin" "952 -3232 -208"
    }<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->


    But i still dont know what settings i'm missing..

    Here is my settings for the "rain":
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"classname" "env_particles_custom"
    "spawnflags" "921" <span style='color:green'>(start on; fade out;world grav;constrain pitch;collide)</span>
    "targetname" "waterps1"
    "pGenSource" "waterps1"
    "pGenShape" "4" <span style='color:green'>(box)</span>
    "pGenRate" "35"
    "pSprite" "sprites/ns_agora/raindrop.spr"
    "pSpriteNumFrames" "1"
    "pNumParticles" "50"
    "pSize" "2.5"
    "pSystemLifetime" "-1"
    "pLifetime" "0.8"
    "pVelShape" "2" <span style='color:green'>(box)</span>
    "pVelParams" "0,0,-280,0,0,0,-225,0"
    "pScale" "1.0"
    "pMaxAlpha" "0.3"
    "pRenderMode" "5"
    "pAnimationSpeed" "1"
    "pPSToGen" "splash1"
    "origin" "-1936 -2719 -496"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    And for the collision:
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"classname" "env_particles_custom"
    "spawnflags" "1681"   <span style='color:green'>(start on;world grav;constrain pitch;face up)</span>
    "targetname" "splash1"
    "pGenSource" "splash1" <span style='color:red'>(have tried with "waterps1")</span>
    "pGenRate" "35"
    "pSprite" "sprites/ns_agora/drsplash.spr"
    "pSpriteNumFrames" "1"
    "pNumParticles" "50"
    "pSize" "6"
    "pSystemLifetime" "-1"
    "pLifetime" "0.5"
    "pVelShape" "1" <span style='color:green'>(point)</span>
    "pVelParams" "0,0,-280,0,0,0,-225,0" <span style='color:red'>(have tried with 0,0,0,0,0,0,0,0)</span>
    "pScale" "1.0"
    "pMaxAlpha" "0.4"
    "pRenderMode" "5"
    "pAnimationSpeed" "1"
    "origin" "-1932 -2720 -620"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    The collision one still dont work, but worst than that, my fps drop to 20 <!--emo&::marine::--><img src='http://www.natural-selection.org/forums/html//emoticons/marine.gif' border='0' style='vertical-align:middle' alt='marine.gif' /><!--endemo--> Maybe that the collision's settings isn't good with a number of particles over 50? or this is only because something is wrong with the settings..?

    Any help is welcome (and i begin to think that i will do the shentrax suggestion.. <!--emo&:p--><img src='http://www.natural-selection.org/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> )
  • ShenTraXShenTraX Join Date: 2003-11-10 Member: 22434Members, Constellation
    can you get the splash to work by itself?
  • prsearleprsearle Join Date: 2002-11-01 Member: 2365Members, Constellation
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Here is my settings for the "rain":
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"classname" "env_particles_custom"
    "spawnflags" "921" <span style='color:green'>(start on; fade out;world grav;constrain pitch;collide)</span>
    "targetname" "waterps1"
    "pGenSource" "waterps1"
    "pGenShape" "4" <span style='color:green'>(box)</span>
    "pGenRate" "35"
    "pSprite" "sprites/ns_agora/raindrop.spr"
    "pSpriteNumFrames" "1"
    "pNumParticles" "50"
    "pSize" "2.5"
    "pSystemLifetime" "-1"
    "pLifetime" "0.8"
    "pVelShape" "2" <span style='color:green'>(box)</span>
    "pVelParams" "0,0,-280,0,0,0,-225,0"
    "pScale" "1.0"
    "pMaxAlpha" "0.3"
    "pRenderMode" "5"
    "pAnimationSpeed" "1"
    "pPSToGen" "splash1"
    "origin" "-1936 -2719 -496"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    1. If you want the particles to be created at the env_particles_custom's origin, then you should have pGenShape set to "Point" and pGenSource left blank. If you want them created within a func_illusionary, then pGenShape should be "Box", "Sphere", or "Blob" and pGenSource should be the targetname of the func_illusionary.
    2. You have pVelShape set to "Box", but pVelParams isn't set up for box velocity. It should be:
    minx, miny, minz, maxx, maxy, maxz, unused, unused
    You have "-225" for one of the unused values - perhaps you meant this:
    0, 0, -280, 0, 0, -225, 0, 0

    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->And for the collision:
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->"classname" "env_particles_custom"
    "spawnflags" "1681"  <span style='color:green'>(start on;world grav;constrain pitch;face up)</span>
    "targetname" "splash1"
    "pGenSource" "splash1" <span style='color:red'>(have tried with "waterps1")</span>
    "pGenRate" "35"
    "pSprite" "sprites/ns_agora/drsplash.spr"
    "pSpriteNumFrames" "1"
    "pNumParticles" "50"
    "pSize" "6"
    "pSystemLifetime" "-1"
    "pLifetime" "0.5"
    "pVelShape" "1" <span style='color:green'>(point)</span>
    "pVelParams" "0,0,-280,0,0,0,-225,0" <span style='color:red'>(have tried with 0,0,0,0,0,0,0,0)</span>
    "pScale" "1.0"
    "pMaxAlpha" "0.4"
    "pRenderMode" "5"
    "pAnimationSpeed" "1"
    "origin" "-1932 -2720 -620"<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    3. Particle systems created by a collision should not have pGenSource set - it is set automatically by the collision code.
    4. Particle systems created by a collision should have a non-infinate system lifetime so they eventually stop producing particles. ns_bast used a lifetime of 2 seconds for orepuff, I believe.
    5. Point #2 applies to this system's pVelParams, as well. Also, if you use a negative z-velocity, then the particle will be created and immediately fall through the floor. Perhaps you should stick with 0,0,0,0,0,0,0,0 and turn off "Use world gravity".
Sign In or Register to comment.