I'm working on this today.. And I've noticed.. it's not just .png files. If
I use osgdb_ffmpeg, it takes over ALL images.
I'm attempting to walk through the call stack..
Code:
starting here...
Registry.cpp - line 992
ReadImageFunctor(const std::string filename, const Options*
My fix for this:
Upon inspection of ReaderWriterPNG.cpp
line - 371
Code:
virtual ReadResult readImage(const std::string file, const
osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(file);
if (!acceptsExtension(ext)) return
Hi Paul,
This sounds like a bug, the ffmpeg plugin should not attempt to load a
png file. What exactly happens?
As for changing the order, simple pre load the png plugin as this will
ensure it gets called first thanks to the Chain-Of-Responsibility
pattern used by it.
Robert
On 10 May 2015 at
3 matches
Mail list logo