1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating Shadows (NOT Drop Shadows) for Maze

Discussion in 'General GIMP help' started by Anonymous, Jun 17, 2010.

  1. Sharpe

    Sharpe New Member

    Joined:
    Jun 18, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Okay, I got it to work thanks to everyone's help. :)

    Here's what I did:

    Start with the black Walls layer and:
    1) Duplicate layer (Layer>Duplicate Layer) Note:You will be sitting on the duplicate layer ready to edit it.
    1.5) I named the new layer "Shadow."
    2) Filters>Blur>Motion Blur;
    2.5) For motion blur settings I used length=10, angle=225;
    3) Select>By Color and click in the background;
    4) Select>Invert (this will result in all the blurred areas being selected)
    5) Fill the selection with black;
    6) Filters>Blur>Gaussian Blur;
    6.5) I used a horizontal and vertical blur of 70 just messing around;
    7) Drag the Shadow layer beneath the Walls layer.

    The map so far (WIP):

    [​IMG]

    Thanks for everyone's help.
     
  2. David Wood

    David Wood Moderator Staff Member

    Joined:
    Jul 22, 2009
    Messages:
    5,501
    Likes Received:
    5
    Trophy Points:
    38
    Occupation:
    Freelance graphic designer and visual effects arti
    Location:
    Western New York
    Home Page:
    Yeah, that's looking great. :D
     
  3. fencepost

    fencepost Member

    Joined:
    Jan 15, 2010
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Occupation:
    Environmental Scientist
    Location:
    Florida
    I'm almost finished with the script using the steps described above. There's one little hiccup and that's getting the selection tool to work properly. I'll fiddle with it some this evening and see if I can fix it. I'll post my results.

    Art
     
  4. saulgoode

    saulgoode New Member

    Joined:
    Apr 1, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I think the biggest problem is that having black walls tends to obscure any distinction between the walls and the shadows. If possible, I'd recommend choosing a different color.


    [​IMG]
     
  5. fencepost

    fencepost Member

    Joined:
    Jan 15, 2010
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Occupation:
    Environmental Scientist
    Location:
    Florida
    Saulgoode, any suggestions on performing the Select by Color (step 3) in a script? I've tried various selection options and not having much success.

    Thanks, Art
     
  6. saulgoode

    saulgoode New Member

    Joined:
    Apr 1, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    If the blurred shadow is on a transparent layer then 'gimp-selection-layer-alpha' would obviously do the trick. If the blurred black shadow has a white background then the task may be a little more difficult -- depending upon how much the script knows about the layers (which may be a lot if the script created and positioned them).

    If you ensure that no visible layers are above the blurred layer in the layerstack, selecting the white portions of the blurred layer is as simple as:
    Code:
    (set! channel (car (gimp-channel-new-from-component image RED-CHANNEL "temp")))
    (gimp-selection-combine channel CHANNEL-OP-REPLACE)
    (gimp-drawable-delete channel)
     

Share This Page