[osg-users] Set resize NPOT hint -- add to osgUtil Optimizer?

Jean-Sébastien Guay jean-sebastien.guay at cm-labs.com
Mon Mar 2 14:18:06 PST 2009

Hi Paul,

> Hi Robert -- I've got a client with some models that use NPOT textures. 
> Just loading the models and rendering them causes OSG to resize the 
> textures to powers of 2, even though NPOT is supported on their 
> hardware. We need a visitor that will walk the scene graph and call 
> setResizeNonPowerOfTwoHint(false) on each texture. I was wondering if 
> there was a larger need for such functionality? And if so, would this 
> fit in the Optimizer as part of the OPTIMIZE_TEXTURE_SETTINGS flag?

This precise functionality was on my todo list of items to do when I 
have a bit of free time. If you get to it first (or if you can get 
funding for it) be my guest, but otherwise I think I would have gotten 
to it in the next 2 months or so.

Jean-Sebastien Guay    jean-sebastien.guay at cm-labs.com

More information about the osg-users mailing list