• 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 ripol · Dec 18, 2012 at 06:02 PM · cullingunity4occlusion cullingocclusion-culling

In Unity4 is it possible to apply the occlusion culling for procedural objects?

Hi,

we are creating a visualization system with millions of procedural cubes, and would like to know if in Unity4 we are able to use the occlusion system at run time using scripts.

Is it possible or it will be possible?

thank you

rp

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 Bunny83 · Dec 18, 2012 at 06:24 PM

No, the occlusion data has to be generated in the editor and it takes quite a while to bake it. Just read the manual on OcclusionCulling.

Also millions of objects would consume a lot memory just to keep them in memory. A gameobject has quite a bit overhead. Usually that's not a problem, but if you go for 1000+ or 10000+ objects it's going to add up quite fast. Each Gameobject has at least a transform and probably a renderer, material, ... If you just add up that you will have at least something like 500 byte per object. A million would be, well 500MB.

It would be interesting what's the goal of this. Maybe there are better solutions like "chunking".

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 ripol · Dec 18, 2012 at 07:54 PM 0
Share

Ok, thank you for the answer.

Yes, the goal is to develop a visualization system of geological data represented by cubes, a "block$$anonymous$$odel".

Right now, I'm able to display 1$$anonymous$$ of cubes at the same time using $$anonymous$$eshTopology. But I would like to represent larger models using this limit using some kind of occlusion, but it looks that the occlusion culling of Unity can't be used in this case.

The "chunking" would be a solution, but we are looking other solutions like the occlusion culling..

rp

avatar image Bunny83 · Dec 19, 2012 at 10:39 PM 0
Share

Well, you could of course try to setup some kind of octrees and implement your own occlusion detection. However how efficient a certain technology would be depends on the overall scene setup. occlusion culling only works when whole areas are completely occluded by other objects.

This is great if the viewer for example is a player that can only walk on the ground in a big city. If the viewer can fly way above the city it's quite pointless to use occlusion culling for the buildings since most the time almost all are visible at the same time.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 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

Related Questions

Occlusion culling at runtime 0 Answers

Dynamic Occlusion Flickering in Unity 2020.3.1f1 LTS. How to fix? 1 Answer

Occlusion Culling issue (works like Frustum Culling) 0 Answers

Realtime Occlusion Culling bake exists? 1 Answer

Detecting if object is Umbra culled 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