Jump to content

Ugly shapes with AA off & low pixel count


Recommended Posts

Hi,

 

When using the tool shapes (ellipse, star, diamond, trapezoid used as example) coupled with very small sizes down in the 10 or 20 pixel range, as well as having AA for the tool turned off, Paint.NET produces some very wonky and irregular shapes.

 

Now AA off should result in some of what we're seeing, but it should also result in symmetry, using proper mouse locations without that 1-pixel overshoot etc. Try creating a 20x20 canvas, selecting ANY of the shapes with AA off and then drawing that shape out from 1x1 to 20x20, see how the shape progresses. IMO this could be improved.

 

Using PDN 4.2 beta as of Jul 2nd.

 

See:

UIKFmwF.pngrldM2PZ.pngWx1imGQ.pngyunmb9O.png

Edited by Tharn
Link to comment
Share on other sites

There's definitely no guarantee of symmetry on these, and it's massively more difficult to achieve than you think. A generic geometry rasterizer isn't going to be good at this stuff, and I've already done work to make it about as good as it can get (AFAIK). Direct2D on its own is astonishingly awful at this, with pixel gaps and other problems, so I added my own rasterizer for the 1px w/o AA case. I'd like to get the ellipse to be symmetric but even that has proven to be a pretty obnoxious problem to tackle correctly.

  • Upvote 1

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

This sounds very similar to this topic we had here a couple of months ago.

 

https://forums.getpaint.net/topic/114252-problem-shape-type-rounded-rectangle/?tab=comments#comment-558037

 

The 'solution' it seems is pretty much the same as I found back then - with AA off do not use a 1 pixel brush width use the 2 pixel default. At the very least you'll get a symmetrical shape under the conditions described.

 

 

 

 

 

IHaveNoName.png

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...