Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Question About Texture

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002

    Question About Texture

    Now have a big polygon and a small texture matches a part of the big polygon.
    How can i paste the texture to the part of the big polygon by texture mapping or by another good way?
    thanks for answering my question!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Nov 2002

    Re: Question About Texture

    The key is glTexCoord2f(0.0,0.0); 0 - means start of the texture, 1 - end. If you need to clamp or repeat texture use 2,3.5 or other f accordingly. But in this case look for glTexparameteri() with GL_CLAMP, & GL_REPEAT (look at MSDN or RedBook). After geting on it you can look for GL_CLAMP_TO_EDGE somtimes more useful, but is at extension level if I remember correctly

Posting Permissions

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