It captured a texture, but not the texture I was looking for.
Code: osg::State * state=renderInfo.getState(); state->applyAttribute(texture); osg::Image *image=new Image(); image->readImageFromCurrentTexture(renderInfo.getContextID(),false,GL_UNSIGNED_BYTE); osgDB::writeImageFile(*image,"snap.png"); I'm guessing I'm either using the wrong context ID, or that I'm not applying the texture in the right way. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48079#48079 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

