Jump to content
  • Advertisement

Archived

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

Neoteric

Mipmap level?

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

Is it possible to manually select a mipmap level? I used GL_GENERATE_MIPMAP_SGIS to make them but want to render to a specific level through out or bound to separate texture units. Is it worth finding out how to use GL_EXT_texture_lod_bias? Preferably I would like to stick to glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 2 ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 2 ); But for some reason it runs very slowly. [edited by - Neoteric on September 21, 2003 8:59:38 AM]

Share this post


Link to post
Share on other sites
Advertisement
The glTextImage2D and glTexSubImage2D funtions both take for the second parameter the mipmap level to which you want to upload the texture data.

Share this post


Link to post
Share on other sites
Sorted it a while ago,

glTexParameteri( GL_TEXTURE_2D, GL_GENERATE_MIPMAP_SGIS, GL_TRUE);

...generates new mipmaps whenever the base image changes, changing the base level obviously does this again, so mipmap generation needs to be switch off.

Only problem is now I''m drawing to a pbuffer and I can''t force an update of the mipmaps now, so the only the first frame rendered gets down sampled. If anything is rendered under original size it all goes wrong.

Help appreciated.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!