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@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

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to