Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Strange border between objects of same color

Explorer ,
Sep 24, 2021 Sep 24, 2021

In AI, I have two similar objects overlapping. One at an angle.

In the places where their similar colors intersect, there is a tiny tiny border. Is this due to an antialiasing bug, and how can this be prevented?

 

michaels97056573_0-1632494945074.png

 

TOPICS
Bug
1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 4 Correct answers

Community Expert , Sep 24, 2021 Sep 24, 2021

It's an anti-aliasing issue that usually only affects the display on screen. But when exporting the pixels you might have it as well.

In order to get rid of it, either unite the objects or overlap them.

Translate
Community Expert , Sep 24, 2021 Sep 24, 2021

Very definitely an anti-aliasing issue. The light blue and the dark blue line up precisely as objects, but when it's anti-aliased, either on the screen or exporting, the anti-aliased edge pixel of the light blue becomes half-opaque, revealing the similar half-opaque darker blue below it. You can reproduce this exact effect in Photoshop.

Screen Shot 2021-09-25 at 12.49.31 AM.png

To eliminate it, shrink your darker blue shapes slightly so they don't line up exactly, or butt them up against each other instead of overlapping the light bl

...
Translate
Community Expert , Sep 25, 2021 Sep 25, 2021

It is the stacking order that causes the anti-aliasing artifact.

The 2 dark blue shape is sandwiched between the light blue 1 and 3 shapes.

As suggested moving the bottom part of the dark blue shape upwards will solve the problem.

stacking order.png

Translate
Community Expert , Sep 25, 2021 Sep 25, 2021

As long as you have no control over how a viewer/browser is going to render this, based on how this is currently constructed, you will always have the chance of the "line" showing up. Vector objects are rendered from the bottom up, so as lomng as you have the light blue and dark blue stacked, even exactly posotioned, the dark blue can "peek" through.

To elimiante it when generating an image format, like PNG, instead of rendering at screen resolution directly, export it first at high-res (say, 30

...
Translate
Adobe
Explorer ,
Sep 24, 2021 Sep 24, 2021

I'm unable to attach the AI file to this post for some reason. But here's a link to it: https://shared-assets.adobe.com/link/e995f36d-a6ac-42d3-7b16-ad006cf2ae8a

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2021 Sep 24, 2021

It's an anti-aliasing issue that usually only affects the display on screen. But when exporting the pixels you might have it as well.

In order to get rid of it, either unite the objects or overlap them.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 24, 2021 Sep 24, 2021

They are overlapping, though. And I do see it when exporting to an SVG.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2021 Sep 24, 2021

SVG options can totally mess up your artwork. Even when the objects are overlapping.

 

Anything else you want to tell us about the exported artwork before someone starts to describe a fix for it? Anything that stands in the way of just uniting the shapes?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 24, 2021 Sep 24, 2021

Hm. I can't think of anything that would preclude the use of shapes I guess. Really, this is something that Affinity Designer doesn't do well and I was hoping to see how Illustrator handles it. It's certainly better but not 100%.

 

How else should I export a vector for use in other applications?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2021 Sep 24, 2021

So uniting the shapes is out of the question?

Can you please describe the issue better?

 

If you set up a higher Decimals value in SVG options, does it then work for you?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2021 Sep 24, 2021

Very definitely an anti-aliasing issue. The light blue and the dark blue line up precisely as objects, but when it's anti-aliased, either on the screen or exporting, the anti-aliased edge pixel of the light blue becomes half-opaque, revealing the similar half-opaque darker blue below it. You can reproduce this exact effect in Photoshop.

Screen Shot 2021-09-25 at 12.49.31 AM.png

To eliminate it, shrink your darker blue shapes slightly so they don't line up exactly, or butt them up against each other instead of overlapping the light blue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 24, 2021 Sep 24, 2021

Hi there,

 

Thank you for reaching out. I checked your file, and here are my observations. I hide the bounding box, smart guides, edges & switch to pixel view, and it looks like there is a tiny gap in decimal between the two elements. That's why that hairline is visible. If I press the arrow down key once it disappears. @Monika Gause, is this the case? Could you please confirm? I hope it helps!

Anshul_Saini_0-1632508832026.png

Anshul_Saini_1-1632508845934.png

 

 

Regards,

Anshul Saini

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 24, 2021 Sep 24, 2021

I am not seeing a gap in pixel preview.

And since this is getting worse in SVG export, then I would assume that the Decimals (precision) is causing it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 25, 2021 Sep 25, 2021

There is no gap between the elements. I frankly have no idea how you're getting that. Did you download the file and look at it at all?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2021 Sep 25, 2021
quote

Did you download the file and look at it at all?


By @kindanewtothis4738432

 

Obviously he did. Otherwise there wouldn't be a screenshot, right?

 

The way this is built is quite uncommon. Is there a reason that it's built this way? Roaringmousegraphics suggested to make the dark ractangle smaller. Any reason that you can't do that?

 

Can you please tell us the whole story of what you're doing with that artwork? Why can't you change that construction? Have you taken a look at the Decimals setting in SVG export?

 

Did you try anything that has been suggested?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 25, 2021 Sep 25, 2021

Fair point.

 

I'm not sure what's so unusual here. These are two instances of the same element. One is behind the other and at an angle. Where the colors match, there is a line of division between them.

 

I'm not familiar with the decimals settings. Would changing that to a higher value alleviate this potentially?

 

Thanks for your help, all.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2021 Sep 25, 2021
quote

I'm not familiar with the decimals settings. Would changing that to a higher value alleviate this potentially?


By @kindanewtothis4738432

 

A higher value means more precision. So: yes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 27, 2021 Sep 27, 2021
LATEST

Thank you, Monika.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2021 Sep 25, 2021

As long as you have no control over how a viewer/browser is going to render this, based on how this is currently constructed, you will always have the chance of the "line" showing up. Vector objects are rendered from the bottom up, so as lomng as you have the light blue and dark blue stacked, even exactly posotioned, the dark blue can "peek" through.

To elimiante it when generating an image format, like PNG, instead of rendering at screen resolution directly, export it first at high-res (say, 300), with NO anti-aliasing, then downsample in Photoshop to final desired resolution.

 

Orrrrr.. you can modify the file... like so:

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2021 Sep 25, 2021

It is the stacking order that causes the anti-aliasing artifact.

The 2 dark blue shape is sandwiched between the light blue 1 and 3 shapes.

As suggested moving the bottom part of the dark blue shape upwards will solve the problem.

stacking order.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 26, 2021 Sep 26, 2021
Ok
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 25, 2021 Sep 25, 2021

And it depends on the browser how much is visible of the anti-aliasing in the svg. Firefox on my Mac shows less than other browsers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines