Results 1 to 2 of 2

Thread: Lighting

  1. #1



    I'm trying to light a simple cube using a single light located pretty much where the viewpoint is. I've set up normals and everything, as well as the light's parameters but with GL_LIGHTING enabled the image becomes greyscale. I don't want to have to set up texture maps or anything for my cube, just keep the original colours of each of the cube's faces as they would be affected by a white light. Cheers,


  2. #2
    Member Contributor
    Join Date
    Feb 2001

    Re: Lighting

    I think glColorMaterial should make it.

Similar Threads

  1. How to introduce Specular and Diffuse lighting into Bumped lighting
    By Liable in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-06-2004, 05:48 PM
  2. Lighting problem (opengl + shader lighting)
    By ox1d_47 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-19-2004, 09:43 PM
  3. debug lighting vs release lighting
    By haust in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-30-2003, 10:43 AM
  4. lighting back facing triangles _without_ using two sided lighting
    By Nicolas Lelong in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 02-07-2003, 03:05 AM
  5. About lighting (not OpenGL lighting, but general lighting)
    By Anonymous Coward in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-04-2001, 09:10 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