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: Textures problem

  1. #1
    Guest

    Textures problem

    I draw a box with 6 textures and inside of it (the viewing position is in the box)
    a set of triangles .
    For some reason I can`t get true colors for the triangles ( instead of the ones I define , I get green colors).
    I use 2 modes - non textured and a textured one , and it occures only in the textured mode .

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Breda, Netherlands
    Posts
    57

    Re: Textures problem

    When drawing a polygon with GL_TEXTURE_2D (or something like it), and not setting any texture points, your polygon will get the color of the point (0,0) of the texture (i guess). So when drawing a polygon without a texture you must set glDisable(GL_TEXTURE_2D);

    well, this is what I found to be true. Don't know if it can be done differently.

    John

  3. #3
    Guest

    Re: Textures problem

    Thanks !!
    It works.

Posting Permissions

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