I have an array of integer variables as picture that should be showed on the geometry. On the code below is the datatext the pointer to my array. But I don't see anything on the Geometry (only the color of my geom) if I run the code below.
Can anybody help me what I have to complement on my code that I can see my texture on the geom. Thanks Sascha osg::Image* image=new osg::Image; image->setImage(size_grid,size_grid,1,GL_RGBA8,GL_RGB,GL_SHORT,datatext,osg::Image::USE_NEW_DELETE); if (image) { osg::Texture2D* texture = new osg::Texture2D; texture->setImage(image); stateset->setTextureAttributeAndModes(0,texture,osg::StateAttribute::ON); } geom->Setstateset(stateset);
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/