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

Thread: Lighting problem

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Hattiesburg, MS, U.S.A
    Posts
    15

    Lighting problem

    I approximated ribbon by using a lot of polygons, and i used flat shading, i.e I calculate the the normal for every tiny polygons. My problem is one side of the ribbon looks ok, and if i twist the ribbon, i saw the other side, the other side looks too dark, as a matter of fact, I want the other side looks darker, but not too dark, what's the problem?

  2. #2
    Junior Member Newbie
    Join Date
    Jul 2001
    Posts
    18

    Re: Lighting problem

    Set your ambient light level higher.
    For example:

    static const GLfloat c3dPropertiesAmbient [] = {0.50, 0.50, 0.50, 1.00};
    glLightfv( GL_LIGHT0, GL_AMBIENT, c3dPropertiesAmbient);

    [This message has been edited by zoldar256 (edited 08-23-2001).]
    W-E-R-D

  3. #3
    Intern Contributor
    Join Date
    Aug 2001
    Posts
    62

    Re: Lighting problem

    are you applying lighting calculations to boths sides of the polygons?

Posting Permissions

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