Qu0ll
05-09-2011, 08:36 AM
I posted in this forum some time ago about my desire to render crisp lines when they are perfectly horizontal or vertical i.e. if I specify a line width of 1px, I want only 1 pixel to be used to render the line, not 2 or more that would occur if multisampling or line smoothing were used.
At the time there were two main suggestions namely to disable multisampling when I am drawing such lines and to somehow align the rendering with the pixel grid.
I have tried the first suggestion and it works to a point i.e. it does draw crisp horizontal and vertical lines when multisampling is otherwise applied but if the user goes to their graphics card driver settings and manually overrides the antialiasing by selecting SS (super sampling) then all bets are off and the thick lines return.
So I'd like to try the second suggestion of aligning the rendering to the pixel grid. I have to say I am not entirely sure what this means so could someone let me in on the technique to achieve this?
At the time there were two main suggestions namely to disable multisampling when I am drawing such lines and to somehow align the rendering with the pixel grid.
I have tried the first suggestion and it works to a point i.e. it does draw crisp horizontal and vertical lines when multisampling is otherwise applied but if the user goes to their graphics card driver settings and manually overrides the antialiasing by selecting SS (super sampling) then all bets are off and the thick lines return.
So I'd like to try the second suggestion of aligning the rendering to the pixel grid. I have to say I am not entirely sure what this means so could someone let me in on the technique to achieve this?