View Full Version : Question About Texture

11-20-2002, 10:38 PM
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!

11-20-2002, 10:56 PM
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 http://www.opengl.org/discussion_boards/ubb/smile.gif