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 matrix

  1. #1
    Intern Newbie
    Join Date
    Mar 2005
    Posts
    42

    texture matrix

    hi i want to konw when i use
    glMatrixMode[GL_TEXTURE];
    then does the following codes like translate or scale make effect to the texture coordinate of the texture?
    or can i comprehend this process as the transform from [x,y,z] to [s,t,r]?
    thank you very much!

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,941

    Re: texture matrix

    The texture matrix transforms the texture coordinates.

    If you want (x,y,z) -> (s,t,r) you use glTexGen which is a different function.

    You can also use glTexGen and matrix operations together for cool effects because the texture coordinate transformation happens after texgen.

  3. #3
    Intern Newbie
    Join Date
    Mar 2005
    Posts
    42

    Re: texture matrix

    what is the "transforms the texture coordinates" mean? transform just the texture space axis so that the texture can be transforms? when we "transforms the texture coordinates" does the [x,y,z] to [s,t,r] changed?or does the texture vertex still map to the same volume vertex?
    thank you very much!

Posting Permissions

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