Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by toddhdavis · Dec 07, 2021 at 05:49 PM · transparencyalpha-channel

How to properly set alpha transparency in PSD's to work with Unity

I am creating a game that uses images (in PSD format), which are then used to create materials, which are then displayed on "Quads". These images are mostly rounded squares, which represent the game board.

I created the images in Photoshop from scratch, using a transparent background, and then using a rounded square to create the desired look. There are 3 layers to the image, one is the "base" square itself, another is a border which I show/hide depending on selection status, and the last is an icon (an imported PNG image) which helps to identify the purpose of the square. The images are very, very basic.

When I import the PSD images into the material, I am setting the material to be shown as "Transparent", and I turn off all light reflections, etc. so that all you see is the image.

When I apply the material to a quad and view it in the editor, I see a thin, white outline around the images. This outline will show/hide/move depending on the camera position.

After doing some research, I found this answer which seems to indicate that the problem lies within the way that PS is creating the transparent images, and that I need to set an "alpha channel" and change the color used to determine what is transparent. The instructions seem to center around using a PNG image, however I am importing the PSD directly, and the PSD has layers that make up the image, not just one layer like a PNG.

So the question I have is, can anyone explain to me (like I'm a 5th grader) how to set things up properly in PS so that my images has the correct alpha channels, etc., to work?

In order to help explain the problem, here is a screenshot of the images. If you look at the edges of the borders, you'll see a thin, bright white line around each one. I need this to go away. alt text

Here is one of the images in PS. You can see that the image consists of 3 layers plus the transparent background layer. alt text

What do I need to do in order set the image to use Alpha Transparency and remove the white lines around the borders?

white-border.jpg (90.6 kB)
psd-layers.jpg (221.1 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by toddhdavis · Dec 07, 2021 at 07:15 PM

Found my answer here: https://www.lmhpoly.com/tutorials/how-to-create-transparent-texture-for-unity

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

131 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[HDRP] Render Texture Alpha Channel 2 Answers

surface shading with transparency 1 Answer

Alpha channel makes entire model semi-transparent? 1 Answer

Transparent faces renders behind non-transparent. WTF? 0 Answers

video texture with alpha channel 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges