Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Blob Shadow Projector Causing Weird Line

Discussion in 'Scripting' started by MinatureCookie, Jul 18, 2010.

  1. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    Hey, I've been fiddling about with the projector that made my ship's blob shadow so it wasn't a blob, but in a rough shape of my ship.
    However - now - there's a really weird long line that's being generated now...


    I've been trying to fiddle about with everything, but in all honesty I have no idea what I'm even looking to change to fix this? Any pointers would be greatly appreciated
     
  2. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
    I'm not entirely sure about what must be done about it but the anomaly you are experiencing has to do with the alpha of the image and has most likely ocurred due to saving the image file incorrectly or even setting up the alpha of the image incorrectly i would look into the "alpha of blob shadows in unity" on google its your most likely solution hope this points you in the right direction :twisted:
     
  3. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
  4. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    Disable Border Mipmaps in the projector's texture.
     
    jcgray83 and ETech-Studios like this.
  5. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    I can't find anything searching Google for "alpha of blob shadows in unity" or any such terms
    And I added in the default FallOff picture to the FallOff bit as that thread said, but it didn't seem to do anything; no changes.

    Disabling "Border MipMaps" didn't seem to do it either

    :(
     
  6. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    Just in case this helps; The default "2 start, 3 end" Fadeout made a really obvious square and stuff. Turning "Fadeout" off made it look much nicer, but still leaving a less obvious square.
     
  7. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
    is your texture an alpha8 texture?
    this is also mentioned in the thread as the final solution.
    i had this problem with bullet decals but i never fixed it but this was where i hit a brick wall with alpha8 :evil:
     
  8. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    Making it an alpha-8 makes that block 100% opaque :?
     
  9. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
    what imaging program are you using?
     
  10. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    GIMP, so the alpha-8 is limited at best
     
  11. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
    can you check/look at your alpha chanel at all?
    or even look at/edit your chanels all together?
    you should be able to i read somewhere that gimp is the free alternative to photoshop and I know that photoshop does these things.

    edit:

    look for this option

    Enable Build Alpha From Grayscale (this way you can make a grayscale cookie and Unity converts it to an alpha map automatically)

    from this link

    http://unity3d.com/support/documentation/Manual/HOWTO-LightCookie.html

    I know its for photoshop but gimp should have similarr options
     
  12. MinatureCookie

    MinatureCookie

    Joined:
    Jun 13, 2010
    Posts:
    25
    All of my settings are like in that Light-Cookie link, my "Build Alpha From Greyscale" is enabled - nothing.

    But yes, I can see and edit all of my channels using GIMP
     
  13. ThatHomelessGuy

    ThatHomelessGuy

    Joined:
    Jun 28, 2010
    Posts:
    348
    then it may be possible that your alpha chanel has the wrong white/black area's or is entirely the same colour though i could be chassing a dead fish. i'm sorry if i am but that's as far as i know could be your issue. i have had similar issues with alpha chanels before but the blob shadow projector is the only instance that i've had this issue and as i said before i gave up in the end :evil: Alpha works on the idea that it renders the image based on the shades on the alpha, white spaces = render and black spaces = doesn't render. and coughs up all kinds of anomalies if done incorrectly.
     
  14. cj-currie

    cj-currie

    Joined:
    Nov 27, 2008
    Posts:
    337
    I have experienced an identical issue every time I use a blob shadow project, even re-importing the default unity asset.
     
  15. alienheretic

    alienheretic

    Joined:
    Oct 15, 2008
    Posts:
    60
    i had same problem you neec to clamp both the texture and the falloff map and click build alpha from greyscale worked for me
     
  16. Elecman

    Elecman

    Joined:
    May 5, 2011
    Posts:
    1,369
    Same problem here.
    Changing the Cookie shadow to these texture settings worked for me:

    Max size: 1024
    Format: automatic compressed
     
  17. corpsinheretoo

    corpsinheretoo

    Joined:
    May 13, 2013
    Posts:
    11
    From https://docs.unity3d.com/Manual/HOWTO-LightCookie.html
    "The borders of the texture need to be completely black, otherwise the light will appear to leak outside of the spotlight."​
    So completely white for a shadow. My cookie image was not completely faded out at the edges. Fixing that fixed the artifact.
     
  18. jakethehuman

    jakethehuman

    Joined:
    Oct 3, 2014
    Posts:
    7
    Dunno why but setting it to RGBA Compressed ATC 8 bits and disable Generate mip maps works for me!