<div dir="ltr">Hi Ken,<div><br></div><div>This change looks good. OpenGL defines the viewport as going from (0, 0, winWidth, winHeight) in display coords, and the definition of Normalized Viewport Coordinates should follow naturally from that.</div><div><br></div><div>Also, using pixel centers doesn't work well if you want your displays to be resolution-independent.  Consider retina displays, for example: they take the original pixel, and divide it into four.  This causes the centers of the pixels at the outer corners of the viewport to shift.  But if everything is computed relative to the outside corners of those corner pixels, then dealing with different resolutions is no big deal.</div><div><br></div><div>I'm guessing that this change should have no impact on most users, because users generally stick to WorldCoords and DisplayCoords.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 25, 2015 at 8:44 AM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">So there is an odd issue with normalized viewport coordinates that has been around for a long time. If you draw a rectangle from 0.0 to 1.0 I would expect it to completely cover the viewport. But currently it is logically missing a half pixel on the left and right/top and bottom. See the picture below of what is happening given a small four pixel window.  I seem to recall we originally wanted pixels to be based on their centers and then later as we added more coordinate systems realized we had an issue but left it as it was. The idea here would be to make viewport coordinates(and normalized VPC) behave like display coordinates with a left corner origin.  The only difference between them and display coordinates would be that they are relative to their viewport.  This change would require about 15 updated valid images as some labels move a tad here and there. Thoughts?</p><p class="MsoNormal"><span style="color:red"> </span></p><p class="MsoNormal"><span style="color:red"> </span></p><p class="MsoNormal"><span style="color:red"><img width="625" height="503" src="cid:image001.png@01D0DF20.0AF46240"></span><span style="color:red"></span></p><p class="MsoNormal"> </p><p class="MsoNormal">Ken Martin PhD</p><p class="MsoNormal">Chairman & CFO</p><p class="MsoNormal">Kitware Inc.</p><p class="MsoNormal">28 Corporate Drive</p><p class="MsoNormal">Clifton Park NY 12065</p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com" target="_blank"><span style="color:blue">ken.martin@kitware.com</span></a></p><p class="MsoNormal"><a href="tel:919%20869-8871" value="+19198698871" target="_blank">919 869-8871</a> (w)</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee.  Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message.  Thank you.</p></div></div></blockquote></div><br></div></div></div>