How to manipulate mipmap levels of detail?
Hi.
I use glTexParameteri ( GL_TEXTURE_2D, GL_GENERATE_MIPMAP_SGIS, GL_TRUE );
to generate mipmaps.
How can I manipulate the level of detail?
Use gluBuildMipmaps to build mipmaps at different levels.
EDIT:-
----
If you want to replace only a particular level of detail, just specify the level paramter in the glTexImage2D/glTexSubImage2D function and provide the milmap level pixel array.
[Edited by - dimensionX on September 25, 2005 12:35:21 PM]
EDIT:-
----
If you want to replace only a particular level of detail, just specify the level paramter in the glTexImage2D/glTexSubImage2D function and provide the milmap level pixel array.
[Edited by - dimensionX on September 25, 2005 12:35:21 PM]
no.
The OP has turned on automatic mipmap generation, this means that when you update the 0 level of the mipmaps the rest are automatically made for you,using gluBuildMipmaps() would be a waste of time as you are undoing the work the driver has done for you already.
@OP:
What you do mean by 'manipulate the level of detail' ?
The OP has turned on automatic mipmap generation, this means that when you update the 0 level of the mipmaps the rest are automatically made for you,using gluBuildMipmaps() would be a waste of time as you are undoing the work the driver has done for you already.
@OP:
What you do mean by 'manipulate the level of detail' ?
I want to make textures look less blurry at the distance,because the default level of detail overblurs them.
Anisotropic filtering is great for better quality/less blurry textures. See www.bit-tech.net for a visual demonstration. Also see nVidia Anisotropic Filtering. Does that help you?
[Edited by - Ro_Akira on September 26, 2005 2:27:33 AM]
[Edited by - Ro_Akira on September 26, 2005 2:27:33 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement