Jump to content
  • Advertisement

Archived

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

Wingman

Repeating and clamping textures

This topic is 5466 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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!