Quote:Original post by nprz
offsetting the TexCoord by 0.05 or any amount will just move what part of the texture is displayed. and changing the Vertex will just move where it is displayed.
aha! I knew I wasnt going crazy;
This talks about what I was waffling on about.
Granted, the answer assumes you are using a texture of the right size, but in your case the jitter should be 1/<texture width> across and 1/<texture height> down, that might fix the problem.
Really, to get proper texel=>pixel alignment you'll want the cards to be proper size and then set the 2D Ortho projection so that it 0=><card width> will give you the correct size card for pixel perfect drawing, then the texture sample jitter should make any issues go away.
Quote:
Can anyone recommend any files to load BMP as a texture, so I can at least try that?
I'm betting it wont matter.
Your suffering from the fact that texels arent sampled in the centre but at the edges, so when you ask for 1,1 you infact get a sample of a few pixels in the area to build that texel.
So, my advise, make each card proper size, set up a 2D Matrix so each card will be drawn proper size and then jitter the U,V coords slightly to get around the off center sampling.
[Edited by - _the_phantom_ on January 4, 2005 11:01:57 PM]