Hello everyone, I am trying to load an OpenGL texture into an osg::Image. I know the OpenGL textureId and I have attempted using both Image::readImageFromCurrentTexture after using glBindTexture() in a Drawable subclass as well as manually using glGetTex* calls to retrieve information about the texture from the texId and then using Image::setImage. I am doing all of this in a Drawable subclass and then returning the image to a class that draws a Geometry quad. I am calling Image::dirty() and have the dataVariance as DYNAMIC.
I am just getting the previosuly bound texture mapped to the quad. I have just loaded a random texture using osgDB::readImageFile and that works so I know I am mapping the texture correctly. Any idea if I am trying to set the osg::Image data incorrectly or if I am missing something that I need to do? Thanks! Cody
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

