Results 1 to 2 of 2

Thread: Alpha Bending?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2003
    Location
    Conneaut, Ohio USA
    Posts
    13

    Alpha Bending?

    1.) How is it done?
    2.) Is it hard to do?
    3.) Does the bended part have to be black?
    4.) Could you link me to some good tutorials on it?
    -Krak

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Alpha Bending?

    Alpha Bending? Never heard of it. Oh.... you probably mean Alpha Blending.

    1) Instead of standard RGB colors, you can have an additional Alpha component to make RGBA colors. This fourth component is then used in some way to blend multiple colors together. One of the most common ways this is done, is by using the alpha to specify a sort of "level of transparency." In OpenGL, to do blending you typically use glEnable(GL_BLEND) and glBlendFunc with the parameters to specify the type of blending you want to do. (e.g. glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA). Read up on these functions for more details.


    2.) It's not hard to do if you understand what you are doing.

    3.) No the blended part can be any color you want.

    4.) I'm pretty sure http://nehe.gamedev.net has some tutorials on blending.
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. Fragment shader + alpha bending problem...
    By wizardcoder in forum OpenGL: GLSL
    Replies: 0
    Last Post: 05-27-2017, 11:18 AM
  2. Texture bending
    By stenio in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-04-2011, 09:14 AM
  3. bending a rectangle
    By kore in forum OpenGL: General
    Replies: 12
    Last Post: 03-11-2004, 12:01 PM
  4. Bending Pipe
    By jimmy001 in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-06-2002, 07:40 PM
  5. Bending Cylinders
    By Thug in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-23-2001, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean