Jump to content
You must now use your email address to sign in [click for more info] ×

Vector brush and Text clipping


Recommended Posts

Hi.

I have the Donut shape (and any other) with Image and Rectangle.

2017-08-20_150221.png.7cde304111bc0625b33b914587e9baaf.png

 

If Image and Rectangle clip under Donut, then clipped outside and inside Donut.

2017-08-20_150812.png.aa8811bfaebd12d4ed9f6e0ecdfe15dd.png

 

It is perfect, so I imagined it.

 

If I have Vector brush or Text

2017-08-20_151611.png.3dfe09aa9281c616ac3e48aecf042687.png

 

and clip it,

2017-08-20_151905.png.37ffebd38ee346cbd8008f17d32841c9.png

 

Vector brush and Text clipped only outside.

 

It is OK?

Thanks Pavel

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Hi Pavel,

I'm also under W 10 and for me the behavior is different depending on the version of AD.

With version 1.5.3.69 the text and the brush are cut inside and out.

With version 1.6.0.80 (Beta), they are cut only on the outside, as in your example.

Donut_1.png

Donut_2.png

Link to comment
Share on other sites

Just to make things that much more confusing, when I do the clipping with the donut shape in AD 1.5.5 on my Mac, the interior of the donut shape does not clip the other objects unless I change its total angle to less than 360° (producing a slit in the donut), & then it does:

599a059cf37e0_Thisisnuts.png.620123f15a3a24517c3621e116ed5588.png

This does not happen when I use a cog with a hole in it instead of a donut as the clipping layer so I assume this is a bug in the implementation of the donut tool's logic.

 

Edit: I just checked with the latest Mac 1.6.0 (Beta 7) AD version & the behavior is the same.

Edited by R C-R
Beta check info added

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

7 minutes ago, JimmyJack said:

Turn on "Use Precise Clipping" in Preferences > Performance.

 

(It'll solve the non antialiased clip issue (for text & brushes other than basic) also.)

Works for me, even for basic brushes, but I still think this is a bug in the implementation of the donut shape. Otherwise, the behavior would be the same for the Cog shape, right?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

The basic brushes, for me, get anti-aliased regardless of the clip quality setting. (It's a little dirty but AA nonetheless.)

But, I've given up on asking "why?"... in this case, one and not the other.  

 

Which leads me to the next point:

42 minutes ago, R C-R said:

....but I still think this is a bug in the implementation of the donut shape. Otherwise, the behavior would be the same for the Cog shape, right?

 

Certainly seems that way.

Why one and not the other? Bug .... oversight ... aliens, I dunno. O.o

 

Link to comment
Share on other sites

59 minutes ago, R C-R said:

Just to make things that much more confusing, when I do the clipping with the donut shape in AD 1.5.5 on my Mac, the interior of the donut shape does not clip the other objects unless I change its total angle to less than 360° (producing a slit in the donut), & then it does:

 

This does not happen when I use a cog with a hole in it instead of a donut as the clipping layer so I assume this is a bug in the implementation of the donut tool's logic.

 

Edit: I just checked with the latest Mac 1.6.0 (Beta 7) AD version & the behavior is the same.

I tried by turning the donut into curves first, still the same.

 

Oddly, if I used the letter O it was OK :S

 

 

o.png

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

By converting the donut to curves (as suggested by toltec) and then performing a Boolean "Divide" operation on it, and putting the center part in white (or even another color), the behavior returns to normal .

Donut_3.png

Link to comment
Share on other sites

reglico, it is too radical way, because center part overrides all information from the bottom/background layer.

Clipping has the advantage of hiding only information from selected object.

 

JimmyJack: "Use Precise Clipping" in Preferences > Performance.

Thanks, it works :-)

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

11 hours ago, JimmyJack said:

Turn on "Use Precise Clipping" in Preferences > Performance.

Hi JimmyJack,

I had missed your message! :/

Effectively, the only reason that the operation was different in both versions was that "Use Precise Clipping" was enabled in the current version and disabled in the Beta version. I did not realize it, so a big thank you to you for the solution! :)

Link to comment
Share on other sites

17 minutes ago, Pšenda said:

reglico, it is too radical way, because center part overrides all information from the bottom/background layer.

Clipping has the advantage of hiding only information from selected object.

It is true that my method was a worse going to be far from perfect!

Link to comment
Share on other sites

3 minutes ago, MEB said:

Hi Pšenda,

Welcome to Affinity Forums :)

This is a bug. "Use Precise Clipping" shouldn't have made any difference here other than affecting the quality of the clipping (edges).

