osgEarth 2.10 osgDB::readImageFile Issue

classic Classic list List threaded Threaded
1 message Options
Blanky Blanky
Reply | Threaded
Open this post in threaded view

osgEarth 2.10 osgDB::readImageFile Issue


So after upgrading from 2.9 to 2.10, I noticed some strange behavior with 2D images loaded in from the osgDB::readImageFile(const String& path) function. On a projected map it's fine, but on any geocentric map the image loads as a white blank square with no data. There's no error in the console, like if you were to put an incorrect path (which would return a nullptr). I noticed it happened with .svg, .png, and .jpeg (these are all we had for testing). Anyone have an idea why that may be happening on 3D specifically, but not the 2D Projected map?

P.S. We didn't change any of our code that did work and used the example from: http://docs.osgearth.org/en/latest/developer/utilities.html as a reference and it worked fine in the past. Also .osgb files are still fine when loading 3D models on either map type.

Thanks for any assistance.

- Blanky