Rectangular texture mipmaps in opengl

Rectangular texture mipmaps in opengl

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Rectangular texture mipmaps in opengl

Post by Beherith »

I read something in the orange book about openGL not supporting mipmapping for rectangular textures. Is this true for power of two rectangles as well? Because if it is, I think I know why my trees have some artifacts.
No bias or lod parameters for rectangular textures, multi-sample textures, or texture buffers are supported because mip-maps are not allowed for these types of textures.
http://www.opengl.org/registry/doc/GLSL ... .50.09.pdf page 98
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Rectangular texture mipmaps in opengl

Post by Kloot »

No, mipmapping is always possible for PO2 textures (square or rectangular).

Also, the ARB_texture_non_power_of_two extension supports mipmap generation for the non-PO2 case (unlike ARB_texture_rectangle).
Last edited by Kloot on 22 Feb 2010, 10:44, edited 2 times in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Rectangular texture mipmaps in opengl

Post by Beherith »

Ok, thanks!
Post Reply

Return to “Engine”