Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Particle FX

  1. #1
    Intern Newbie
    Join Date
    Mar 2004
    Location
    Poland
    Posts
    31

    Particle FX

    Hi

    Do you know any page where can I find tutorials, examples etc. about particle effects that can be used in OpenGL? I want to learn such an effects like fire, water, explosions- basics in th most.

    Oh, and I am wondering what is the best way to simulate waves on water (and water at all)?

    Thanks
    One star? I am learning, and not giving bad advices. So: WHY?

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Slovakia
    Posts
    8

    Re: Particle FX

    1) Try to make a very, very, simple Particle sys.
    2) Then ask for some ideas on this forum how to do it better
    3) Try Goole
    Open Software

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Slovakia
    Posts
    8

    Re: Particle FX

    I have somethink: http://nehe.gamedev.net/data/lessons....asp?lesson=19
    But I recoment to use:

    glBindTexture(GL_..._2D, ???); // A smoke or ?
    glEnable(GL_BLEND);

    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_A...);
    --- or ---
    glBlendFunc(GL_SRC_ALPHA, GL_ONE);

    glBegin(GL_QUADS);
    glVertex3f(x-1, y-1, z);
    glVertex3f(x+1, y-1, z);
    glVertex3f(x+1, y+1, z);
    glVertex3f(x-1, y+1, z);
    ...
    Open Software

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2002
    Location
    St. Louis, MO USA
    Posts
    177

    Re: Particle FX

    nehe.gamedev.net has a tutorial on how to make a simple particle system. Basically, for most types of particle effects, you just draw lots of small textured quads (typically the texture is just a feathered dot which fades into complete transparency) on top of each other. You use a blend mode that brightens, so that you get bright highlights (this works well for magic effects, fire, and other things).

    Water can be extremely complicated and is not really the same problem as a particle system, though you may use particles to add splashes and stuff to your water.

  5. #5
    Intern Newbie
    Join Date
    Mar 2004
    Location
    Poland
    Posts
    31

    Re: Particle FX

    Thanks.

    If have more suggestions- post it
    One star? I am learning, and not giving bad advices. So: WHY?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •