Inkscape.org
Beginners' Questions Properly Layering and/or Combining Objects
  1. #1
    BaconWizard17 BaconWizard17 @BaconWizard17

    Hi all,

    I'm fairly new to Inkscape, and I would like some help from a conceptual standpoint on how to properly layer objects. Let me provide a simple image as an example:

    https://i.imgur.com/1VYkREx.png

    I have a circle here that has an outline, the main color, and a shadow at the bottom. I created this by creating the circle with lighter brown fill and a black outline, and then a separate shape with Bezier curves for the shadow. The issue here is that lining up the shadow portion to the shape of the outline is proving to be tricky. The way I see it, there are two approaches to it:

    Option 1 (basically do what I did here):

    1. Bottom layer: shape with outline filled with the main color
    2. Top layer: separate shape without an outline filled with the shadow color, carefully manipulated to match up with the shape of the outline

    The limitation here is that it's time consuming and hard to be accurate.

    Option 2:

    1. Bottom layer: shape with no outline filled with the main color
    2. Middle layer: separate shape without an outline filled with the shadow color, moved around to hide the edges under the outline
    3. Top layer: outline with no fill that is roughly the same size as the bottom layer

    The limitation here is that there are more objects to deal with. It's easier to line stuff up because edges of shapes can hide under the outline, but it's still not ideal. 

    The complexity goes up with additional objects and outlines.

    For example, if I turn that circle into a face and add a hair and droopy hat, I would want the hat to be over the hair at the top of the head but under the hair at the back. To get it to appear this way, I have to carefully line up the edge where they meet in the back to make it look like they're sharing an edge, but it's hard to perfectly line them up:

    https://i.imgur.com/6EoLkLn.png

    Another example: If I have a place where one outline connects into another, and the fill needs to be the same color, it can be difficult to line up the shapes if the outlines aren't very straight. This example is like an arm on a T-shirt:

    https://i.imgur.com/WhqL9i4.png

     

    So basically, I want to get the edges of different shapes to follow each other perfectly. How do I handle situations like these? I know that there are limitations to how paths/objects can be combined, and you can't combine more than 2 end nodes either. I've tried to look around for solutions to things like this online, but I haven't had much luck. Tips are appreciated! 

  2. #2
    Aero Aero @Aero◻️

    You may find it easier to work with objects without strokes.

     

    Screenshot 36
  3. #3
    anwar4870 anwar4870 @anwar4870

    Properly layering objects in Inkscape is an essential part of creating visually appealing designs. When it comes to creating shadows or adding layers to an object, there are a few ways to do it. Here are a few tips that might help:

    1. Use the "Stack" option in the Layers panel: This allows you to easily move objects up and down the layer hierarchy without having to manually align them. You can also group objects together and move them as a unit.

    2. Use the "Path > Union" command to combine multiple shapes into a single object. This can be useful when you have multiple shapes that overlap and you want to create a single object with a single fill.

    3. When creating a shadow or other effect, consider using a transparent gradient instead of a separate shape. This can help to create a more natural-looking effect that blends seamlessly with the underlying object.

    4. Use the "Clone" option to create a duplicate of an object that you can manipulate independently. This can be useful when you need to create multiple copies of an object or when you want to experiment with different effects.

    In terms of your specific examples, I would suggest trying to use a combination of these techniques to achieve the desired result. For example, when creating the face with hair and hat, you could create a single object for the face and hair and then use a separate object for the hat. You could then use the "Stack" option to move the hat above the hair but below the outline of the face. For the arm on the T-shirt, you could use a transparent gradient to create a shadow effect that blends seamlessly with the shirt.

    Regards
    Anwar
    CEO
    MobilesinBD

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Properly Layering and/or Combining Objects