Particle Systems - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Particle Systems

Description:

Each particle has a life cycle. Each particle is independent ... Simulate effect of film exposure during finite shutter opening time. April 19 , Spring 2002 ... – PowerPoint PPT presentation

Number of Views:65
Avg rating:3.0/5.0
Slides: 21
Provided by: larryf74
Category:
Tags: particle | systems

less

Transcript and Presenter's Notes

Title: Particle Systems


1
Particle Systems
  • Particle Systems

2
Particle Systems
  • Simulate explosions, smoke, fire, spray
  • Thin linear/cylindrical natural objects
  • Particle physics
  • First used for graphics in 1982 for Star
    Trek II The Wrath of Khan
  • Genesis demo sequence

3
Particle Life Cycle
  • Small geometric object
  • Each particle has a life cycle
  • Each particle is independent
  • Undergoes a random path controlled by probability
    distribution

4
Basic Particle
  • A small geometric object
  • Initial position
  • Initial velocity (both speed and direction)
  • Initial size
  • Initial color
  • Initial transparency
  • Shape
  • Lifetime

5
Particle Emitter
  • Each particle will come from an emitter
  • Has a number of particles
  • Random number of particles/frame
  • Randomize initial values of each particle

6
Particle Collection
  • Emitters at certain locations
  • Fixed (Water spraying from hose)
  • Distributed
  • Designate emitters on surface or in 3D space
  • Semi-random
  • Designate center of emitter distribution
  • Emitters randomly distributed about the
    distribution center

7
Particle Physics
  • F MA
  • A acceleration (initial push, gravity, etc)
  • V current velocity dt A Vprev
  • X current position dt V Xprev

8
Environmental Effects
  • Could add
  • Wind
  • Magnetism, etc
  • Global forces can be handled per particle
  • Local forces need either equation or data
  • Voxel field representing local wind velocities

9
Envirnoment
  • Collision Detection!
  • Simple point-object collision
  • Collision response
  • Reflection (with energy loss)
  • Absorption (sparks lose heat)
  • Flow (water spreads out)
  • Particle-on-particle O(N2)

10
Data Management
  • Preallocate a pool of particles
  • Update each particle in pool

11
Particle Rendering
  • GL_POINT
  • Single pixel point
  • OK for slow particles
  • Line segment
  • Account for particle motion
  • If frame-to-frame particle spacing gt 1 pixel
  • Simulates motion blur

12
Motion Blur
  • Must account for temporal properties of animated
    object
  • Simulate effect of film exposure during finite
    shutter opening time

13
Example Wrath of Khan
14
(No Transcript)
15
(No Transcript)
16
Grass Simulation
17
Particles in Games
  • 2 triangles (4 vertices)/particle
  • Large semitransparent particles for smoke
  • Textures

18
Particle Shape
  • Texture
  • Blend
  • Distort

Sparks Flare
Animated Texture
19
Lightning
  • Create a tree for lightning path
  • Drive particles along branches
  • Load texture once for entire effect

20
Rain
  • Rainfall Stretched shape
  • Impact Spark splatter
Write a Comment
User Comments (0)
About PowerShow.com