[osg-users] Warning: Error in reading to jpg images
Christian Buchner
christian.buchner at gmail.com
Mon Nov 6 04:06:45 PST 2017
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 a fully static OSG build (including the JPEG plugin)
Christian
2017-11-06 9:42 GMT+01:00 Robert Osfield <robert.osfield at gmail.com>:
> 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 like the OSG isn't coming from
> the OSG side.
>
> Robert.
>
> On 4 November 2017 at 22:37, Rômulo Cerqueira
> <romulogcerqueira at gmail.com> wrote:
> > 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 unitary test code: https://github.com/Brazilian-
> Institute-of-Robotics/simulation-normal_depth_map/blob/master/test/
> NormalMapping_test.cpp
> >
> > I got the following output message:
> >
> > Code:
> >
> > Warning: Error in reading to "/home/romulo/gray_texture_n.jpg".
> >
> >
> >
> >
> > How can I fix this? I will appreciate any information or help on the
> same.
> >
> > Cheers,
> > Rômulo[/code][/b]
> >
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=72307#72307
> >
> >
> >
> >
> > Attachments:
> > http://forum.openscenegraph.org//files/screenshot_from_
> 2017_11_04_19_31_10_130.png
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> _______________________________________________
> 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/20171106/f61acf0d/attachment.html>
More information about the osg-users
mailing list