Search Unity

Stencil Shadows

Discussion in 'Editor & General Support' started by Mindless_Soul, Jun 3, 2006.

  1. Mindless_Soul

    Mindless_Soul

    Joined:
    Feb 1, 2006
    Posts:
    128
    I am trying to create some stencil shadows that would be projected on the ground. My goal is to make it look like some clouds are forming shadows that would be moving across the ground. My problem is that I cannot make my own shadows. I open the default blob shadow in Photoshop, and if I make any changes to it whatsoever and save it, it won't project the image on the ground.
    Is this a pro only feature?

    Any suggestions?
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Works perfectly fine for me - drag in blob shadow projector prefab from standard assets, open the texture, draw something on it, save - it works. This does not require a Pro.

    What are you seeing after doing the modification? Just nothing? Is the texture itself updated in the inspector?

    By the way, these shadows are called projected shadows (stencil shadows is a completely different thing).
     
  3. forestjohnson

    forestjohnson

    Joined:
    Oct 1, 2005
    Posts:
    1,370
    Make sure that: your shadow texture consists of a white square with black for the shadow in the middle, and in the Import Settings for that texture, "Build Alpha From Grayscale" is checked.
     
  4. Mindless_Soul

    Mindless_Soul

    Joined:
    Feb 1, 2006
    Posts:
    128
    I knew stencil shadows wasn't right...
    Just couldn't think of what it was called. :D

    Anyway, I had forgotten to check build Alpha from grayscale when I imported.

    Thanks for setting me straight.