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 MMOERPG · Jul 04, 2014 at 09:54 PM · gameobjecttransparencytreesfadebillboard

How do I Fade Terrain Tree's to Blend with Billboard?

Hi.

I have a tree system that uses tree gameobjects rather than unity's built in system.

I developed a LOD/Billboard script to work with this tree system.

I'd like the tree game objects to fade out while the billboard fades in to avoid the popping effect.

I'm using nature/treeSoftOcclusion bark and leaves.

I tried fading out the materials alpha channel but it does not work with this shader.

I tried lerping from this material to a material that had a transparent/diffuse shader attached with an alpha channel of 0.0f but this resulted in the object reducing in size to nothing rather than fading its opacity to nothing.

I think that lerping between two materials with very different shaders is what caused the strange effect.

Does anyone have any ideas of a way to make this work? I'm running out of ideas.

[EDIT] I tried starting with the transparent/diffuse material with alpha channel 0.0f on the tree. Then lerping to the material with the nature/softOcclusionTreeLeaves. This sort of worked. It fade from nothing to a full tree, however the properties of the nature shader were not applied so the tree looked pretty bad.

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 MakeCodeNow · Jul 04, 2014 at 10:55 PM

Try doing a binary alpha screen door transparency. It can look really good.

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 MMOERPG · Jul 04, 2014 at 11:21 PM 0
Share

@$$anonymous$$akeCodeNow Thanks for the suggestion. I googled binary alpha screen door transparency and found a few examples. Do you know how or do you know of a forum that could explain how to do this in unity to achieve my goal?

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

Fading a GameObject in/out 1 Answer

Standard shader's Fade rendering mode won't allow full opacity with a textured material 0 Answers

How to add a FADE effect only on a side of a model? 0 Answers

How to fade a game object with all its children (Sprite Renderer / Image)? 0 Answers

using Contains(gameObject) to find and destroy a gameObject from a list 2 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