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

how to make a transparent psd

Discussion in 'Asset Importing & Exporting' started by DaFame, Jun 3, 2009.

  1. DaFame

    DaFame

    Joined:
    Apr 24, 2009
    Posts:
    41
    Good morning everyone,
    does someone know, how to make a transparent psd file for unity?

    i got a circle on a transparent background and a Alpha1 channel with the section i want to see. But nothing happen... just a white background.

    The psd file is rgb and 8-bit. Whats wrong ?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    When you use an alpha channel, make sure there's a background layer.

    --Eric
     
  3. DaFame

    DaFame

    Joined:
    Apr 24, 2009
    Posts:
    41
    I got a white background under the circle layer... nothing happened
     
  4. DaFame

    DaFame

    Joined:
    Apr 24, 2009
    Posts:
    41
    no one can help !?
     
  5. TheAlchemist42

    TheAlchemist42

    Joined:
    Apr 17, 2008
    Posts:
    68
    Make a new file in Photoshop. In the dialog that comes up when you make a new document, make sure that the "Background Contents" is set to Transparent. Now draw your circle. Outside of the circle must be showing the little grid pattern that means it is transparent. Then save it as a PNG with transparency. The easiest way to do that is File, Save for Web and Devices. Choose the preset "PNG-24" and make sure that the Transparency checkbox is ticked.

    Save it and bring that file into Unity.
     
  6. DaFame

    DaFame

    Joined:
    Apr 24, 2009
    Posts:
    41
    in png it works, but as psd it wont...

    but there is something interesting!

    This cirle is a round image, nothing drawn.

    I do the samething u told just before u post it with an drawn circle. It works ^^

    But... if i use the image it wont... why ?????
     
  7. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
  8. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Use an actual background layer.

    --Eric
     
  9. SarperS

    SarperS

    Joined:
    Mar 10, 2009
    Posts:
    824
    I create a new document, create a new blank layer, draw whatever I want on that layer, then delete the base layer, save it as psd and it works.
     
  10. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Yes, but if you're using actual alpha channels rather than relying on transparency (and using an alpha channel is generally a good idea), you need a background layer, or else the importer usually gets confused and won't work right.

    --Eric
     
  11. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Yes, relying on layer transparency is not a good idea since you have no control over the background color from which the image is "cut out" from (for PS it's white). This will cause some ugly outlines from further away when the mip mapping kicks in.

    Again, I think this page from the docs is very useful:
    http://unity3d.com/support/documentation/Manual/HOWTO-alphamaps.html