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
1
Question by Hoeloe · Aug 26, 2013 at 11:45 AM · rendertransparentbillboardqueue

Billboard trees - changing the render queue

Hi. I'm trying to create a scene, and I've hit a problem with tree billboards. It turns out they are rendered with the queue "Transparent-100" (which seems odd to me), but this is problematic, as I have a scene that has a river, connecting to a lake. The river uses the queue "Transparent", and the lake (using Unity's pro water) renders to the queue "Transparent-10". The river has to be rendered above the lake so that the blending between them works correctly. Unfortunately, Unity's water system breaks down if it's rendered at the queue "Transparent-110" (which it needs to be for the river to be rendered at "Transparent-100"). I'm wondering if there is a way I can render the tree billboards at "Transparent", rather than "Transparent-100", as I can't access the shader being used. Can anyone help me to solve this problem?

Here is a picture of my scene, highlighting the error: River is rendered above the billboarded trees, where it should be behind.

treedepth.png (449.5 kB)
Comment
Add comment · Show 9
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 Fattie · Aug 26, 2013 at 12:04 PM 0
Share

nice scene, nice question!

avatar image jonassejr · Aug 26, 2013 at 01:28 PM 0
Share

You can change the renderQueue for a material with $$anonymous$$aterial.renderQueue.

The renderqueue for Background is 1000, Geometry is 2000, AlphaTest is 2450, Transparent is 3000 and Overlay is 4000.

avatar image Hoeloe jonassejr · Aug 26, 2013 at 01:34 PM 0
Share

I know, but the problem is that I can't access the material of the billboarded trees in order to change the render queue, as it's dealt with automatically by Unity.

avatar image jonassejr jonassejr · Aug 26, 2013 at 01:52 PM 0
Share

oh, i thought you have access to the material, just not the shader, never$$anonymous$$d then.

avatar image Fattie jonassejr · Aug 26, 2013 at 02:19 PM 0
Share

HL, are these the tree-billboards system which Unity gives you as part of their "Terrain" system? (I have never used their "Terrain" system for any reason, so I don't know about it!)

Show more comments
avatar image Hoeloe · Aug 26, 2013 at 01:39 PM 1
Share

It appears to work correctly if I set the water depth to "Transparent-200" ins$$anonymous$$d of "Transparent-110", but I'd still rather change the depth of the trees if possible, as having the water shaders on a queue that low may cause problems elsewhere.

avatar image Hoeloe · Sep 16, 2013 at 11:31 AM 0
Share

Well, this issue has hit me again with other objects. Could anyone help me to change the render queue of the trees themselves? I've looked in the standard shaders, but I haven't found anything setting the render queue for what is apparently the billboard shader. Can anyone point me in the right direction?

avatar image Hoeloe · Sep 21, 2013 at 03:36 PM 0
Share

So I've found the source code for the BillboardTree shader, but no idea how to apply that to override the terrain shaders. Can anyone help me out with this?

0 Replies

· Add your reply
  • Sort: 

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

17 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

Related Questions

Transparent shader (water) showing over billboard trees 4 Answers

Render object through terrain 2 Answers

render object on top of everything with dynamic shadows (for mobile) 1 Answer

Need Help > Why my 3D modelling became transparent 1 Answer

Why are the billboards black? 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