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 Gamingdrake · Jan 21, 2015 at 02:17 AM · shadertransparencyprocedural mesh

How would you do partial gameobject transparency on a custom mesh?

Hello all. I am currently building a custom mesh, with each part potentially having a different material. Picture legos that combine to form a larger structure.

Now, I want to have portions of the terrain 'phase' in and out in a trap fashion. If a player hits a trap, the ground below will become transparent and fade out, causing the player to fall and die. Unfortunately, this leads to issues where the trap can be placed on a non-transparent block that then needs to become transparent. Can this be done?

I was thinking of using either the alpha in vertex colors for the mesh, or using a cutout shader that blends transparency into the blocks it encompasses. But before I ventured into either route, I wanted to know if anyone else has had experience with making non-transparent materials transparent somehow, or if the cutout path would even work.

Tl;dr: Is there a way to layer something onto a non-transparent material to make said material appear transparent/fade in and out?

Thank you all for your 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Cherno · Jan 21, 2015 at 09:48 AM

For fading in and out objects, use either a shader that supports transparency (Transparent Diffuse, for example), or one that support Vertex colors nad change the vertices's alpha. What exactly is your question? :)

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 Gamingdrake · Jan 22, 2015 at 01:09 AM 0
Share

I updated my post to include a Tl;dr. Basically, I want to have transparent functionality on the mesh without forcing the user to always use transparent materials.

avatar image Cherno · Jan 22, 2015 at 05:44 AM 0
Share

Could you maybe provide one or two simple images that show what you are trying to achieve? It's not clear to me if you want a whole mesh to become transparent, or just some part of it (a sub$$anonymous$$esh). Generally, it should be possible to achieve what you want, but some more information on how your traps and terrain blocks are made would be helpful :)

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

26 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

Related Questions

Transparency ordering within a single mesh using the Standard shader 0 Answers

GameObject not receiving shadows 0 Answers

Transparent shader for Android 1 Answer

Single model draws incorrectly when using transparency. 0 Answers

Rendering an entire object as transparent 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