Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 vickblack · Aug 27, 2012 at 12:59 PM · meshprefabprefabslevelocclusionculling

One huge mesh or a lots of prefabs

Hi I am making a level with a lot of simple beveled cube, and I don't know if I should use one prefab of the simple beveled cube, build the level in unity with these and use occlusion culling or if I should build the level in blender then export it as one object then use occlusion culling.

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
1
Best Answer

Answer by Sirithang · Aug 27, 2012 at 03:30 PM

Occlusion Culling won't work if there is one huge mesh : The Unity occlusion culling use GameObject, it disable them based on their visibility.

So if you have one huge mesh (that is one gameobject in the hierarchy), it won't ever get culled.

I would recommend using different object. The thing that you can do is still use a 3D app (like blender) but make different object in blender. When imported, unity will keep the blender hierarchy (in fbx anyway) and so occlusion culling will work.

Keep in mind this object-thing when deciding what doing as a whole and what spliting. for example each room could be separated, allowing the culling to be done on a per-room basis etc...

More info here :

http://docs.unity3d.com/Documentation/Manual/OcclusionCulling.html

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 vickblack · Aug 27, 2012 at 09:49 PM 0
Share

Without Occlusion Culling is it still better to use prefab for each cube and build the level in unity or export the mesh as a single object for the whole level

here is a not to scale plan of a level to help understand http://imgur.com/k7mlN

avatar image Sirithang · Aug 27, 2012 at 09:59 PM 0
Share

Depends on what you plan.

Prefabs have the advantage of being versatile : you cna change them, or change a bit of the level without redoing everything.

If you model the whole level, you'll beforced to do it INSIDE the 3D modeler each time you want to made a tiny change.

Now prefab have probleme to : if you plan on building your level from saying, piece of wall you glue together, you could have problem of precision at the joint, especially with lightmapping : tiny shadow appearing at each joint, flickering when too far from the wall etc...

But for your level made entierly of BevelCube that shouldn't be a problem, so I would recommend the GameObject (mark them as static, and Unity will batch them for extra speed. And plus you'll be able to occlusion cull them)

The pipeline I would recommend for piece will one piece walls (not maybe the easier or faster, but so far the "best" I have used in different project) is to build the level from block to playtest and allow tiny change fast. Then once the level is pretty much declare "ok", go model it with plane and a lot fewer polygon, and in one block, in your 3D app.

avatar image vickblack · Aug 27, 2012 at 10:10 PM 0
Share

Thank a lot I will than build my level cube by cube

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mesh Filters randomly self deleted 0 Answers

Apply new complex fbx to saved prefab 0 Answers

Generated mesh not applied to main prefab (2018.3) 0 Answers

Changing a script inside a prefab 1 Answer

Prefab is not changing image in android 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