Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have a set of square blocks, I want to draw them in a window. I am sure the coordinates calculation is correct. But on the screen, some squares' edge overlap with other, some are not.

I remember the problem is caused by accuracy of pixels. I remember there's a specific topic related to this kind of problem in 2D image rendering. But I don't remember what exactly it is, and how to solve it.

Look at this screenshot. Each block should have a fixed width margin. But in the image, the vertical white line have different width.Though, the horizontal lines looks fine.

enter image description here

share|improve this question
1  
Unfortunately, we can't really help you unless we have more details. What are you drawing with? –  Ben May 30 at 7:59
1  
And also an image of the problem would help in this case. –  Tordin May 30 at 8:05
    
guessing 3d pipeline and pixel/texel alignment issues? –  Jari Komppa May 30 at 9:17
    
This may be relevant: gamedev.stackexchange.com/questions/28836/… –  Jari Komppa May 31 at 5:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.