[osg-users] Single channel image

Tony Vasile minghia at gmail.com
Mon Mar 14 00:03:16 PDT 2016


Got this to work. It required to set the following attributes on the osg::Image object:


Code:

   image->setInternalTextureFormat(GL_ALPHA);
   image->setPixelFormat(GL_ALPHA);
   image->setDataType(GL_UNSIGNED_BYTE);




------------------------
Tony V

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66535#66535








More information about the osg-users mailing list