07-26-2004, 08:08 AM
Hello,
I'm using quads to display textures in glOrtho (for 2d). My problem is that I have a texture that is 64x64, and when I create a quad of size 64, the image is nearly double the size.
If I divide the quad by half, that is make it 32x32, the texture appears to be proper size.
This is somewhat confusing to me. The only thing I can think is that I'm specifying pixel sizes, but opengl doesn't take quad sizes in pixel size? Is that true?
What other factors might be contributing to this, or, rather, what is the proper way to size a quad to the texture size? Later on in my program this could be very annoying, so I figure I should address it now.
Thanks folks,
Catch
I'm using quads to display textures in glOrtho (for 2d). My problem is that I have a texture that is 64x64, and when I create a quad of size 64, the image is nearly double the size.
If I divide the quad by half, that is make it 32x32, the texture appears to be proper size.
This is somewhat confusing to me. The only thing I can think is that I'm specifying pixel sizes, but opengl doesn't take quad sizes in pixel size? Is that true?
What other factors might be contributing to this, or, rather, what is the proper way to size a quad to the texture size? Later on in my program this could be very annoying, so I figure I should address it now.
Thanks folks,
Catch