Archived

This topic is now archived and is closed to further replies.

Repeating and clamping textures

This topic is 5270 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I''d like to know if there is possible to control how "big" the texture applied to a quadric is? If I use gluQuadricTexture () I can only control if there is a texture but not the way it is applied. Also, if I''m using automatic tex. coord. generation like: glEnable (GL_TEXTURE_GEN_S); ... glTexGenf (GL_S,...) how can I control repeating and clamping? There is no problem if I use glTexCoord and create object on myself, but if I don''t...hope you get what I mean.

Share this post


Link to post
Share on other sites
use the texture matrix for rotation translation or scaling
glMatrixMode(GL_TEXTURE);

i dont know how to control clamping but u could set the texture''s attribs to GL_CLAMP_TO_EDGE i think

Share this post


Link to post
Share on other sites