On 01/11/2013 09:00 AM, Lukasz Izdebski wrote:
Hi,

But for example we have 512x512 dds texture compressed with DXT1 and in header 
we have 4 mipmaps.
In this example is meaningless to compute number of mipmaps, because OpenGL 
,with my knowledge, does not generate mipmaps for compressed textures. So 
setting bigger number of mipmaps is wrong.

Never mind what I said before  :-)

I think the check is to be sure that for some reason, the DDS file doesn't have too many mipmaps. The loader will take the number of mipmaps in the file, or the number of mipmaps that OpenGL can handle, whichever is less.

osg::Image automatically sets the GL_TEXTURE_MAX_LEVEL parameter to the number of mipmaps that are loaded.

--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to