[vtkusers] question for opengl experts

Jeff Lee jeff at cdnorthamerica.com
Fri Mar 19 16:41:18 EST 2004


Leila,
It happens in vtkOpenGLTexture.cxx.  When the texture loads, it checks 
the dimensions and resamples if either dimension is not a power of 2.  
It also resamples if either dimension is greater than OpenGL can handle.
-Jeff

Leila Baghdadi wrote:

>Hi everyone
>
>I was reading the vtk user's guide, using texture page 54, and there is a 
>note there talking about graphics hardware/libraries only accept powers 
>of two in dimension,
>does it mean 2,4,8...
>or how does that work and where is the code that deals with this to 
>generate a power of two dimension.
>
>
>Thanks
>
>
>Leila
>
>  
>

-- 
Jeff Lee
Senior Software Engineer
Computational Dynamics North America Ltd
21 Lafayette Street, Suite 230
Lebanon NH 03766 USA
fax:   603 643 9994
phone: 603 643 9993 x109
http://www.cd-adapco.com




More information about the vtkusers mailing list