Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Richard Fulop · Oct 03, 2010 at 07:52 PM · cubeplanevoxel

Best way to render bunch of cubes/planes?

Id like to make a game based on cubes or planes similar to voxels. Something like a 3d-pixel game. What is the best way to do?

I tried Graphics.Drawmeshes, but after making 100x100 planes the fps drops to 8-10..

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Username801 · Jan 28, 2021 at 11:32 PM

You need to combine all the cubes into one giant mesh and remove the internal faces. There is a great YouTube series on making a Minecraft clone in unity, that should help. Link.

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
avatar image
1

Answer by wolfgraphicsLLC · Jan 29, 2021 at 09:36 AM

i have to agree with @Bunny83 here and this is also the reason for LOD on spawned and in world assets and even scene work. as well as level generation procedurally done.

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 Llama_w_2Ls · Jan 29, 2021 at 09:56 AM 0
Share

LOD works for complex meshes with multiple vertices and triangles, but cubes and planes are a bit difficult to make any less detailed.

avatar image wolfgraphicsLLC Llama_w_2Ls · Jan 29, 2021 at 10:36 AM 1
Share

correct the lods are some what more complex however it depends on how it is made i can make say 2 pair of boots one set could be 150,000 k tris very high poly and look great very high detail, well can take and remake the same pair but around 20,000 reuse the same uv map from the high poly and kick up the resolution to 4 or even 8k and they would look just as good often better than the high poly one and wont be as near hard on cpu gpu on pc.

avatar image wolfgraphicsLLC Llama_w_2Ls · Jan 29, 2021 at 10:39 AM 0
Share

the point to the last statement is its really not about the detain bit the tris , face, and poly could as to how much surface of any one object just as @Bunny83 said break it down and even if had to populate an auto generated lvl with the job setup for spawning items and it would be clones not a physical item in the scene

avatar image
0

Answer by Llama_w_2Ls · Jan 29, 2021 at 07:38 AM

They also use a method called chunks, which means loading and deloading objects that aren't in view distance of the camera anymore. This should prevent you from having to render unnecessary amounts of gameobjects in your scene.

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 Bunny83 · Jan 29, 2021 at 09:19 AM 0
Share

Right, chunks are also needed for frustum culling. When a chunk is loaded but not in view it won't be rendered either. Creating one large mesh would be worse for performance as a mesh is one object and has to be rendered as one. So dividing the ground into chunks is a logical step for voxel games like $$anonymous$$C.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Using noise to generate Cube World like terrain 0 Answers

Creating multiple faces (cubes) 1 Answer

Is there a way to edit the dimensions of a gameobject such as a cube or a plane? 2 Answers

Force is changing shape? 0 Answers

instantiate works on one but not other object 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