Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity + Photoshop : alpha cutoff

Discussion in 'Scripting' started by Rphysx, Jun 20, 2014.

  1. Rphysx

    Rphysx

    Joined:
    Mar 26, 2014
    Posts:
    54
    I'm trying to follow what this guy achieves with Gimp
    while using photoshop

    As far as I understood, you need to create another channel in photoshop and place in there the desired alpha cutoff gradient, I did it this way :



    As you see in the pic the first visible layer is just an azure rectangle with the rest of the square just transparent, but in unity, placing this object on a plane gives a white background, even though the alpha cutoff works just fine. Am I missing something in Photoshop ? neither .tga or .png works this way
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,716
    "Transparent background" doesn't exist in real-time rendering. In the end, in the file format (TGA/PNG), the RGB value of each pixel still exist. What appear transparent in Photoshop will be black or white depending on how Photoshop handles it.

    If you want that "transparent" zone to be fully transparent, it needs to be fully black in the alpha channel on that desired spot.
     
  3. Rphysx

    Rphysx

    Joined:
    Mar 26, 2014
    Posts:
    54
    Works. Thanks a lot