I'm logging this to be looked at.

Hi MEB,

I do not know if this is a bug, but checking "Use Precise Clipping" solved the problem for me as well.:)

Donut_5.png

Link to comment
Share on other sites

3 minutes ago, MEB said:

Hi @reglico,

Yes, I'm aware of it but it should work correctly no matter that option is checked or not.

You're right, I did the test in the current version by disabling "Use Precise Clipping" and it works.

Link to comment
Share on other sites

MEB: This is a bug. 

The problem with inside clipping is only with the inner circle/elipse.

If the circle is disturbed, clipping works well.

2017-08-21_234047.png.8a7019104d0e0b61165c873105df64f4.png

 

Thank you for reporting a bug.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

17 hours ago, Pšenda said:

MEB: This is a bug. 

The problem with inside clipping is only with the inner circle/elipse.

If the circle is disturbed, clipping works well.

2017-08-21_234047.png.8a7019104d0e0b61165c873105df64f4.png

 

Thank you for reporting a bug.

 

This isn't working for me. Maybe just a PC thing? How did you perturb? Add points/move? Boolean? Precise clipping is still off right?

Can someone else try on Mac?

Link to comment
Share on other sites

25 minutes ago, JimmyJack said:

This isn't working for me. Maybe just a PC thing? How did you perturb? Add points/move? Boolean? Precise clipping is still off right?

Can someone else try on Mac?

It is not working for me either when I convert the donut to curves & add nodes to create the notch. It does work when I add a rectangle & boolean add that to the donut to form the notch, converting the donut to a Curves object.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

14 minutes ago, R C-R said:

It is not working for me either when I convert the donut to curves & add nodes to create the notch. It does work when I add a rectangle & boolean add that to the donut to form the notch, converting the donut to a Curves object.

 

Ah. Interesting. Yesterday both did nothing, but today I'm getting the same as you.

So I surmise that the boolean is reordering points. 

To test:

1) I used the Donut, Divided, re-subtracted....... did not work.

2) I used the Donut, Divided, grabbed one (either) circle and reversed the curve, re-subtracted....... worked.

 

So I'm thinking that the Donut tool, and not the Cog tool, has opposing curve directions upon creation that don't play well when Precise Clipping is off.... for some reason. If the same experiment is done on the Cog, clipping will break and act like the original Donut.

Link to comment
Share on other sites

1 hour ago, JimmyJack said:

2) I used the Donut, Divided, grabbed one (either) circle and reversed the curve, re-subtracted....... worked.

I am not sure what you mean about reversing the curve -- did that involve creating a compound object or what?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 hour ago, R C-R said:

I am not sure what you mean about reversing the curve -- did that involve creating a compound object or what?

 

Nope, never made it compound. (not even sure if a vector pen clip is doable in a compound. Bitmap fill yes. But I digress).

 

Donut > convert to curves (gives you a curveS layer) > divide: you get two circles (I went straight to divide from the donut to skip the middle step).

Grab one circle and click Reverse Curve (Node tool). 

599c7740bc5c8_grabreversecurve.png.9d4a9cc4b3e456e2c74d05c1324bc5a1.png

 

Re-subtract the two circles to go back to a CurveS "donut" shape.

 

Clipping now works.

 

 

Link to comment
Share on other sites

4 hours ago, JimmyJack said:

Donut > convert to curves (gives you a curveS layer) > divide: you get two circles (I went straight to divide from the donut to skip the middle step).

Grab one circle and click Reverse Curve (Node tool).

{...}

Re-subtract the two circles to go back to a CurveS "donut" shape.

Thanks for the detailed explanation. I noticed from the light UI in your screenshot that you are (I assume) testing with a beta, but in case anyone is wondering I get the same results using the current Mac retail version.

 

As for a workaround, I think for now it would be simpler just to start with two circles, subtract the smaller one, & use the resulting Curves layer for clipping instead of a converted donut. Even better, use a cog shape with the Inner radius set to 100%, effectively making it a smooth, 'toothless' circle with a hole size that remains adjustable:

Compare.png.7f023ace4bef0c9f2515b95f82d732c9.png

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

My workaround of choice is to use Precise Clipping. It's never off when I work anyway. I just noticed the rough edges in the original examples.

 

The whole thing with the Reverse Curve wasn't meant as a practical solution.

It was more of a diagnostic exercise to figure what the heck was going on if interested eyes are watching.

 

Not sure how (or if) simply turning on Precise Clipping affects a single curve direction, but that, at least, seems to be the issue when it's off.

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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.