[osg-users] Problem to load images

Robert Osfield robert.osfield at gmail.com
Wed Aug 9 22:53:31 PDT 2017


Hi Rômulo,

Given osgivewer --image is work then it suggests that the jpeg file itself
is OK, and the the OSG's jpeg plugin is OK and being found on loading.

This suggests the error coming from your application for some reason.
Could you post a code snippet for others to review to see if we can spot
the cause of the problem.

Also enable verbose debugging to see if this reveals anything i.e.

    export OSG_NOTIFY_LEVEL=DEBUG
    osgviewer --image /home/romulo/textures/gray_texture_d.jpg

Finally when posting error messages could you make sure you copy and paste
them directly into the email to make it possible to grep the OSG sources
for the error message.  This would help with pinpointing where the error
message is being generated and might provide some additional clues.

Robert.



On 7 August 2017 at 23:36, Rômulo Cerqueira <romulogcerqueira at gmail.com>
wrote:

> Hi,
>
> currently I have a problem to load and process image files in my OSG c++
> code. I got the message:
>
>
> Code:
> Warning: Error in reading to "/home/romulo/textures/gray_texture_d.jpg".
>
>
>
> However, this image exists and I can open it using:
>
>
> Code:
> $ osgviewer --image /home/romulo/textures/gray_texture_d.jpg
>
>
>
> What might have been?
>
> ...
>
> Thank you!
>
> Cheers,
> Rômulo[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=71379#71379
>
>
>
>
>
> _______________________________________________
> 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/20170810/1c442f83/attachment.htm>


More information about the osg-users mailing list