[osg-users] Image file loading

Christian Schulte christian.schulte at onera.fr
Tue Aug 25 01:14:42 PDT 2015


Hi Julie,

have you tried to set the OSG_NOTIFY_LEVEL to DEBUG, in order to see 
what happens. If the file exists and loads correctly with other 
software, maybe your osgPlugin for the png file format has not been 
compiled or is not found. Look at the osgPlugin path for osgdb_png.dll.

Christian

Le 25/08/2015 08:02, Julie Green a écrit :
> Hi,
> I have a problem with image file loading
>
> Code:
>
> std::string path("D:/i.png");
> osg::ref_ptr<osg::Image> image = osgDB::readImageFile(path);
>
>
>
> The file is there, but my application doesn't load it.
>
> Thanks for your help!
>
> Cheers,
> Julie
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64881#64881
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
SCHULTE Christian
Ingénieur Recherche
Responsable du Laboratoire de Simulation
ONERA - DCSD/PSEV
Département Commande des Systèmes et Dynamique du Vol
ONERA - Centre de Salon de Provence
BA 701
13661 SALON AIR Cedex - France
Tel :04.90.17.01.45




More information about the osg-users mailing list