Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 discoelf · Sep 30, 2011 at 12:39 AM · transparencyalpha

How come Transparency is not working

I'm not sure why Transparency isn't working here's what I did.

In Gimp Image Editor; create new image 512x512 Fill With: Transparency <---- yes... transparency.

Draw some black lines (making a gate, or trying to..)

save image as .PNG and import into Unity3d.

Select my object and pick TransparentDiffuse shader. select my black line drawing and it shows up on the little ball icon in the inspector.

ok... but when I look at the object it's transparent (the whole thing, there are no bars) so I play with the tiling, the offset, the shaders and nothing works. I can't figure out why because the little ball icon shows it up just fine, like it's working, but in the program it's just not there.

Can anyone help :(

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Grady · Sep 30, 2011 at 09:58 AM

You need to use a transparent shader on your image, but instead of explainging it all, here are some links:

http://answers.unity3d.com/questions/18929/transparency-on-images.html

http://forum.unity3d.com/threads/66625-Newbie-question-How-can-I-add-transparency-image-%282D%29-in-Unity3D

http://answers.unity3d.com/questions/63838/png-image-to-transparent-on-applying-to-plane.html

Hope this helps!

Comment back if you need more help

-Grady

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 discoelf · Sep 30, 2011 at 08:47 PM 0
Share

Thanks for the answer! but, I... am still lost. I'm not sure what it means to add a transparent shader. Is this referring to something in Unity or something I do in Gimp Image Editor? sorry to be a noob.

avatar image Grady · Sep 30, 2011 at 11:07 PM 0
Share

the transparent shader would be set in unity...

Here is the documentation for the transparent shader family: http://unity3d.com/support/documentation/Components/shader-TransparentFamily.html

What I would do if i was you, is make sure that when you exported it from Gimp, that it definately had transparency in it... Then, (assu$$anonymous$$g that you want the image to just be like an image in your game), create a new plane, GameObjects > Create Other > Plane, and then drag your image onto the plane.

Then click on the plane in the Hierarchy, and click on the drop down menu for the shader. Scroll down and select something in the Transparent section. try them all and see if one works!!!!!!

avatar image
0

Answer by discoelf · Oct 01, 2011 at 05:32 AM

That helped me figure something out. The transparency is applied to any Unity3d created object easily but not to my imported .fbx model. I made a lighthouse in Blender and tried to import it but Unity said for some reason there was a problem importing the .blend file so instead I exported as .fbx and imported that, and it worked. but the transparency doesn't.

hmmm very odd.

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 Grady · Oct 01, 2011 at 05:59 AM 0
Share

yeah, unity is not made to import transparency, even if the model has transparency in the 3d modelling program. Once again I would explain it to you, but here is another link. This is a question that I posted a while back when I was having trouble with transparency on fbx models: http://answers.unity3d.com/questions/138556/google-sketchup-fbx-problem.html

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Transparent brush overlap 'dotting' effect problem 1 Answer

Weird Transparency behaviour when using ShaderGraph in LWRP and setting alpha to 1 0 Answers

Unity 3D Alpha Map Problems? 1 Answer

Alpha Transparency Shader Issue 1 Answer

Change transparency of UI elements. 1 Answer


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