Inkscape.org
  1. #1
    Pacer Pacer @pacer🏁
    🔥🔥

    I'm not sure if this has been done before or if anyone has achieved this another way. Please share if you know.

  2. #2
    aperitero aperitero @aperitero

    Hi Pacer,

    That's nice, how did you do this ?

  3. #3
    Pacer Pacer @pacer🏁
    *

    Thank you @aperitero
    This was done with the "Clone Original" LPE.

    I can't find the original file but, from memory, there is:

    - an original path with a dashed line (blue)
    - a clone of the original path with an opposite dashed line (dashes are spaces and spaces are dashes) (red)
    - a clone of the original path which is narrow and offset to form a shadow
    - a clone of the original path which is narrow and offset to form a highlight

    All clones are locked in the layers and objects panel, so that only the original path can be manipulated.

    All other paths move along with it.

     

    The curves of the original stroke were achieved with the Spiro path effect

  4. #4
    aperitero aperitero @aperitero

    Thanks for the explanation.

    I have the impression that in your example the highlight is travelling across the shape, so it's always on the upper side even after a u-turn. I'm very curious on how you achieved this. If I try to make it as you say, my highlight stays on one side of the shape, and therefore "breaks" the direction of the light after a u-turn.

    See my attached file.

    3D Stroke
  5. #5
    Pacer Pacer @pacer🏁
    *

     @aperitero

    So, I had a play with your SVG. I hid your highlight, copied one of your dotted paths (as it already had the desired path affect applied) and changed it to a narrow solid white path, moved it to the top edge of the shape, keeping the ends still touching the ends of the original path.

    The attached seems to provide the effect you are looking for.

     

    Also, if you are interested, this thread contains another example using a similar method:

    https://inkscape.org/forums/finished/live-rubbery-text/

    3D Stroke
  6. #6
    aperitero aperitero @aperitero

    Ah yes, stupid me, I didn't realize that by moving the highlight like this it would work. Thanks a lot.

  7. #7
    aperitero aperitero @aperitero
    *

    And here is a clean final version with proper highlight & shadow. Thanks again.

    3D Stroke
  8. #8
    Pacer Pacer @pacer🏁

    Nice work. You are welcome.

    If you are interested in challenging yourself further, you might want to try the Inkscape Challenge.

    This month's challenge is shadows: https://inkscape.org/forums/competitions/inkscape-challenge-september-2024/

  9. #9
    PrettyGirl777 PrettyGirl777 @PrettyGirl777

    wow that's insanely good trick, I should try this. But I think drawing two dashed lines and overlapping will not work, as the second line will not follow the path. How did you do it?