[vtk-developers] Texture handling: display subtexture vs. resample to power of two
Michael Halle
mhalle at bwh.harvard.edu
Mon Sep 8 12:16:30 EDT 2003
There are many legacy systems that won't support the new
non-power-of-two extensions in the latest version of OpenGL.
I would say that the vtk solution shouldn't *preclude* the use
of one of these extensions as a platform specific optimization.
David, is there an overriding reason not to make the non-p-o-two
handling automatic? Is it because SetLoadRegion() would be
useful outside of non-p-o-two handling?
Thanks, David!
Michael Halle
mhalle at bwh.harvard.edu
On Monday, September 8, 2003, at 11:33 AM, David Thompson wrote:
>> ...
>> Over the weekend I patched vtkOpenGLImageActor to use glTexSubImage2D,
>> so that the second time around only the image-size region of the
>> texture
>> is loading, eliminating the need to pad to a power of two. This
>> improves
>> the performance enormously for non-power-of-two images.
>> ...
>> What do people think?
> What about adding support for OpenGL texture extensions like
> ARB_texture_non_power_of_two
> (http://oss.sgi.com/projects/ogl-sample/registry/ARB/
> texture_non_power_of_two.txt)
> or NV_texture_rectangle
> (http://oss.sgi.com/projects/ogl-sample/registry/NV/
> texture_rectangle.txt)?
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list