Re: [osg-users] Warning: Error in reading to jpg images

2017-11-07 Thread Rômulo Cerqueira
Hi Christian and Robert, I solved in an alternative way: converting my images to PNG. I did not change anything in the source code and it worked! ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72323#72323

Re: [osg-users] Warning: Error in reading to jpg images

2017-11-06 Thread Christian Buchner
Could this be caused by a static osg::Image() object (or another static object that creates the osg::Image in its constructor) that's getting initialized before the program's main() function is even called? This is too early, as OSG plugins would not be registered at that point. It might work with

Re: [osg-users] Warning: Error in reading to jpg images

2017-11-06 Thread Robert Osfield
Hi Rômulo, I have had a look at the debug output and the error message is being reported prior to any of the OSG messages. I had done a search for the warning string in the OSG using: cd OpenSceneGraph grep -r "Warning: Error in reading to" . But don't get any hits. It looks to me

Re: [osg-users] Warning: Error in reading to jpg images

2017-11-05 Thread Rômulo Cerqueira
Follows attached my output info when OSG_NOTIFY_LEVEL = DEBUG. ... Thank you! Cheers, Rômulo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72310#72310 Attachments: http://forum.openscenegraph.org//files/debug_596.txt

[osg-users] Warning: Error in reading to jpg images

2017-11-04 Thread Rômulo Cerqueira
Hi community! I got some problems by loading JPG images using OSG. When I read them directly using osgviewer, the images are loaded with success. Code: osgviewer --image /home/romulo/gray_texture_n.jpg However, the problem occurs when I read the images by OSG code, as presented in my