Hi Phummipat,

   osg::ref_ptr<osg::Image> image = osgDB::readImageFile("Sunset.bmp");

Can you at least check that image is not null at this point?

     if (image.valid())
       image->scaleImage(256,256,1);
     else
         std::cout << "Image not found" << std::endl;

   return 0;
}

If that's not the problem, run in a debugger and step into scaleImage() and see why it's failing...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to