Results 1 to 3 of 3

Thread: Texture problems

  1. #1
    Junior Member Newbie
    Join Date
    May 2003
    Posts
    3

    Texture problems

    I've written a program in which I create texture mapped polygons, along with non texturemapped polygons. It seems as though the colors of the texture affects the colors of the non-texture mapped polygons. Does anyone have any insight into this? Thanks.

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: Texture problems

    How do you define "non-texture mapped"?
    If you mean your not sending TexCoords for those, then yes of course the texture will affect them, because all vertices get the texcoord assigned you sent last, because OpenGL is a state machine.
    You have to explicitly disable texturing for all texture units which had it enabled before.
    Or you could switch to a white texture and set texture environment to GL_MODULATE. Nah, just kidding.

  3. #3
    Junior Member Newbie
    Join Date
    May 2003
    Posts
    3

    Re: Texture problems

    Thanks, it worked, I never realized that you would have to disable texture mapping to draw normal, just colored polygons. Thanks a bunch.

Similar Threads

  1. Problems Texture Mapping with Float Texture
    By CelticBlues in forum OpenGL: GLSL
    Replies: 21
    Last Post: 02-08-2009, 04:13 AM
  2. More texture problems: here we go....again!
    By gui24a in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 08-25-2008, 12:30 PM
  3. Texture Problems ...
    By Saintex in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 07-22-2002, 07:38 AM
  4. Texture Problems
    By spectrum in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-09-2002, 02:58 AM
  5. AVI texture problems
    By dmsy in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-12-2000, 01:09 PM

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