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 4 of 4

Thread: Rotate a texture ?

  1. #1
    Guest

    Rotate a texture ?

    How can we rotate a texture 2D ? I rotate a GL_QUADS but the texture don't follow... Is there a function for the texture ?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2000
    Location
    Slovak Republic( Slovakia )
    Posts
    116

    Re: Rotate a texture ?

    You must transform texture coordinates.

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

    Re: Rotate a texture ?

    have u disabled texgen?
    are u specifying texture coordinates for each vertice eg glTexCoord2f(0,0)

  4. #4
    Guest

    Re: Rotate a texture ?

    Yes, I use the glTexCoord2f but the QUAD have a rotate of 45° (I don't use GenTex) and the texture is at 0°... Is there a solution ?

Posting Permissions

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