Dear all:

Does anyone know how can I disable the "setResizeNonPowerOfTwoHint" option
of the textures of a loaded model?
For individual textures it is done in the following way:

     myTexture->setResizeNonPowerOfTwoHint(false);

but in the case of textures which belong to a loaded model like

     osg::ref_ptr<osg::Node> importedRoad = osgDB::readNodeFile(
"roadGeom.ive" );

I don't know how to do it. I want to disable this option because when these
road textures are first "seen" by the camera, the program stops for a moment
to scale them to the power of two and it is quite rough.

Thanks a lot,
Alfonso
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to