When I use gluBuild2DMipmaps to generate textures, sometimes created texture object has some missing parts.
It happens at random and missing image is not the same.
Can you suggest any reason?
My PC is
Pen2 350Mhz, 128MB memory with ATI Rage Pro 4MB.
i don’t remember what is doing GL_CLAMP, but try a GL_REPLACE
GL_CLAMP is a wrap mode (defines how the texture behaves when using texture coordinates outside the range [0, 1]. GL_REPLACE is a texture function, that defines how the texture is combined with the other colors. Did you mean GL_REPEAT?
I think gluBuild2DMipmaps function automatically scales to the power of 2.
Unfortunatelly, I do not have a control for the image size.
I agree that 500500 is pretty big, but my clients wants to use an air photo image with the dimension of 1000010000.
I divided it to small(?) pieces and experimenting with 3000*4000 region.
Do you think a good video board will solve this problem?
It does sound like a card/driver problem. But as someone said 48 textures of this size is very large (esp. for 4Mb of VRAM). Assuming you’re using 32bit colour, that’s over 40Mb of texture memory. The driver should deal with this … but …
I assume this textures are applied to a flat plane (an ortho type effect, even in perspective mode)? If not, it may be a z-buffer issue. Not very likely though - if you clear to a grey background it may be.
And you say clients? I don’t suppose you can ask someone esle to run your app then? At least that would prove the card problem.
But a possible solution would be to make a montage of all the images, and manually subdivide them to powers of 2 … not a nice job, but it may make a difference.
Finally … have you tried running the app with just a small subset of the total number of textures?