/-/S'pht-Translator-Active/-/


Quick question... how hard woul it be to add the
Posted By: NicholaiDate: 2/25/05 7:54 p.m.

In Response To: Re: Quick question... (Nicholai)

particle system...?

I read in source forge something about it...
here is it... I see it as hard probablity, but I will try to learn how to program for AO...

Gimme your thought about it

Particle System

Currently Aleph One has support for enemies, scenery,
players and projectiles. It only has limited support
for secondary effects though. (Stationary animated
effects, primarilly in the form of weapon contrails and
the impact sprites)

What I propose is a particle system. Where certain in
game elements can spawn multiple objects that are
animated, affected by physics, and which have no effect
on gameplay. (Turning particles on or off should have
no effect on gameplay)

[Note: This means that all random numbers associated
with particles should probably use the local random
number generator instead of game_random]

Overview:

I see someone taking the likes of projectile.cpp and
from it creating a particle.cpp to handle the animating
and physics of particles.

Particle Definition:

A single particle references many of the same elements
that other aspects of Alpeh One use. For instance the
collection and shape ids of the graphical objects. It
would also specify physical properties like some of the
projectiles have.

For instance gravity values of: -half gravity (floats
up), no gravity, half gravity (drifts down), normal gravity

Other elements a particle may have include: Does it
bounce? Duration? Contrail effect(expressed as particle
effect)? Detonation effect(expressed as particle
effect)? Media effect(for instance do the particles
splash when entering the water?)

Initial implementation may only wish to worry about
bounces on floors and treat all hits on walls as
impacts, for now.

Particle Effect (PEffect) Definition:

A PEffect defines the way a single batch of particles
are generated.

A spark effect might be defined as a single yellow
square graphic with normal gravity, that bounces and
which lasts for 90 ticks.

A PEffect determines the number of particles produced.
And the way particles are produced.

For instance a gunshot could produce a spray of 5 spark
paticles. Initial velocity for all could be specified
as an explicit velocity, in the direction of the
ricochet from the wall. With a horizontal and vertical
variance of 75 degrees (where a variance of 0 is in the
exact direction of the richochet)

I also think a container PEffect would be interesting.
Where one PEffect refers to multiple singular effects.
Consider for instance a 'machine explosion' PEffect
which in turn calls for a 'shower of sparks' PEffect
and a 'machine shrapnel' PEffect.

Particle Source (PSource) Definition:

A PSource is the glue between various elements in the
game and the generation of calls to instantiate a new
PEffect in the game.

Each different form of PSource is a different hook in
the game code. For instance a detonation PSource would
connect the impact effect of a gunshot to the 5 sparks
PEffect above. And a contrail PSource could associate
dripping sparks with the fusion blast projectile.

The creation of different forms of PSource could also
be expanded over time. Some other possibilities include:
'impact sources' - for when a player/monster jumps down
from one level and hits the floor below. (Say a ring of
5 dust clouds at the point of impact)
'point sources' - A source that resides at a specific
point in the map and continually spews its particle
effect every so often. (Think sparks spewing from a
control panel, a damaged light or steam issuing from a
hose)
'media/polygon sources' - A source that specifies the
creation of a particle effect over an area. (Where
within the area doesn't matter so much, but could be
specified to be in a certain spread before the camera,
as long as it remains within the polygon, the visible
media surface, or the player is under the media's
surface.) for instance, while underwater, bubble
particles occasionall rise from floor to surface randomly.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

Replies:

