Hi, I have two problems with texturing in osg.
1)The first problem is to create a procedural 2D texture.The setImage function doesnt work for me. I created a 2D texture array image[64][64][4]; image->setImage(64,64,1,4,GL_RGBA,GL_UNSIGNED_BYTE,(unsigned char*)checkImage,osg::Image::USE_NEW_DELETE); I get an error because it accepts only character type of data.Can some one point me to some example code or help how to use setImage functions for 2d procedural textures. 2)The second problem is ,Is there a way to get texture coordinates of a model with a given position in osg?? Thank you! Cheers, Tim ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15171#15171 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

