[osg-users] [osgPlugins] DDS textures not loading on Mac OSX and the latest trunk(3.5.0)

Robert Osfield robert.osfield at gmail.com
Tue Aug 18 06:28:12 PDT 2015

Hi Curtis,

I've tried the model under Linux and it works fine.  From converting to
.osgt I see the model originally had references to .dds files so presume
the osg::Image are generated with mipmaps and these are stored in the .ive
as they should be.

It very much looks like exactly the same problem - that OSX GL drivers
aren't handling pre generated mipmaps.  The workaround for this driver bug
is exactly the same as I outlined previously - a NodeVisitor that is run on
OSX that finds osg::Image with mipmaps assigned and disables them - this
approach works for .dds files loaded directly or osg::Image with mipmaps
that are embedded with an .ive or .osgb file.

On the OSG the only thing we could do is add such a hack, but as this
driver bug is very likely transient I don't see as something sensible to do
- we'd be disabling a feature on the OSX for an unspecified period going
forward and introducing hacks to the OSG that could introduce bugs


On 18 August 2015 at 14:10, Curtis Rubel <crubel at compro.net> wrote:

> Hi Robert,
> Maybe I spoke too soon...  Just to add some more data
> to this thread:
> The attached file, terrain.ive is something we use for testing
> and is also delivered with Sundog's Triton package as part
> of a demo.
> This file loads fine on Linux all versions of OSG.
> On the mac it loads fine on OSG 3.3.1, but since then
> no textures are loaded with this file.
> I also have another set of openflight files that have the
> same issue, Linux all versions is OK, Mac OS, nothing
> after 3.3.1 will load the dds textures.
> This link to a small sample database, also has issues
> on the Mac, but works fine on all Linux versions:
> https://www.dropbox.com/s/nm8f4op5ybw39dq/MalaysiaFlt.tjz?dl=0
> It is still likely that this is some Mac OSX OpenGL thing, but
> if some time comes up might be worth looking at just to
> be sure what is happening with them.  Maybe its an old
> version of flight formatting or something.
> Loading one of the flt tiles on the mac, the only suspicious
> message I see is:
> Warning: Detected OpenGL error 'invalid operation' at After Render::compile
> OpenGL extension'' is not supported.
> ...
> Thank you!
> Cheers,
> Curtis
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64824#64824
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150818/4914e00a/attachment-0002.htm>

More information about the osg-users mailing list