Results 1 to 3 of 3

Thread: Unavoidably dark colors in polygons?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Posts
    1

    Unavoidably dark colors in polygons?

    I am programming a driving simulator for a psychology experiment, and have a GL_QUADS square drawn to act as a target area for the subject. I am trying to change the color of this polygon, but no matter what color I use I get a nearly black color. On my friend's computer, the only color change that shows is pure green, which actually shows up as a brownish green.

    I've tried to add ambient lighting to brighten the color, to no avail. Does anyone know why colors on a polygon would always turn out so dark, or how to specify a brighter color? I've used several forms of glColor3D at the beginning of my polygon definition, with the same result for each (even changing the alpha value seems to have no effect).

    If anyone can help I'm indebted for life.. thanks,

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Philippines
    Posts
    11

    Re: Unavoidably dark colors in polygons?

    Make sure you disable texturing when rendering your polygon. Chances are the dark color you are seeing is a dark area on a texture you've loaded.

    This assumes that you have textures loaded somewhere in your program. But if you are not using textures, then this may not be the solution to your problem. cheers!

  3. #3
    Member Contributor
    Join Date
    Feb 2004
    Posts
    98

    Re: Unavoidably dark colors in polygons?

    Lighting could also be the culprit.

    Disable lighting for that polygon. Then re-enable after.

Similar Threads

  1. Replies: 3
    Last Post: 06-19-2016, 08:11 AM
  2. Replies: 2
    Last Post: 06-15-2015, 03:26 AM
  3. To display of concave polygons, polygons containing holes
    By deepa in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-13-2004, 09:22 PM
  4. Dark textures in a dark scene
    By nexusone in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-30-2002, 07:33 AM
  5. Filling polygons with colors
    By imported_Ramesh in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-29-2000, 06:29 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