Hi!
1. OpenGL 2.0 does support Texture2D with non-power of two sizes. Does
osg::Texture2D also support this?
2. Should one call something else, when creating Texture from an image, like
this:
Image* img = osgDB::readImageFile(cachename);
Texture* tex = new Texutre2D();
tex->setImage(0, img);
// this line return 1536 1536
printf("Tex loaded: %d %d\n", img->s(), img->t());
// the line returns 0 0
printf("Tex loaded: %d %d\n", tex->getTextureWidth(),
tex->getTextureHeight());
I mean, I loaded the image from a png file. img is not null, so it is valid.
But texture seems not to be created properly
3. How can one retrieve the id of a texture?
Thanks!
MfG, Art
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail:
http://mail.yahoo.de
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/