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

  1. #1
    Junior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Haifa, ISRAEL
    Posts
    101

    Texture color

    I see a strange phenomena in my application:
    The color supplied in glColor3f is combined in some way I don't know with a texture color.
    I draw a red line and after that I render a texture map and the texture becomes redish. I checked it in two different platforms and got the same result.
    Do someone know in which situtation this can happen?
    Many thanks
    Yossi

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Hannover, Germany
    Posts
    1,258

    Re: Texture color

    Oh, well, I think it is, when you specify to "modulate" the texture on the face/line/vertex which has got a color applied. The colors are then weighted between texture and face.
    - Michael Steinberg

  3. #3
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    79

    Re: Texture color

    Originally posted by Michael Steinberg:
    Oh, well, I think it is, when you specify to "modulate" the texture on the face/line/vertex which has got a color applied. The colors are then weighted between texture and face.
    Also, don't forget your GL_LIGHTING state.
    When lighting is enabled the texture is modulated by the glMaterial color properties, instead of glColor values.
    --
    Paolo M.

Posting Permissions

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