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: Removing color

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2000
    Posts
    15

    Removing color

    I've created a program to view objects, and everything is working fine except the color. Solid objects that i need to use color with, but when i get to and object with texture on it, it is still covered with the color instead of the texture. Is there any way to remove the color value i've set with glColor3f?

    thanx ahead of time

    wire

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: Removing color

    i dont think so u can set it to white though.
    btw is texturing enabled also try using GL_DECAL or GL_REPLACE in the glTexEnvf(GL_TEXTURE_ENV,..) function

  3. #3

    Re: Removing color

    I concur with Zed. You have two choices: a) use a texture mode that doesn't blend the object's color with the texture, or b) set your color to white.

    Using GL_DECAL or GL_REPLACE will give the best performance if you never intend to blend a texture with a polygon's base color.

Posting Permissions

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