Hello,

Most OpenGL 2.0 drivers support NPOT textures as Texture2Ds (without using TextureRectangle ARB extensions) as per the OpenGL 2.0 spec. Yet OpenSceneGraph still resized an NPOT texture to power of two dimensions when used in a Texture2D, even when OpenGL 2.0 is present. Why is this?

I tested this with a 1280x1024 image. Using osg::TextureRectangle, the image is used in the texture as is. But using osg::Texture2D, I get this message:

Scaling image 'data/texture1280x1024.jpg' from (1280,1024) to (1024,1024)

I notice this message comes from Texture::applyTexImage2D_load(). Should this (or the calling method) be updated to check for OpenGL 2.0 and not resize if it is present? I can volunteer for this if it is desired.

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                        http://whitestar02.webhop.org/

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to