PDA

View Full Version : texture offset



V-man
06-13-2002, 05:35 PM
Is there a way to add an offset to the mipmap picking algorithm?

I mean, while a textured polygon is rendering, a certain mipmap is picked using an algorithm. Is it possible to offset this "value".

V-man

dorbie
06-13-2002, 06:28 PM
http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_lod_bias.txt

zeckensack
06-13-2002, 06:28 PM
Sure: http://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_lod_bias.txt

If you want to clamp lod levels (you know you want to), have a look this: http://oss.sgi.com/projects/ogl-sample/registry/SGIS/texture_lod.txt

Ouch, twenty seconds late http://www.opengl.org/discussion_boards/ubb/frown.gif

[This message has been edited by zeckensack (edited 06-13-2002).]

V-man
06-14-2002, 08:38 AM
great! Too bad we don't have control over the dimensions of the textures.

Is it possible to create any mipmap we want for example:

500 x 500
400 x 400300 x 300

and so on...

The texture rectangle from NV can do this or is it just for uploading non_power_of_2 textures for level 0?

V-man