does this rule solve the issue of what to do with overlapping line ends as you framed it at the beginning of the video? couldn't you still have two lines terminating at the same coordinate and exiting the diamond, thus an ambiguity?
Thanks for the comment - I can see how I didn't explain that fully. First, if lines end at the same coord (assuming mid pixel thus no exit), neither draws the last pixel. However, if you start two lines from the same spot, they will both draw the first pixel. To take this case to the extreme, if you draw two identical lines, they both draw the same pixel. The diamond exit rule doesn't solve what to do when things naturally overlap, and draw order typically still matters with the simplest solution being the last to draw, draws on top. What it does do is to create a nice standard such that you minimize these issues. With cases line line strips, for example, you start and end on the same spot - the start point has an exit (and gets filled), the exit point has no diamond exit (and doesn't) so you get consistency.
Thanks for your all upload from KOR
does this rule solve the issue of what to do with overlapping line ends as you framed it at the beginning of the video? couldn't you still have two lines terminating at the same coordinate and exiting the diamond, thus an ambiguity?
Thanks for the comment - I can see how I didn't explain that fully. First, if lines end at the same coord (assuming mid pixel thus no exit), neither draws the last pixel. However, if you start two lines from the same spot, they will both draw the first pixel. To take this case to the extreme, if you draw two identical lines, they both draw the same pixel. The diamond exit rule doesn't solve what to do when things naturally overlap, and draw order typically still matters with the simplest solution being the last to draw, draws on top. What it does do is to create a nice standard such that you minimize these issues. With cases line line strips, for example, you start and end on the same spot - the start point has an exit (and gets filled), the exit point has no diamond exit (and doesn't) so you get consistency.
@@uofmintroductiontocomputer5167 that makes sense, thanks!