Hi, I have a problem with textures: my textures have sizes that are not power of two, and I don't want OSG to rescale them.
OSG show me a message like: > Scalling image '...' from (200x200) to (256x256) although I'm calling the function texture->setResizeNonPowerOfTwoHint(false); The code I'm using is: Code: osg::Image* image = osgDB::readImageFile(texturePath); osg::Texture2D* texture = new osg::Texture2D; texture->setDataVariance(osg::Object::DYNAMIC); texture->setResizeNonPowerOfTwoHint(false); texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR_MIPMAP_LINEAR); texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR); texture->setImage(image); Could someone tell me the reason of the problem and how can I solve it??? Thank you! Cheers, Manuel ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28809#28809 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

