Jason Daly wrote: > David Glenn wrote: > Both Texture2D and TextureRectangle can work with non-power of two > textures, if your graphics hardware supports it. Every OpenGL > 2.0-compatible graphics card should handle this without a problem. > > The main difference with TextureRectangle is that it uses non-normalized > texture coordinates, so if you have a 640x480 image, your texture > coordinates on your geometry must range from 0-639 and 0-479 to show the > whole image. > > The simplest thing to do is to call setResizeNonPowerOfTwoHint(false) on > your Texture2D object, and all should be well. > >
Funny thing J, for what it's worth, the Performer code still gives me the Magic Number Error if I feed it any texture that is wrong and I know I'm using OpenGL 2.0. So I thought in that case it was a performer thing. Well I’m talking about 5+ year old code at best, that was hacked from something that was designed to run on an old SGI box. God knows what I'm going to get out of it! D Glenn ------------------------ D Glenn (a.k.a David Glenn) - Join the Navy and See the World ... from your Desk! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=25148#25148 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

