Hi,
I have a question. Why while reading dds file, to set number of mipmaps it is
using function osg::Image::computeNumberOfMipmapLevels( s, t, r ) but not what
is written in dds file header ?
I think that dds file knows better how many mipmaps it has inside.
Thank you!
Cheers,
Lukasz
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.
Hi,
i probably have solution for this problem, i have found a bug in dds plugin
ReaderWriterDDS.cpp
Line 633
unsigned numMipmaps = osg::Image::computeNumberOfMipmapLevels( s, t, r );
when compute numMipmaps returns wrong number. this number is less then number
of mipmaps in dds file(
3 matches
Mail list logo