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 7 of 7

Thread: Alpha Blending

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    86

    Alpha Blending

    I'm trying to use additive blending on a bunch of fire particles. The fire particles are using a texture with no alpha. It works really well when the background is black. However, when the background is a light color, the fire particles blend with the background color and I end up with a white fire.

    How do I fix this? I like the additive blending when the fire goes from red to orange to yellow to white at the core.

  2. #2
    Intern Contributor
    Join Date
    May 2008
    Posts
    86

    Re: Alpha Blending


  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Alpha Blending

    Have you ever watched real fire over a bright white background ? It is just white.

  4. #4
    Intern Contributor
    Join Date
    May 2008
    Posts
    86

    Re: Alpha Blending

    No, I've never seen a completely white fire.

  5. #5
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Alpha Blending

    Because background in your chimney is dark.
    Try over snow on a sunny day.

  6. #6
    Junior Member Regular Contributor Kopelrativ's Avatar
    Join Date
    Apr 2011
    Posts
    212

    Re: Alpha Blending

    But then, who wants realistic effects? We want impressive effects :-)

    For some reference, see http://www.youtube.com/watch?v=ellRP5pYibs
    The clip contains a nice daylight firework, including explosives with lot of fire.

  7. #7
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Alpha Blending

    Nice smoke !

Posting Permissions

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