I get jealous when I see other...Nicholai 2/22/05 8:41 p.m.
     Re: I get jealous when I see other...Forrest of B.org 2/22/05 9:32 p.m.
           Re: I get jealous when I see other...TwelveMotion 2/23/05 1:25 a.m.
                 Re: I get jealous when I see other...Jorge 2/23/05 5:43 a.m.
                       I've said it before and I'll say it again...Anaphiel 2/23/05 6:40 a.m.
                             And as a brief followup...Anaphiel 2/23/05 6:49 a.m.
                                   Re: And as a brief followup...Jorge 2/23/05 9:49 a.m.
                                   Re: And as a brief followup...Little Kago 2/23/05 1:18 p.m.
                                         Re: And as a brief followup...Anaphiel 2/23/05 2:03 p.m.
                                               Re: And as a brief followup...luke9 2/23/05 6:02 p.m.
                             Re: I've said it before and I'll say it again...Malakite 2/23/05 2:50 p.m.
     You get what you pay forSteve Levinson 2/23/05 5:06 a.m.
           Re: You get what you pay forTyler 2/23/05 2:34 p.m.
                 Re: You get what you pay for, ForrestNicholai 2/23/05 6:45 p.m.
                       Re: Sorry about the spelling and grammar mistakes *NM*Nicholai 2/23/05 6:52 p.m.
                       Re: You get what you pay for, Forrestrampancy 2/23/05 7:06 p.m.
                             Re: You get what you pay for, ForrestForrest of B.org 2/23/05 8:20 p.m.
                                   Re: You get what you pay for, Forrestrampancy 2/24/05 2:58 a.m.
                             Re: You get what you pay for, ForrestNicholai 2/23/05 8:29 p.m.
                 Re: You get what you pay forrampancy 2/23/05 7:11 p.m.
                       Re: You get what you pay forJorge 2/24/05 5:13 a.m.
                             Just tell me, why don't improve?Nicholai 2/24/05 12:37 p.m.
                                   Re: Just tell me, why don't improve?Forrest of B.org 2/24/05 12:54 p.m.
                                         You win this discution...Nicholai 2/24/05 1:03 p.m.
                                               Re: You win this discution...Jorge 2/24/05 4:24 p.m.
                                                     Re: You win this discution...Nicholai 2/24/05 4:52 p.m.
                                                           Re: You win this discution...Forrest of B.org 2/24/05 5:01 p.m.
                                                                 Re: You win this discution...Andromeda_5[Kilo] 2/24/05 5:05 p.m.
                                                                       Re: You win this discution...Adam Ashwell 2/24/05 5:43 p.m.
                                                                             back to topicukimalefu 2/24/05 6:29 p.m.
                                                                                   Re: back to topicSimon of team Sigma 2/25/05 3:51 a.m.
                                                                             Re: You win this discution...tcm 2/24/05 7:42 p.m.
                                                                       Re: You win this discution...Jorge 2/25/05 4:04 a.m.
                                                                       Re: You win this discution...D-M.A. 2/27/05 2:08 a.m.
           Quick question...Siphonopho 2/24/05 8:09 p.m.
                 Re: Quick question...Steve Levinson 2/25/05 5:07 a.m.
                       Re: Quick question...Nicholai 2/25/05 12:06 p.m.
                             Re: Quick question...Forrest of B.org 2/25/05 4:55 p.m.
                                   Re: Quick question...Adam Ashwell 2/25/05 5:18 p.m.
                                         Re: Quick question...Nicholai 2/25/05 7:38 p.m.
                                               Quick question... how hard woul it be to add theNicholai 2/25/05 7:54 p.m.
                                               Re: Quick question...D-M.A. 2/27/05 2:18 a.m.
                                                     Re: Quick question...Speaker-To-Animals 2/27/05 9:50 a.m.
                                                           Re: Quick question...D-M.A. 2/28/05 12:00 a.m.
                                                                 Re: Quick question...Speaker-To-Animals 2/28/05 8:37 p.m.
                                   Re: Quick question...goran 2/26/05 12:54 a.m.
           Re: You get what you pay forSpeaker-To-Animals 2/27/05 9:27 a.m.
                 Re: You get what you pay forthermoplyae 2/27/05 4:14 p.m.
           Crap! Can't believe I missed this thread!!Me_43 2/27/05 11:39 p.m.
                 Re: Crap! Can't believe I missed this thread!!Steve Levinson 2/28/05 5:15 a.m.
                       Re: Crap! Can't believe I missed this thread!!Me_43 2/28/05 10:39 p.m.
                             hey where can I see this E0...Nicholai 3/1/05 1:53 p.m.
                                   Re: hey where can I see this E0...Me_43 3/1/05 10:23 p.m.
                             Re: Crap! Can't believe I missed this thread!!Steve Levinson 3/1/05 9:10 p.m.
                                   Re: Crap! Can't believe I missed this thread!!luke9 3/1/05 9:19 p.m.
     Re: I get jealous when I see other...thermoplyae 2/27/05 4:13 p.m.
     Re: I get jealous when I see other...tcm 2/28/05 7:13 a.m.
           Re: I get jealous when I see other...Nicholai 3/1/05 1:48 p.m.
                 Re: I get jealous when I see other...tcm 3/2/05 9:49 a.m.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

 

 

Your Name:
Your E-Mail Address:
Subject:
Message:

If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:
Optional Link Title:

If necessary, enter your password below:

Password:

 

 

Problems? Suggestions? Comments? Email maintainer@bungie.org

Marathon's Story Forum is maintained with WebBBS 5.12.