Hi Erland, The OSG by default with use glu to rescale non power of two textures as required so you code doesn't need to do anything special. If your hardware supports non power of two textures then you can do:
texture->setResizeNonPowerOfTwoHint(false); This isn't on by default because some hardware announces support for the extension (it's part of OGL 2.0) but drops down to software rendering when you pass a non power of two texture, so its something to be cautious about using. Robert. On Wed, Apr 30, 2008 at 3:36 PM, <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > I want to creating power of two textures using nonPow2 images for backwards > comptability ( I dont want to use TextureRectangle). > > > > It seems that Texture2D does this for you using the standard settings by > operations by scaling the image. (Am i right?) Which seem to be a costly > operation. > > > > Before using OSG, i created a texture using a pow2 size larger then the > image size, then using glTexSubImage2D and scaling the texcoords i got the > correct texture and mapping using pow2 texture. > > > > Is this what the GlyphTexture is for? Or how would you do this? > > > > Thanks! > > > > Erlend > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

