Re: [osg-users] Texture2D non power of two and TextureRectangle
Hi Robert, I tested 2.8.2-rc1 with Texture2D and NPOT hint false and it is fixed. Thanks, Pat Robert Osfield wrote: Hi Patrick, Could you try the OpenSceneGraph-2.8.2-rc1 as one of the bug fixes was related to mipmapping and non power of two textures. Robert. On Tue, Jun 23, 2009 at 9:42 PM, Patrick Shinpaugh wrote: Hi, I am trying to use non power of two textures with OpenSceneGraph-2.8.0. Loading them into Texture2D and allowing them to be converted to power of two works fine - converts from 1024x683 to 1024x512 and displays as expected. When I set setResizeNonPowerOfTwoHint(false) then the texture no longer displays and if I replace Texture2D with TextureRectangle the texture does not display. I am using a Nvidia GeForce 9500 with both GL_ARB_texture_rectangle and GL_NV_texture_rectangle so I assume it should work. Any ideas? Thanks, Pat -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2D non power of two and TextureRectangle
My mistake. It does also support ARB_texture_non_power_of_two. Robert Osfield mentioned a bug fix related to NPOT with 2.8.2-rc1 which may fix it. Thanks Jason Daly wrote: Patrick Shinpaugh wrote: That fixed it and likely the same would be required for the NPOT texture2d. Actually, no. NPOT textures still use normalized texture coordinates (0.0 - 1.0). I'm not sure why they're not working in your case. You said your card supports the *_texture_rectangle extensions, but does it also support ARB_texture_non_power_of_two? --"J" ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2D non power of two and TextureRectangle
Hi Patrick, Could you try the OpenSceneGraph-2.8.2-rc1 as one of the bug fixes was related to mipmapping and non power of two textures. Robert. On Tue, Jun 23, 2009 at 9:42 PM, Patrick Shinpaugh wrote: > Hi, > I am trying to use non power of two textures with OpenSceneGraph-2.8.0. > Loading them into Texture2D and allowing them to be converted to power of > two works fine - converts from 1024x683 to 1024x512 and displays as > expected. When I set setResizeNonPowerOfTwoHint(false) then the texture no > longer displays and if I replace Texture2D with TextureRectangle the texture > does not display. I am using a Nvidia GeForce 9500 with both > GL_ARB_texture_rectangle and GL_NV_texture_rectangle so I assume it should > work. > > Any ideas? > > Thanks, > Pat > > -- > Patrick Shinpaugh > Virginia Tech > UVAG System Administrator/Programmer > 540-231-2054 > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2D non power of two and TextureRectangle
Patrick Shinpaugh wrote: That fixed it and likely the same would be required for the NPOT texture2d. Actually, no. NPOT textures still use normalized texture coordinates (0.0 - 1.0). I'm not sure why they're not working in your case. You said your card supports the *_texture_rectangle extensions, but does it also support ARB_texture_non_power_of_two? --"J" ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2D non power of two and TextureRectangle
That fixed it and likely the same would be required for the NPOT texture2d. Thanks for the help, Pat Stephan Huber wrote: Hi Patrick, Patrick Shinpaugh schrieb: Hi, I am trying to use non power of two textures with OpenSceneGraph-2.8.0. Loading them into Texture2D and allowing them to be converted to power of two works fine - converts from 1024x683 to 1024x512 and displays as expected. When I set setResizeNonPowerOfTwoHint(false) then the texture no longer displays and if I replace Texture2D with TextureRectangle the texture does not display. I am using a Nvidia GeForce 9500 with both GL_ARB_texture_rectangle and GL_NV_texture_rectangle so I assume it should work. I have no experience with NPOT Texture2D, but... if you are using TextureRectangle, be sure to provide tex-coords in pixel-space, not normalized tex-coords. So with your example use 1024 / 683 instead of 1.0. HTH, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2D non power of two and TextureRectangle
Hi Patrick, Patrick Shinpaugh schrieb: > Hi, > I am trying to use non power of two textures with OpenSceneGraph-2.8.0. > Loading them into Texture2D and allowing them to be converted to power > of two works fine - converts from 1024x683 to 1024x512 and displays as > expected. When I set setResizeNonPowerOfTwoHint(false) then the texture > no longer displays and if I replace Texture2D with TextureRectangle the > texture does not display. I am using a Nvidia GeForce 9500 with both > GL_ARB_texture_rectangle and GL_NV_texture_rectangle so I assume it > should work. I have no experience with NPOT Texture2D, but... if you are using TextureRectangle, be sure to provide tex-coords in pixel-space, not normalized tex-coords. So with your example use 1024 / 683 instead of 1.0. HTH, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Texture2D non power of two and TextureRectangle
Hi, I am trying to use non power of two textures with OpenSceneGraph-2.8.0. Loading them into Texture2D and allowing them to be converted to power of two works fine - converts from 1024x683 to 1024x512 and displays as expected. When I set setResizeNonPowerOfTwoHint(false) then the texture no longer displays and if I replace Texture2D with TextureRectangle the texture does not display. I am using a Nvidia GeForce 9500 with both GL_ARB_texture_rectangle and GL_NV_texture_rectangle so I assume it should work. Any ideas? Thanks, Pat -- Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org