Hi,
So, I've run into a problem where I need to create a mipmapped float32
texture. My mipmapping code works fine for normal, 8 bit textures, but not
for 32 bit textures. My code:
#data = numpy.ndarray, float32, and 500x500x3
gluBuild2DMipmaps(GL_TEXTURE_2D,GL_RGB,500,500,GL_RGB,GL_FLOAT,data)
...complains that the the 7th argument ("data") is the wrong type. So . . .
what type should it be?
What to do?
Thanks,
Ian
|