This problem is as old as anti-aliasing itself -double edges produces rendering issues with the alpha channel.
There are several topics of related problemshere and there, most noticeably about the "gap issue". If objects with the same edges are next to eachother, the background shows through.
Recently came across a great description of the problem here, and find it was worth a topic for better searching and/or for future additional thoughts:
vector rasterization process
Anti-aliasing gap issue
Re: Anti-aliasing gap issue
Bumping this topic
-made 3 videos describing the problem and showing a workaround that theoretically could come handy when drawing a low-poly art or pixelart,
linked in the bug description #comment here.
-made 3 videos describing the problem and showing a workaround that theoretically could come handy when drawing a low-poly art or pixelart,
linked in the bug description #comment here.
Re: Anti-aliasing gap issue
Also, came across this one:
css draft on Compositing and Blending Level
css draft on Compositing and Blending Level
Re: Anti-aliasing gap issue
Getting closer.
#simplealphacompositingexamples
example 9
-this is where the problem is at.
There should be another compositing mode besides clear | copy | source-over | destination-over | source-in |
destination-in | source-out | destination-out | source-atop |
destination-atop | xor | lighter -one being "additive alpha cut".
That'd allow making gapless low-poly art like this:
Edit:
made a request here.
#simplealphacompositingexamples
example 9
-this is where the problem is at.
Figure 4 shows an example where both the shape and the backdrop are transparent.
Applying the compositing formula in the area of intersection, gives:
Cs = RGB(0,0,1)
αs = 0.5
Cb = RGB(1,0,0)
αb = 0.5
co = Cs x αs + Cb x αb x (1 - αs)
co = RGB(0,0,1) x 0.5 + RGB(1,0,0) x 0.5 x (1 - 0.5)
co = RGB(0,0,1) x 0.5 + RGB(1,0,0) x 0.25
co = RGB(0.25, 0, 0.5)
Calculating the alpha of the resultant composite
αo = αs + αb x (1 - αs)
αo = 0.5 + 0.5 x (1 - 0.5)
αo = 0.75
Calculating the color component of the resultant composite
Co = co / αo
Co = RGB(0.25, 0, 0.5) / 0.75
Co = RGB(0.33, 0, 0.66)
There should be another compositing mode besides clear | copy | source-over | destination-over | source-in |
destination-in | source-out | destination-out | source-atop |
destination-atop | xor | lighter -one being "additive alpha cut".
That'd allow making gapless low-poly art like this:
Edit:
made a request here.
Re: Anti-aliasing gap issue
Edit:
made a request here.
Yes, I was just going to suggest bringing the idea to developers! I'm afraid that is all over my head....
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Anti-aliasing gap issue
brynn wrote:Edit:
made a request here.
Yes, I was just going to suggest bringing the idea to developers! I'm afraid that is all over my head....
If you look closely I did that already almost a year ago.
Which got zero response at the time.
The recent feature request was issued straight to w3c css draft developers instead, so it may reach into svg 2 specs more likely...
Re: Anti-aliasing gap issue
From viewtopic.php?f=5&t=32501#p99149
Tip for request #1 -- might be better to put at least an overview in the LP post, and include relevant files, screenshots, etc. Developers might not want to read the forum thread to figure out exactly what you mean. (Although link to forum thread is good as something like footnote.)
Request #2 got response!
Tip for request #1 -- might be better to put at least an overview in the LP post, and include relevant files, screenshots, etc. Developers might not want to read the forum thread to figure out exactly what you mean. (Although link to forum thread is good as something like footnote.)
Request #2 got response!
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Anti-aliasing gap issue
Got response by Jabiert who directed me to #lgm @freenode right before, which lead me to github's w3c project -after 3 video uploads.
(With the suggested workaround brute-forcing the anti-aliasing=setting a shorter gradient in the approximate model.)
If it was only for that bug report it would never got any attention.
(With the suggested workaround brute-forcing the anti-aliasing=setting a shorter gradient in the approximate model.)
If it was only for that bug report it would never got any attention.
Re: Anti-aliasing gap issue
Can you share a link to what's happening on github, Lazur?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: Anti-aliasing gap issue
Moini wrote:Can you share a link to what's happening on github, Lazur?
Nothing has happened yet.
Re: Anti-aliasing gap issue
Lol, I thought that was a request for Inkscape.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: Anti-aliasing gap issue
Moini wrote:Lol, I thought that was a request for Inkscape.
101, that was in the linked topic in the very first post of this topic.
Lazur wrote:This problem is as old as anti-aliasing itself -double edges produces rendering issues with the alpha channel.
There are several topics of related problems here and there, most noticeably about the "gap issue". If objects with the same edges are next to eachother, the background shows through.
Recently came across a great description of the problem here, and find it was worth a topic for better searching and/or for future additional thoughts:
vector rasterization process
http://www.inkscapeforum.com/viewtopic.php?f=5&t=32501#p99149