Jump to content
Klicker

Background shows through when shapes with no stroke are alligned

Recommended Posts

When two or more shapes are alligned (from anchor to anchor), and these shapes have no stroke, it results in a transparent edge instead of no edge.
See Example.

 Each of the triangles here are perfectly alligned from point to point, which should leave no space between shapes. The stroke is set to no colour, and the weight set to none, so I would imagine that the 'fill' should take up 100% of each shape. However, it seems that the stroke (which shouldnt exist), stil takes up a fraction of the shape, and allows the background to show through ever so slightly.

The obvious way to get around this is to slightly overlap each shape - as you can see, there are quite a lot in the above, so this would be impractical. Is there any obvious way to get around this?

Apologies, this question has probably been asked before, but I was finding it dificult converting this question to a searchable term.

Example.PNG

Share this post


Link to post
Share on other sites

This issue has indeed been mentioned many times before but trying to find the right search term to show them is not easy. I used "gaps" only because I remember that term appearing in a few of them. While it generated a lot of unrelated hits, it did show the perfectly aligned shapes showing background behind topic among a few others.

 

The short version: it is a rendering issue caused by anti-aliasing pixels along shape boundaries. To work around it, add a very thin stroke aligned to the outside of each shape, using the same color as the shapes' fill.


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites

Thanks for your response, and for digging out that post.

 

if it's a rendering issue, I'm curious if it shows up that way when printed / exported. I'll give this a try tomorrow and report back.

 

Im surprised that there is no solution for this, only a workaround. If you have to create a separate line for every edge of every shape which is aligned to another shape, and give this its own stroke which matches the shapes fill, this is tedious. Especially when it comes to gradients. 

 

If if I remember rightly, I think this is not specific to Afinity Designer, but is a problem for vector based design software. Bit of a nightmare.

Share this post


Link to post
Share on other sites
1 hour ago, R C-R said:

To work around it, add a very thin stroke aligned to the outside of each shape, using the same color as the shapes' fill.

 

I think the developers should provide a function where we simply specify a stroke width and then the software gives each currently selected object a stroke of that width and the same colour/gradient as the object's fill. There could be an option to change the stroke of all selected objects or only the ones which currently have no stroke.

Share this post


Link to post
Share on other sites
20 minutes ago, Klicker said:

If if I remember rightly, I think this is not specific to Afinity Designer, but is a problem for vector based design software. Bit of a nightmare.

Yes, in one or another topics (that of course I cannot find right now) one of the staff or developers said this is true for all vector based apps, or words to that effect.

 

A fairly simple workaround when every shape is the same color is to add a shape behind them with the same fill color, which should be easy to do by duplicating all the precisely aligned shapes & using the Add boolean to create it from those dups, but that may or may not work as expected because of a bug in the boolean operations that sometimes creates a "Curves" layer (note the plural) consisting of more than one shape.

 

Which brings up something I just noticed from your screenshot: the selected triangles appear to have a gradient fill, not a solid fill color. Is this correct?


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites
7 hours ago, owenr said:

 

I think the developers should provide a function where we simply specify a stroke width and then the software gives each currently selected object a stroke of that width and the same colour/gradient as the object's fill. There could be an option to change the stroke of all selected objects or only the ones which currently have no stroke.

 

This would definitely be much easier for the user. Perhaps something that could be raised as a feature request. I'll try this and see how it goes, and raise it as a suggestion accordingly. 

 

7 hours ago, R C-R said:

Which brings up something I just noticed from your screenshot: the selected triangles appear to have a gradient fill, not a solid fill color. Is this correct?

 

Yeah these triangles are all filled with a gradients. It's currently jut a one-for-all gradient, however the final design will have individual gradients for each shape. 

 

I I think it should still be possible to create an outline with the same gradient, just reusing the recent gradient from the swatches tab. However, I'm not sure if this retains the gradient settings or just the gradient colours. 

 

Another thing for for me to try and report back.

Share this post


Link to post
Share on other sites

So yeah, exporting and printing both result in the 'transparent edge' effect, allowing the background to show through - you can never get this edgeless. Although it's nowhere near as obvious as it is in the application, its still to noticeable to get away with ignoring it.

I've tried the suggestion of adding an an edge / stroke to the shape that is the same colour as the fill, which is all good and well, until the shaps are filled with gradients. It is almost impossible to match the stroke gradient to the fill gradient for one shape alone, nevermind trying to match it on as many shapes that are in my screenshot above.

Although this is dificult to get the fill and stroke gradient to match exactly, its pretty close, and could go unnoticed depending on the design. I think it will be possible to use this method to achieve an almost edgeless effect, however will require a lot of precision and time. I see no other way around this, so time and precision is what it will cost me...

Example.PNG

Share this post


Link to post
Share on other sites
2 hours ago, Klicker said:

I see no other way around this, so time and precision is what it will cost me...

For shapes with gradient fills, something you might try is to slightly increase the size of the shapes lower in the stacking order, so instead of exactly aligning their edges adjacent to the edges of shapes above them there is a small overlap. Since the shapes above will hide the overlap, this should be as effective as adding strokes & not require trying to match the stroke gradient to the shape gradient.


Affinity Photo 1.6.7 & Affinity Designer 1.6.1; macOS High Sierra 10.13.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 1.6.11.85 & Affinity Designer 1.6..4.45 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iOS 12.1.1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×