Jump to content

[PDN 3.35] Assorted bugs: pixel precision


Recommended Posts

This may actually be all the same bug, though I'm not sure of that. All following bugs are tested with antialiasing turned off, might work with AA enabled as well, though.

When drawing a line, and then undoing it, the start pixel of the line remains, although it should have been undone with the line. Video: http://hypftier.de/temp/line-undo.avi

When drawing a rectangle, some corners may disappear. Video: http://hypftier.de/temp/rect.avi

When moving the mouse over a zoomed-in image, the exact pixel position of the cursor (in the picture, not on the screen) seems to jump in a 2×2 pixel square, seemingly random. This may be the cause for the aforementioned rectangle bug. Video: http://hypftier.de/temp/pixel.avi

Another bug I observed when drawing lines: Sometimes, when drawing an exact diagonal line from bottom right to top left and moving the cursor (while drawing the line) one pixel to the left, the second pixel from the top left disappears. Hard to recreate, a sloppy video of it: http://hypftier.de/temp/line-pixel.avi

Link to comment
Share on other sites

When drawing a line, and then undoing it, the start pixel of the line remains, although it should have been undone with the line. Video: http://hypftier.de/temp/line-undo.avi

I can't reproduce this.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

I can't reproduce this.
I can, and have in the past. Although, without an actual, solid reproduction - due to the intermittent nature of the fact - I have not mentioned it previously. I almost always have anti-aliasing active, too.
Link to comment
Share on other sites

I feel this to be a lost cause...

From the video I've provided below, going on a per-frame basis, I've been able to extrapolate these coordinates that experience this bug. A one pixel margin of error has to be expected, however I would bet my life on the vast majority of these. They are as follows:

(start coordinate

finish coordinate)

349,279

461,279

354,230

421,389

215,232

219,343

398,229

397,386

456,218

243,182

373,326

472,417

----

With all this, though, you can revisit any of the coordinates and it will not work again. Nor has it to do with intervals, like after every five drawn lines the bug occurs; as can be seen from the video, elapsed time between them range from one second to over twenty, accounting for many drawings in between. As well, you will notice the random approach to my finding them, which only further solidifies my assumption that it is some random quirk - if such a thing exists.

Two pixel line width, anti-aliased, zoom level of 200%.

Video download from MediaFire - get it before they lose it

Link to comment
Share on other sites

Hrmm. Yeah if you can find a definite, completely reliable repro ... I'd love to fix it. This would fall into the class of "data loss" bugs, which are always critical to fix.

Unfortunately we may not find that repro until after 4.0 is done :? 8)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Ok, some more stuff on the line-undo thing. I initially thought it might have been a problem with my mouse (kinda like double-click when only single-clicking) but using my trackpoint here at the notebook works, too. It does, however, only seem to work zoomed-in, not when at 100 % zoom level. This might indicate a relation to the jumping coordinates.

It doesn't work always, though. However, the start pixel (or pixels with AA turned on) are already present when drawing the line, as in mouse button not yet released. And this pixel isn't removed by using undo. This can be observed by reducing alpha to 50 % -- the start of the line should be darker, then. Reproducible here about half of my tries (zoom level 2400 %). It seems to be easier to reproduce when zooming in as far as possible.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...