particle systems

This is a discussion on particle systems within the Game Programming forums, part of the General Programming Boards category; hi, i want to have some more algorithims, for manipulating the paths of particles, any one care to help me ...

  1. #1
    some dude
    Guest

    particle systems

    hi,

    i want to have some more algorithims, for manipulating the paths of particles, any one care to help me out?

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    for what API?

    look around at these places.

    http://www.flipcode.com
    http://www.gamedev.net
    http://www.gametutorials.com

    check their tutorials and ask on thier forums.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    403

  4. #4
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    well, for a basic fountain type thing, with gravity, you could do this...

    x=velocity*cos(angle)
    y=velocity*sin(angle)*-16(t*t)

    where t = time...those might be wrong, I haven't tested them, I just did it from memory, but they look right...

  5. #5
    some dude
    Guest

    i am using OpenGL

    i want to know, things like how do i make effects like those on Ms Media Player, specifically "flame", but i want to make that sort of effect in my program.

    (thanks for the gravity thing, i needed that for something else)

  6. #6
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    well, for things like fire you will need particles to have a varying lifespan (within certain ranges), perhaps basing the life span partially on the angle they are projected at and part random. You'll need to change the color of the particle based on how long it's been in existence, and you'll need to alter the coefficient for the gravity (-16(t*t) is real world gravity, but it would make fire look strange) You could add some random fluxuations in the x component to add some distortion or turbulence type things, or a constant multiplied by t for wind... you'll need a lot of particles for the fire, but in a way, all particle systems are variations on the same principles.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Some of my best thoughts have ended in a semi-colon.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [OGL] Particle class wanted!
    By cboard_member in forum Game Programming
    Replies: 2
    Last Post: 02-17-2006, 06:44 AM
  2. APIs for windowing in other systems
    By sean in forum Tech Board
    Replies: 5
    Last Post: 08-23-2004, 11:45 AM
  3. What's a job as a systems administrator like?
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-09-2004, 08:37 AM
  4. OpenGL Particle Engine Demo
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 11-25-2003, 08:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21