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
0
Question by byF4T · Oct 06, 2016 at 02:27 PM · terrain

Unity 5 - Smooth Voxel Terrain (like CubeWorld or Trove) with custom structures on it

Hi!

Im currently sitting on a game, similar to CubeWorld/Trove, i have everything done, except for the Terrain. So, my question is, how do i generate an endless smooth Voxel terrain, with custom structures/prefabs on it? thank you in advance! - F4T

And no, im not trying to make a Minecraft clone or something similar to this.

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
0

Answer by Calum_1015 · Oct 08, 2016 at 07:33 AM

There is a large list of voxel terrain generators out there, but I can personally recommend Cubiquity. It comes with both smooth (marching cubes algorithm) terrain, and a cube-like terrain generation algorithm similar to Minecraft. That solves the terrain issue. As for generating custom structures on the terrain, You could probably modify this to fit your needs.

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 byF4T · Oct 26, 2016 at 03:38 PM 0
Share

Thanks! but so far as i know, Cubiquity can't generate procedual generated worlds, or am i wrong? :o

avatar image Calum_1015 · Oct 26, 2016 at 11:50 PM 0
Share

Cubiquity is a procedural voxel generation. It is based entirely around procedurally generating worlds. Here is a blog entry where they mention it at runtime. When you download the plugins there are several procedural generation examples.

avatar image
0

Answer by AurimasBlazulionis · Oct 08, 2016 at 08:10 AM

What you are trying to achieve is not that simple. The thing you have to look for is marching cubes. It basically takes generated float array and turns it into a mesh. I will leave some resources that could be useful. The most important thing to remember is that you have to store all data in floats, and each voxel has to have a weight which will let the algorithm to decide how full is the voxel.

Resources:

https://www.google.lt/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwj-gbq34MrPAhXClSwKHcx2DtkQFggtMAE&url=https%3A%2F%2Fgithub.com%2Fkristofe%2FUnityGPUMarchingCubes&usg=AFQjCNHnQtfcM8xPA2gc-uFdTomiROYIgQ&sig2=vHOZ3f5BiYvi5AjVAJQGdQ https://en.wikipedia.org/wiki/Marching_cubes https://people.eecs.berkeley.edu/~sequin/CS285/PAPERS/Lorensen_Cline.pdf http://answers.unity3d.com/topics/marching+cubes.html http://answers.unity3d.com/questions/413068/how-to-implement-marching-cubes-in-unity-with-c.html http://stackoverflow.com/questions/9330334/a-good-example-code-of-how-to-implement-marching-cubes

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 byF4T · Oct 26, 2016 at 03:36 PM 0
Share

Thanks very much! c: You really helped me out :D

avatar image AurimasBlazulionis byF4T · Oct 26, 2016 at 03:44 PM 0
Share

Remember to accept helpful answers

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Make a simple tree 1 Answer

How to convert mesh object to terrain Unity 4.5 0 Answers

Terrain has a Sparkle affect? 1 Answer

generating a 3D terrain from a 2D tiled map 2 Answers

how to create terrain on a sphere in script? 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