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 Alex 23 · Apr 28, 2011 at 02:38 AM · graphicsgradientalpha-channel

Alpha Channel: Want a gradient blend fade of transparency using Targa with alpha Channel

I have a cone of light that I want to use for a lighthouse:

Using alpha channels with a grey to white gradient shape in the alpha channel. I am using photoshop to create rgb texture with a alpha channel and saving as a targa file.

I attempting changing the shader in Unity to transparent/cutout/diffuse but that proved unfruitful.

I want the rotating cone to start as visible and fade to invisible.

Made and exported to fbx using maya

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
0
Best Answer

Answer by Alex 23 · May 04, 2011 at 01:54 AM

I ended up using the material particle/alpha blended for the light cone and that gave me the desired effect although I not sure if it was the right approach

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
avatar image
2

Answer by Peter G · Apr 28, 2011 at 03:01 AM

You don't want to use cutoff, just use the regular transparent/diffuse. Cutoff literally clears any pixels with an alpha below a certain threshold. Using the regular transparent. The pixels are alpha-blended to be laid over the current image.

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 Alex 23 · Apr 28, 2011 at 06:54 PM 0
Share

I used that material but when I start the scene in unity the entire cone is still visible. Here is what I am looking at and the setting being used.

http://www.flickr.com/photos/47648476@N06/5665855892/in/photostream/lightbox/

http://www.flickr.com/photos/47648476@N06/5665855958/in/photostream

avatar image Peter G · Apr 30, 2011 at 07:51 PM 0
Share

Black is entire invisible. Gray will be somewhere in between, and white will be entirely visible. Also make sure that you imported the texture into Unity as a type that includes an alpha channel.

avatar image Strontium · Nov 30, 2013 at 05:28 AM 0
Share

Not working for me (on Unity 4.3.0f4) -- the entire model is semi-transparent, X-ray style. White is 50% opaque. It's as though the alpha channel has been halved in intensity.

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

1 Person is following this question.

avatar image

Related Questions

Alpha Channel: Want a gradient blend fade of transparency using Targa with alpha Channel 1 Answer

Gradient mapping in shader graph 1 Answer

Images with gradient poorly managed by Unity 1 Answer

Increase Graphics Quality unity 1 Answer

How do I store textures as ".PNG" in the final build? 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