hi all,
 I want to capture the screen ,what I have done is to add a eventhandler in 
which I add code like this
  
     osg::ref_ptr<osg::Image> image = new osg::Image;
    image->readPixels(0,0,m_iWidth,m_iHeight, GL_RGB,GL_UNSIGNED_BYTE);
    osgDB::writeImageFile(*image,"D:\\abc.bmp");
  
 what I get is blank image.
 I googled that maybe I should do this in DrawCallBack. I eagerly want to know 
why my code doesn't work. Is pixel in FBO erased before EventTraverse ?
  
 Thanks for any hint
 best regards
 forest
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to