Jump to content
  • Advertisement
Sign in to follow this  
rick_appleton

texture filtering after creation of texture object

This topic is 5151 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

I was wondering why everyone indicates what filtering should be used before a texture is loaded, and thought I'd find out why. It appears that if you try to change the filtering parameters after creation of the texture, the texture turns white. However, I haven't been able to find anything in the redbook that says filtering should be set during setup of a texture. Any help?

Share this post


Link to post
Share on other sites
Advertisement
The blue book (see here) mentions no retrictions on when you can call glTexParameter apart from that you can't do it between glBegin and glEnd, so there should be no problem altering the min and mag filters after you've uploaded the tex image to gl.

Share this post


Link to post
Share on other sites
Texture parameters (including filtering) affect the bound texture object. You can change them anytime you want as long as you bind your texture before.

The major issue is that if you set your filtering to mipmap, you'll have to upload all the mipmap levels for your texture to be "complete" and be displayed correctly.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!