• 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
0
Question by Novack · Nov 30, 2016 at 07:31 PM · culling

CullingGroup: BoundingSphere position?

I was reading the docs for the CullingGroup API, however I think there is a missing point in the documentation.

CullingGroup API uses BoundingSphere to test against, however I can't found any native method to attach a BoundingSphere to a mesh, transform or gameobject, in order to update its position.

Does CullingGroup API assume static objects, and so we need to manually update the BoundingSphere position each frame?

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

2 Replies

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

Answer by Novack · Dec 02, 2016 at 04:06 AM

Answering my own question after discussing the same topic on the forums with a known Unity engineer here: https://forum.unity3d.com/threads/navmeshmanager-performance-issue.296167/#post-2869782

The siple answer is: yes, BoundingSphere's positions need to be updated manually, each frame, on Update() or whatever convenient option at hand.

For any future readers, I recommend to read the thread, is quite informative on the CullingGroup api, and there are also some different example cases here: http://tsubakit1.hateblo.jp/entry/2016/01/07/233000 and here https://gist.github.com/tsubaki/a965f3bf69d76cbf14fd

Comment
Add comment · Show 2 · 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 unity_4Pe7aUtRpbr9bQ · Mar 03, 2020 at 04:43 PM 0
Share

If we use static objects (that will not change their position), I don't see the need to update the position of Bounding Sphere each frame. Or maybe I am missing something?

avatar image Novack unity_4Pe7aUtRpbr9bQ · Mar 03, 2020 at 04:52 PM 0
Share

Updating positions is of course in the case you need to use CullingGroup API on dynamic objects. For non-dynamic objects, most needs are already covered by default by Occlusion and Frustum culling.

avatar image
1

Answer by ratneshpatel · Sep 26, 2019 at 12:40 PM

@Novack I have tested Culling Group with 5000 static objects and I can tell you it is very fast. But if we are updating the bounding Sphere every frame then I would need to check the effect of that.

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 unity_4Pe7aUtRpbr9bQ · Mar 03, 2020 at 04:44 PM 0
Share

@ratneshpatel Did you came to any conclusions?

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

80 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

Related Questions

Light.layerShadowCullDistances not working 0 Answers

Android build using different settings to editor 1 Answer

How do you use "UnityEngine.Rendering.CullMode.Off"? 1 Answer

Is there a way for a camera to cull an object that doesn't have a MeshRenderer? 1 Answer

Disable mesh renderer of gameObject for one camera only (without use of culling masks)? 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