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 /
  • Help Room /
avatar image
1
Question by DorianF · Jan 27, 2017 at 02:16 PM · shaderocclusion cullingignorez-depth

What's the purpose of marking something as 'occludee static'? How to ignore occlusion?

Hi,

Browsing through the documentation on occlusion culling, this is all that's said on occludee static :

When should you use Occludee Static? Transparent objects that do not occlude, as well as small objects that are unlikely to occlude other things, should be marked as Occludees, but not Occluders. This means they will be considered in occlusion by other objects, but will not be considered as occluders themselves, which will help reduce computation.

So, my understanding of it was bascially "occludee static = things that will not be computed when hidden by an occluder static".

But truth is that even items that are not marked as occludee or even as static are not computed either !

The problem being that if ticking "occludee static" is not the way to say "hey, Unity, I want you to optimize rendering time by not rendering this item", then how can we say "hey, Unity, I want you to keep rendering this item, even if you believe it's not visible".


You'll ask me how is that a problem since the object is hidden behind another?
What if I want my camera to see something through a wall? I can use a shader that ignores Z buffer (ZWrite Off).

How does occlusion reacts to that? It doesn't, so, although I should be able to see my item through a wall, it is occluded.

Please, do not let this question be unanswered, I've come accross several similar questions, always unanswered, as if occlusion was some feature no one ever used !
- http://answers.unity3d.com/questions/642127/occlusion-culling-issue-wallsobjects-disappear.html
- http://answers.unity3d.com/questions/1244489/how-to-ignore-some-objects-in-occlusion-culling.html
- http://answers.unity3d.com/questions/571583/how-to-ignore-occlusion-culling-on-specific-render.html
- http://answers.unity3d.com/questions/1268275/non-static-occludee-hidden-by-occluder.html

Thank you.

Comment
Add comment · Show 3
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 hexagonius · Jan 28, 2017 at 01:47 PM 0
Share

So ZWrite Off is set in the shader of the wall, the object behind is either occludee static or not and still never seen?

avatar image DorianF · Jan 30, 2017 at 07:49 AM 0
Share

Not exactly, I didn't want to give more details on my exact use case so I wouldn't confuse everyone but here is the exact problem : I'm working on a VR project.

In VR project, we can't use screen canvas, we have to use world canvas. So, when my user opens the menu, a world space canvas appear 2-3 meters in front of him. The problem is that depending on where he is / where he is looking at, 2-3 meters away from him might be behind a wall. So I added a material to my GUI using a shader to set ZWrite Off. It works very well, except that, with occlusion baked : as the wall is an occluder, my GUI isn't expected to be visible by the occlusion system and is disappearing... Although it's not static (so neither occludee nor occluder)

But I need the occlusion to optimize the app ! Laggy VR apps are a no go...

avatar image KarlKarl2000 · Jul 23, 2018 at 01:01 AM 0
Share

@ DorianF

I'd like to know too.. The static settings on game objects \ lights seem really useful. But how the heck do we take advantage of them?

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

117 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 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 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 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 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

tex2Dlod in Tessellation shader - Shader receives 1 (and slowly raising) value on all Float variabels 1 Answer

Turning a int into a possibility of 19 different outcomes 1 Answer

Unity 5 Custom Terrian Shader appears blurry. 1 Answer

How to load 3d model(.obj) in device by programmatic. 0 Answers

How can I ToonLitOutline shader transparent? 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