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
    Member Contributor
    Join Date
    Aug 2001
    Posts
    62

    Re: Lighting problem

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

Similar Threads

  1. Lighting problem
    By stefkos in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-09-2012, 11:36 AM
  2. Lighting problem,
    By dreamspaced in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-18-2005, 11:46 PM
  3. Replies: 4
    Last Post: 09-27-2004, 06:27 AM
  4. Odd problem with lighting...
    By Baltor in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-12-2004, 03:49 PM
  5. Lighting problem (opengl + shader lighting)
    By ox1d_47 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-19-2004, 09:43 PM

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