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 /
avatar image
0
Question by Necrohunter · Jul 31, 2018 at 06:12 AM · occlusion culling

Occlusion Culling rendering everything OUT (not wanted)

hey there i just found the option for occlusion culling and its working very good. but i realized it renders everything out but i want some stuff to be in the scene. is there an option where i can say that this objects should not be rendered out? and its not static... i did already use it, but occlusion culling ignores it and is rendering everything out.

any ideas what i could forgot?

alt text

culling.jpg (153.1 kB)
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 Zarenityx · Aug 02, 2018 at 09:25 PM

I'm assuming by 'rendered out' you mean culled? Both Occlusion Culling (culls objects that are behind others) and Frustum Culling (culls objects that are outside your camera's field of view, always on) will cull objects that you wouldn't be able to see when actually rendering them to the screen (or RT), but have no effect on the objects themselves or their scripts. Even if an object is culled, it still exists and will still execute scripts as usual.

The only reason really to exclude something from occlusion culling is if it's visible under abnormal conditions. Something like player outlines through walls or the like would need to be excluded from occlusion culling.

Unfortunately, there's not real good builtin way to do this. It is possible, however. You would need to give those special 'see-through-walls' objects their own layer, then render them with a second camera set to only render that layer, with occlusion culling off on that camera. If you're already using a separate camera for held items or something, you can just use that.

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 Zarenityx · Aug 02, 2018 at 09:27 PM 0
Share

On an unrelated note, that's a LOT of AudioSources. You might want to remove some. Rule of 2.5 and all.

avatar image Necrohunter Zarenityx · Aug 03, 2018 at 05:21 PM 0
Share

ok thanks. yeah we have in the game a cone around our building and a sky texture inside it. so we can see the sky when watching outside the windows.. i know.. why dont just go for a skybox^^ its comlicated with my $$anonymous$$m.. so the problem is just, this cone is culling too, but i dont want to cull it. and i know we got a lot of audiosources, its for our drewers, they are making a sound when opening. i dont know any other way to do it better at the moment

avatar image Zarenityx Necrohunter · Aug 10, 2018 at 08:08 PM 0
Share

Ah, ok...

Are your windows Occluder Static? If you hit the dropdown menu next to the Static checkbox, one of those is Occluder Static. Disabling it and rebaking occlusion culling should prevent them from occluding the sky. It's also a good idea to disable Occludee Static on the sky.

Also, check the voxel size on your occlusion culling. Bigger is faster, but too big will just skip over holes like this.

If all else fails, there's also https://docs.unity3d.com/$$anonymous$$anual/class-OcclusionPortal.html.

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

87 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

Related Questions

Occlusion Culling in a Web Player 2 Answers

Custom terrain mesh - loss of LOD worth it if trees are occluded with occlusion culling? 0 Answers

What happens to covered up vertices on geometry? 0 Answers

How to change Occlusion Portal size via script? 0 Answers

Can you disable shadows that are not seen by the camera ? 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