Author Topic: Unwanted thin lines appearing between shapes  (Read 251 times)

September 05, 2019, 02:24:13 AM
Read 251 times

Maesh

  • Sr. Newbie

  • Offline
  • **

  • 5
Hello!
I've had this problem for a while, but now it really gets annoying...

When I create geometric shapes and snap  :snap: them together, to make sure they really are stuck together, a line appears between every different object, making it very annoying when adding a background (because the color shows through between objects...). It appears juste at different distances, and when I am very close up it doesn't appear.

I would like to know if there is a solution for that?
I joined a export of what it looks like, with the background showing through. Every objects are snapped together

 :ty1:
  • 0.92.2

September 05, 2019, 01:58:13 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,937
  • Gender
    Female

    Female
    • Inkscape Community
Interesting - I don't see the problem with your attachment.  However, I know what you're talking about.  The anomaly is known to appear and disappear at different zoom or scale levels.

What you're seeing is a known artifact related to anti-aliasing.  Anti-aliasing is the feature which allows Inkscape's lines to be so clean and sharp at every zoom or scale level.  Actually it's not limited to Inkscape.  You'll see this problem with almost all graphics programs.

The only real solution is to overlap the edges by a couple of pixels.  This faq item explains a few other options:  https://inkscape.org/learn/faq/#theres-seam-or-artifact-between-adjacent-objects-sharing-same-border-or-between-patterns
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 05, 2019, 11:58:25 PM
Reply #2

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,151
  • Gender
    Male

    Male
Hi.

As mentioned above, use overlapping. However I rather suggest an aproach where you handle each part of your drawing as pieces of paper you want to glue together.
Overlap the bottom pieces with an amount you can use for glueing, not just a few pixels.
As, there will be necessary sharp corners in the overlapped part and also it is recommended to still keep nodes in a somewhat neat layout.

Attaching a quick example.

corner.svg
*corner.svg
(3.27 kB . 300x300)
(viewed 58 times)




-Needless to say it gets tricky when you want to draw an impossible object that'd require a z-order loop of the objects displayed.
Drawn several examples on that before. Unfortunately they were hosted at openclipart and I have yet to sort out my works on my computer to dig up something related.

September 26, 2019, 07:05:08 AM
Reply #3

Maesh

  • Sr. Newbie

  • Offline
  • **

  • 5
Thank you for these answers!
The link looks very useful thank you! I finally managed to get an export that looked okay.

But... I have the same problem with patterns : when I lay out my tiles (perfect 600px by 600px squares), i have the line between every squares. But there's a catch! They only appear on the PNG export, not on the vector view in inkscape (I mean that when it is still a tile with all vector shapes, no line due to anti aliazing appears).
However when i lay out the PNG squares, a line appear both on screen in inkscape and on the export.
Reading the attached link, I understood that with patterns it is especially tricky...
But is there still hope that there is a way to fix that ? A line in a pattern layout defeats the whole point of a "seamLESS pattern"...

I attached screenshots of the vector and png layouts, as well as an export showing the line (the export looks the same wether it comes from a vector tile or a PNG tile).

Thank you!
  • 0.92.2

September 26, 2019, 10:31:10 AM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,937
  • Gender
    Female

    Female
    • Inkscape Community
As mentioned before, overlapping the pattern sections is the only real answer.  But I like the stitch filter, that is mentioned in the faq, for patterns.

Ooohhh....actually I think that stitch filter was hosted a Open Clipart, which has been closed for some time.  Or was it attached to the InkscapeForum post??  Well, if you can't seem to find it, let me know.  I think I might have a copy.

No, there's no real hope of a permanent fix for it.  It's just the nature of graphics, unfortunately.

I realize you're following up on this pre-existing topic here.  But I just want to make sure you're aware of the new forum, in case you might have new questions someday.  https://inkscape.org/forums/  There's a message in red text on the forum index page, but apparently not everyone can see it.  This forum will have to be shut down, in maybe something like 6 months to a year from now.  I'll post more definite info when I have it.

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 26, 2019, 01:10:41 PM
Reply #5

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,151
  • Gender
    Male

    Male
As far as I understand you are referring "pattern" as a single tile repeated in a matrix layout.

BUT the real deal is, once you have a single tile, convert it to a pattern fill.
If you are using a pattern fill instead, no gaps should appear at the seams.

That is: not repeating a rectangle with a pattern fill next to eachother,
but the pattern fill stretched over a larger rectangle etc.

pattern fill in the manual

September 27, 2019, 01:36:33 AM
Reply #6

Maesh

  • Sr. Newbie

  • Offline
  • **

  • 5
Yes... But no, it still appears.
I think I just have to bypass it, using other softwares to creates layouts
  • 0.92.2

September 30, 2019, 12:46:18 AM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,937
  • Gender
    Female

    Female
    • Inkscape Community
As far as I understand, all graphics software has this problem.

However, I think Lazur's right about using the pattern fill.  Here's an SVG file with a pattern fill, where I can't find any lines between the pattern.  Maybe they are there but I can't see them.  But I've tried zooming, and can't produce the gap.  If you'd like us to look at your SVG file, we might be able to find what's going wrong.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann