Jump to content
  • Advertisement
Sign in to follow this  
Calefaction

OpenGL Programatically changing LOD bios

This topic is 5387 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 programatically possible to change the LOD bias via OpenGL? I am assuming it would be a card specific extension (as the setting is a driver setting), but I can't seem to find any information about it. Has anyone done this programatically?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
You can change lod bias in OpenGL vertex programs (ARB and GLSL)

Share this post


Link to post
Share on other sites
u dont need vertex programs
from memory texture_lod_bias came it with opengl1.2 or 1.3
look it up in the spec

Share this post


Link to post
Share on other sites
Nevermind, I found it. OpenGL 1.4, GL_TEXTURE_LOD_BIAS. How is it used though? glTexParameterf seems to be rejecting it, is it a texture environment setting?

Share this post


Link to post
Share on other sites
Quote:
Original post by Calefaction
Hmmm, I can't find much about texture_lod_bios, is it an NV extension?


It's an EXT extension (used to be SGI or SGIX): GL_EXT_texture_lod_bias

It's pretty straightforward to use:


glTexEnvf(TEXTURE_FILTER_CONTROL_EXT, TEXTURE_LOD_BIAS_EXT, foo);

Share this post


Link to post
Share on other sites
Its an EXT extention, google provides: Linky.

Theres another (more useful IMHO) extensions for clamping the mipmap selection to a range, but I can't remember the name of that one offhand.

Share this post


Link to post
Share on other sites
Thanks, I got it working :) For now I am just implementing the LOD bias, eventually I will look in to implementing the clamp ranges :)

Also, this was incorporated in to OpenGL 1.4, so you don't have to use it as an extension anymore :) Provided they have an OpenGL 1.4 compliant driver of course.

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.

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!