[osg-users] Opening .ico image files with osgDB::readImageFile
Hi, I was wondering if there is a way to read an .ico file, preferably using osgDB. When I try to use it in the following way: Code: osg::Image* icoImage = osgDB::readImageFile("delete.ico") icoImage is null. Thank you! Cheers, Eran -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=73029#73029 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] td
___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] 取消邮件订阅
___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] TD
___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Read frame buffer back into main memory
Hello Robert, And thanks for you message. I am trying to write the image to a file using Code: class ReadPixelsCallback : public osg::Camera::DrawCallback { public: virtual void operator()( osg::RenderInfo& renderInfo ) const { osg::GraphicsContext* gc = renderInfo.getState()->getGraphicsContext(); int width = gc->getTraits()->width; int height = gc->getTraits()->height; osg::ref_ptr image = new osg::Image; image->readPixels(0, 0, gc->getTraits()->width, gc->getTraits()->height, GL_RGB, GL_UNSIGNED_BYTE); bool retValBmp = osgDB::writeImageFile(*image, "/home/enjyi/testImage.bmp"); bool retValJpg = osgDB::writeImageFile(*image, "/home/enjyi/testImage.jpg"); } }; but all I get is Code: Error writing file /home/arennuit/testImage.bmp: Warning: Could not find plugin to write image to file "/home/arennuit/testImage.bmp". Error writing file /home/arennuit/testImage.jpg: Warning: Could not find plugin to write image to file "/home/arennuit/testImage.jpg". Any idea why OSG cannot my plugins? Regards, Antoine.[/code] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=73025#73025 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Issues with Qt based application and occulusion queries
Hi, did anyone ever had problems with OpenGL occlusion queries, either by using GL_NV_occlusion_query or GL_ARB_occlusion_query directly, or by using the OpenSceneGraph functionality? I'm just hoping to get some hints where to look after. Greetings, Daniel ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org