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 Bharatm23 · May 12, 2013 at 08:50 AM · texturephotoshopalpha channel

Photoshop to Unity imported alpha Channel issue

So.. I need some help with my game project. I have an object which needs to be saved with alpha channel (a chain link fence). I'm saving the obj as a targa file in Photoshop (alpha for transparency) but i keep getting a white background.

I've created the texture, created alpha channel and then flattened the image, saved as targa. POsting a few screens from unity and photoshop. I've checked for solutions online and everyone says to keep the BACKGROUND "layer" part white and alpha channel background black. I've tried the transparency shader in unity(which makes the whole obj just transparent and is useless in my case). Any mad geniuses out here?? thanks.. CHeers! alt text alt text

alpha_vent.png (264.6 kB)
photoshop_alphachannel.jpg (125.3 kB)
Comment
Add comment · Show 3
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
avatar image Bharatm23 · May 12, 2013 at 08:51 AM 0
Share

alt text

photoshop_layer.jpg (129.0 kB)
avatar image moghes · May 12, 2013 at 09:03 AM 0
Share

Did you try another format? save as a PSD file and check

avatar image Bharatm23 · May 12, 2013 at 09:10 AM 0
Share

yeah just tried psd format.. no luck.. still getting the white bg in unity..

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by ganesh.pingale · May 12, 2013 at 01:34 PM

change your shader to transperant diffuse bumped or try to Save that PSD to PNG and chose transparent diffuse shader.

Comment
Add comment · Show 2 · 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
avatar image Bharatm23 · May 12, 2013 at 02:10 PM 0
Share

Yeah i've tried png, tiff, tga and psd format already and am still getting the white bg. As for the transparent shader, that's not the effect I'm going for. Transparent shader makes the whole object transparent(it's in the name!).. and i already tried that too.. pls read my original post clearly.

avatar image Bharatm23 · May 12, 2013 at 05:52 PM 0
Share

Hey, so transparent/cutout shader works. Thanks!

avatar image
2

Answer by Eric5h5 · May 12, 2013 at 03:44 PM

You need to use a transparency shader, and use a color on the material where the alpha in the color is not set to 100% transparency.

Comment
Add comment · Show 3 · 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
avatar image Bharatm23 · May 12, 2013 at 05:53 PM 0
Share

Hey, so transparent/cutout shader works. Thanks!

avatar image Eric5h5 · May 12, 2013 at 06:01 PM 1
Share

That will work too, depending on the look you're going for, but the important thing with a transparency shader is to make sure the alpha in the color is not making the entire thing transparent.

avatar image Bharatm23 · May 13, 2013 at 06:24 AM 0
Share

Yeah! That's the effect simple transparency>bumped diffuse shader was giving me (the entire object was beco$$anonymous$$g transparent), but with transparency>Cutout I can control the cutoff point between texture and bg, also Cutout shader doesn't turn the whole texture transparent. Normally I'd just upload alpha textures in the regular bumped diffuse shader but this time I was getting the white bg. Cutout shader is a good alternative for now. I've put the blur filter to make the texture appear more 'solid'. Thanks again!

avatar image
1

Answer by iwaldrop · May 12, 2013 at 04:45 PM

You need the alpha cutoff shader. Shaders/Transparent/Cutout. And you can use PSDs just fine.

:)

Comment
Add comment · Show 1 · 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
avatar image Bharatm23 · May 12, 2013 at 05:52 PM 0
Share

The Cutout shader works well... also the slider helps control the cutoff between texture and bg color..It doesn't make the actual texture transparent tho, which is what i was looking for.. Thanks $$anonymous$$an! :)

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

18 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

Related Questions

A node in a childnode? 1 Answer

[image problem]Edges appear at colour gradient change 1 Answer

How to import textures from photoshop to unity perfectly? 1 Answer

How do you make a HUD Interface that expands with resolution (Game Border/GUI) 1 Answer

GUI text disapearing randomly. 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