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
2
Question by Ryan Batten · Jun 21, 2011 at 06:59 PM · webplayerocclusion culling

Occlusion Culling in a Web Player

I am attempting to use Occlusion Culling for a project that is going onto the web. As far as I can tell, occlusion culling is baking and working fine in editor and in standalones, but as soon as I build a web player, it no longer occludes anything beyond basic frustum culling.

Does anyone have any idea either A) whether or not occlusion culling works in the web player builds from Unity or B) how to get them to work?

Any help would be much appreciated, the documentation is sorely lacking on this feature.

Comment
Add comment · Show 1
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 Ryan Batten · Jun 22, 2011 at 08:39 PM 0
Share

Okay, upon further exa$$anonymous$$ation, my question is a little more specific.

In my specific case I am using additive level loading in a webplayer and want to use occlusion culling on the geometry that is loaded in additively. If the geometry I want to apply culling to is in the same level as the camera attached to my player, it works just fine.

Unfortunately, I need the player and its camera to be in one level, and the geometry I want to apply culling to in another level (which I additively load. I suspect that occlusion culling in a level either A) requires a camera to calculate and retain information on what can be culled or B) culling data is embedded directly into the camera, meaning if the geometry and camera aren't together in one level that occlusion culling will not work.

Does anyone have any idea if there is a way around this?

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Dreamora · Jun 23, 2011 at 03:14 AM

You can not stream occlusion culling, its not mergable. Also occlusion culling data storage has nothing to do with the camera, its part of the scene and scene only

Occlusion culling is only present in the level thats loaded with LoadLevel / LoadLevelAsync, any level thats loaded with LoadLevelAdditive or its forms will lose all occlusion culling data.

So if you want to use the additive level functions and have occlusion culling, the initial scene you load with LoadLevel must have all the OC data in already ie all baked within it.

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 Ryan Batten · Jun 23, 2011 at 03:02 PM 0
Share

Ah, well that's too bad. Thanks for the help though!

avatar image Dreamora · Jun 24, 2011 at 02:04 AM 0
Share

Yupp I know, fully understand that one.

Was one of my initial questions when occlusion culling was mentioned, on how the strea$$anonymous$$g is gonna work. Didn't like the question either as our scene was too detailed to even being PVS generated without streamed in subsections.

avatar image Ryan Batten · Jun 28, 2011 at 05:05 PM 0
Share

I wonder if its something they'll improve in the future, or if that's just the way its always going to be. $$anonymous$$akes occlusion culling pretty limited use, especially for larger scale games where there is too much to load all at once without making the player wait forever.

avatar image
0

Answer by nawash · Jul 19, 2012 at 04:59 AM

To solve this, I tried: - adding the dynamically loaded scene prefab in the base scene - bake OC - delete the prefab from the base scene

It appears that OC is not working proceeding like this. Is there any trick to solve this ?

Comment
Add comment · 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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers

ActiveX focus question? 1 Answer

www in web player and standalone 3 Answers

Multiple levels in web player 2 Answers

Another web question....*sigh* 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