Welcome to TalkGraphics.com
Results 1 to 6 of 6

Thread: Shadowing

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Lightbulb Shadowing

    While the Xara in-build shadow tool is versatile, it has its limitations.

    This approach uses SVG filter primitives that combine into shadows that are a diffused version of the shape involved.
    SVG + CSS - You are being Shadowed.xar

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: Shadowing

    Cool. My method, non-SVG would be to create a bitmap copy, and blue the bitmap, and apply a Multiply transparency.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	shadows.jpg 
Views:	34 
Size:	80.6 KB 
ID:	133569  

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Default Re: Shadowing

    Quote Originally Posted by gwpriester View Post
    Cool. My method, non-SVG would be to create a bitmap copy, and blue the bitmap, and apply a Multiply transparency.
    Agreed Gary, but that is a different result. The nearest way might be to clone and feather but this loses a lot of the shadowing. I only showed the rainbow Art Brush to show how closely the colours are keyed. Changing the stdDeviation between 4 to 32 turns the shadow into a glow, nuances, I have found hard to get with Xara native functions.

    i note a small typo in the Placeholder Body, it should have been x="0", I lost the closing double quotes.
    Probably lost in the shadows.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: Shadowing

    The compensation to my method is the bitmap with blurring and Multiply transparency can be modified to make the colors lighter. The amount of blurring

    Remember, when I had to find the exact center of a rectangle that was 7.5" wide, I folder a piece of paper with a 7.5" rectangle. Math for the non-math oriented (and the script adverse oriented)

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: Shadowing

    Interesting effect Acorn but as Xara now exports it's own drop shadows as svg not as bitmap, what are the advantages of using your code?
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,822

    Default Re: Shadowing

    Quote Originally Posted by Egg Bramhill View Post
    Interesting effect Acorn but as Xara now exports it's own drop shadows as svg not as bitmap, what are the advantages of using your code?
    Egg, the point is the colours of my shadowing mirror the shadowed shape. Blurring can be made more diffuse as Xara sets a limit; effective with images, giving them more of a translucency at the edges.

    I can select the Xara shadow and add a coloured simple linear Fill but the shadow is missing.
    You might get an image for the shadow for any other Fill type but then the shadow is a JPEG and has box boundaries.
    In other words all you can shadow is a Flat Fill to keep SVGs.

    Xara - Shadows.xar

    There are just too many poorly rendered edge cases with Xara Shadows.
    In Post#1, I said "While the Xara in-build shadow tool is versatile, it has its limitations."
    In saying that I am not shunning the Xara approach, just it does not always work for what I need.

    What this filter combo is doing is blurring a copy of the original and displacing under that.
    Remove <feBlend in="SourceGraphic" in2="blurOut" mode="normal" /> to see the blurred content alone.
    Not a thing achievable in Xara.

    It keeps the shadows as SVG in all the situations that I demonstrated.

    As a web designer, I look for effects to make my customers' presentation stand out. These shadow effects are clearly quite nuanced for a little effort that is very hard to achieve with pure Xara.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •