Results 1 to 3 of 3

Thread: World Color

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    21

    World Color

    Ok, this should be a nice easy one for someone out there.

    I just can't seem to find it.

    How do you set the default world color from black?

    Right before I do any pushmatrix calls, I have this....

    glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    //glColor3f(0.0f, 1.0f, 0.0f); //doesn't change the color

    I put a poly behind everything and colored that, but I know there's a better way.

    Thanks,

    Zath

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    659

    Re: World Color

    try glClearColor(0.0, 1.0, 0.0, 1.0);

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    21

    Re: World Color

    Excellent!

    Thanks,

    Zath

Similar Threads

  1. world coordinates from Color value returned
    By iris_raj in forum OpenGL: GLSL
    Replies: 1
    Last Post: 03-01-2007, 04:08 AM
  2. Continuous World / World Wrapping
    By MicahBrening in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 02-24-2007, 06:46 PM
  3. High color/true color troubles on Win2000
    By Lelik in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-22-2004, 04:39 AM
  4. Read pixel color at world coords
    By VIT in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 08-30-2000, 06:19 AM
  5. color buffer color as source for register combiners
    By Kosta in forum OpenGL: General
    Replies: 1
    Last Post: 07-11-2000, 09:47 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