fred_em wrote: > > Code: > [...] > tb->setInternalFormat(GL_RGBA8UI); // 4 bytes per pixel, R-G-B-A format as > per EXT_texture_integer formats specification > osg::Image *image = new osg::Image(); > image->allocateImage(128*128, 1, 1, GL_RGBA_INTEGER, GL_UNSIGNED_BYTE, 1); // > note: width=(128*128), height=1 > tb->setImage(0, image); > > > >
I am getting the same bogus result with the following standard pixel format (eg. not using EXT_texture_integer): Code: [...] tb->setInternalFormat(GL_RGBA8); // 4 bytes per pixel, regular RGBA normalized pixel format osg::Image *image = new osg::Image(); image->allocateImage(128*128, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, 1); tb->setImage(0, image); ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35798#35798 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

