Hi David, On 27 October 2015 at 23:24, David Heitbrink <[email protected]> wrote:
> I have two separate issues with DDS textures. First and the most annoying > is after moving from OSG-3.2.x to OSG-3.4.0 my grayscale textures now show > up red. I did not change the source textures or models between versions. > I don't think this will a DDS plugin issue. Are you compiling the OSG with GL3 profile? There is now GL3 specific code path in src/osg/Texture.cpp that maps GL_INTENSITY and GL_LUMINANCE to GL_RED, as modern versions of OpenGL have deprecated these old single channel channels. > I have another problem with mip mapped dds textures. I have a number of > textures that have mip maps, stepping through the code after they are > loaded, it looks like OSG has the texture setup to use the mip maps. What I > am seeing it is clearly not using the mip maps. I modified a texture to > alternate the color on every level. I got the largest texture the entire > time. I also used a shader to turn the model solid red, if it had only 1 > texture level, and I got a red model. I suspect this might be more of a > driver/video card issue (Quadro K5000). > The DDS plugin used to discard the mipmap, but not honours it. The OSG will only render with mipmap if your have the osg::Texture MAG_FILTER set to one of the *_MIPMAP_* enum's, LINEAR or NEAREST for MAG_FILTER won't use mipmaps. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

