Overlay mode objects Inkscape

Post questions on how to use or achieve an effect in Inkscape.
RizlanAnl
Posts: 3
Joined: Fri Jul 20, 2018 10:16 pm

Overlay mode objects Inkscape

Postby RizlanAnl » Fri Jul 20, 2018 10:30 pm

Hello!
I have a problem with overlay mode for objects in Inkscape, i don't get the result that i want!
here's an image in Inkscape :

inko.png
inko.png (51.5 KiB) Viewed 470 times


And here's an image of what i want using Synfig :

synfig.png
synfig.png (105.02 KiB) Viewed 470 times


So why it's not working the same :? ?!!

Thank you.

User avatar
brynn
Posts: 9962
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Overlay mode objects Inkscape

Postby brynn » Sat Jul 21, 2018 1:16 am

Probably because Synfig and Inkscape are different programs, and they implement these features differently. It doesn't look like that part of the circle did disappear in Synfig, or else we would not see the stroke still remaining

If you can tell us what you want to do, we can tell you how. If all you want is for that outer part of the dark green circle to disappear, then do this:

1 -- duplicate the dark green circle
2 -- select the light green circle and 1 dark green circle
3 -- Path menu > Intersection

Edit
Actually, after futher research, I'm not sure if what you're seeing is the effect of the Overlay filter. When I try, using your same example, I don't get any effect. I just get one circle on top of the other, with no apparent blending.

Do you have some transparency in the other object (the light green one) or maybe alpha transparency in the dark green one? The only way I can get result like yours is to make one of the circles partially transparent. Or do you maybe have some filter applied to the other objects or layer?

You're welcome to share an SVG file, if you like.

RizlanAnl
Posts: 3
Joined: Fri Jul 20, 2018 10:16 pm

Re: Overlay mode objects Inkscape

Postby RizlanAnl » Sat Jul 21, 2018 6:03 am

It doesn't look like that part of the circle did disappear in Synfig, or else we would not see the stroke still remaining


It's not that to disappear but to not show up !

If you can tell us what you want to do, we can tell you how.


I want to shade a character :

inko2.png
inko2.png (15.36 KiB) Viewed 437 times


If all you want is for that outer part of the dark green circle to disappear, then do this:

1 -- duplicate the dark green circle
2 -- select the light green circle and 1 dark green circle
3 -- Path menu > Intersection


I already did that but it's not practical at all :(

inkkko.png
inkkko.png (92.61 KiB) Viewed 437 times


Do you have some transparency in the other object (the light green one) or maybe alpha transparency in the dark green one? The only way I can get result like yours is to make one of the circles partially transparent. Or do you maybe have some filter applied to the other objects or layer?


No it's with full opacity and i did not apply any filters !

And here's the SVG :

try.svg
(3 KiB) Downloaded 8 times

Lazur
Posts: 4578
Joined: Tue Jun 14, 2016 10:38 am

Re: Overlay mode objects Inkscape

Postby Lazur » Sat Jul 21, 2018 6:09 am

Hi.

The overlay filter uses background image as an input. That's resource heavy, as far as I know that's why inkscape needs a special tag added for the renderer.
To make it work, add a new layer and set its blending mode to anything custom.
Then you can turn that layer off, the "per object" overlay filter should work as expected.

Moini
Posts: 2812
Joined: Mon Oct 05, 2015 10:44 am

Re: Overlay mode objects Inkscape

Postby Moini » Sat Jul 21, 2018 10:35 am

Does synfig support clips? Then I would use a clone (or maybe a linked offset without actual offset, that's easier to color in, and still a clone) that is clipped to the shape of the face.

I.e.:

- select hair
- do Path -> Linked offset
- move the linked offset to its new place
- change its color and blur
- duplicate the face
- make sure it's above the shadow
- select both shadow and face
- Path -> Clip -> Set

This way, you can change the shape of the hair, and the shadow will change along. When you use a clone of the face for clipping instead of a duplicate, also the clip will adapt to changes in the face. That's how clones work.
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)

RizlanAnl
Posts: 3
Joined: Fri Jul 20, 2018 10:16 pm

Re: Overlay mode objects Inkscape

Postby RizlanAnl » Sun Jul 22, 2018 1:30 pm

To make it work, add a new layer and set its blending mode to anything custom.
Then you can turn that layer off, the "per object" overlay filter should work as expected.


I don't understand what's the role of this layer? and yes i did like you said but it's not working :( !

Does synfig support clips?


No it's not clipping, here's what Synfig do :

hk.gif
hk.gif (186.4 KiB) Viewed 316 times


I tried many ways of masking and clipping it doesn't give the same result as Synfig :( !

Thank you for your help.

User avatar
brynn
Posts: 9962
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Overlay mode objects Inkscape

Postby brynn » Sun Jul 22, 2018 3:10 pm

Ok, I was not able to make it work with Lazur's instructions (unless I misunderstood). Just making another layer, and setting it for Overlay, and turning it off didn't work. But here's what did work. When he say it needs something in the background to help it work, that gave me the idea to put a rectangle with a solid color behind. Then the object with Overlay did work like you want.

Even if the rectangle behind it is white, it makes it work. Also, note that it doesn't disappear at the moment of putting the rectangle behind, or the moment of setting Overlay for the object. I always have to grab the object and drag it around, to make the effect show up. I don't know why. Maybe Inkscape is just not so good with blending modes yet? Or maybe it would work better to use blending filters rather than blending modes?? I'm not sure about that.

But anyway, that made it work for me -- put a solid color behind it. Note that I tried using an opaque background color for the canvas. But that didn't work. Apparently it has to be an object behind.

Lazur
Posts: 4578
Joined: Tue Jun 14, 2016 10:38 am

Re: Overlay mode objects Inkscape

Postby Lazur » Sun Jul 22, 2018 7:17 pm

Ok, made a screen capture for you:

https://youtu.be/so_LEUw8NIs

Can't help the filter editor looking ugly...
And having doubts if synfig could handle filters either, so it's more about the "how to pull off overlay filtering in inkscape" part.

Polygon
Posts: 309
Joined: Thu Dec 19, 2013 3:27 am

Re: Overlay mode objects Inkscape

Postby Polygon » Sun Jul 22, 2018 9:59 pm

I´m pretty sure SynfigStudio uses quite a hack to mask objects as it clips in most of the available color modi.
Inkscape can use what most "modern" SVG editors have: "Stacking" or "Paste Inside":
Image

Cheers


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 5 guests