[vtkusers] vtkOpenGLTexture & power_of_2 resampling
Schaap, J.A. (LKEB)
J.A.Schaap at lumc.nl
Thu Jul 4 04:34:49 EDT 2002
Hi,
Unfortunately OpenGL has the strange restriction for textures that their dimensions have to be a power of 2. The vtkOpenGLTexture checks for that, and if the dimensions of the input-imagedata are not a power of 2, it
resamples the imagedata. This is of course a nice feature, but it only provides linear interpolation resampling. Would it be possible to extend the vtkOpenGLTexture class with NN-resampling?
Kind regards, Jorrit
More information about the vtkusers
mailing list