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

Thread: lighting and aplha blending

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2003
    Posts
    1

    lighting and aplha blending

    hi all!

    i have a little problem:
    can i use lighting and aplha blending together??? if yes, how???

    thnx for advise

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: lighting and aplha blending

    Lightmapping ?

  3. #3
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,006

    Re: lighting and aplha blending

    There are many ways of doing this. Please explain your situation better.

    If you want a constant alpha, set the alpha of the diffuse material property and enable blending as usual.

    If you want per-vertex alpha, use color material mode, pass a color per-vertex and enable blending as usual.

  4. #4
    Member Regular Contributor
    Join Date
    Feb 2002
    Location
    Hamburg, Germany
    Posts
    415

    Re: lighting and aplha blending

    the correct answer is: yes. glEnable(GL_BLEND); glEnable(GL_LIGHTING);

    [This message has been edited by AdrianD (edited 12-16-2003).]

Posting Permissions

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