- March 24, 2007
- 12,073
- 7,459
- Home Country
- Germany
- Moderator
- #21
@Brownard could this be the cause for our problem? The following articles are about the different positions of "texel" (texture) and "pixel" (screen):
http://drilian.com/2008/11/25/understanding-half-pixel-and-half-texel-offsets/
https://msdn.microsoft.com/en-us/library/bb219690(VS.85).aspx
My fix attempt went into same direction (manipulating texture position/size), but maybe we need to check the vertex definitions? Here we are currently shifting position by -0.5 top/left but making the rect also +1 pixel wide. This would be the "outer boundary" of screen pixels. But if I understand the posts above correctly, this might not be correct?
http://drilian.com/2008/11/25/understanding-half-pixel-and-half-texel-offsets/
https://msdn.microsoft.com/en-us/library/bb219690(VS.85).aspx
My fix attempt went into same direction (manipulating texture position/size), but maybe we need to check the vertex definitions? Here we are currently shifting position by -0.5 top/left but making the rect also +1 pixel wide. This would be the "outer boundary" of screen pixels. But if I understand the posts above correctly, this might not be correct?