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 /
  • Help Room /
avatar image
0
Question by JenoahKers · Jan 05, 2019 at 08:19 PM · proceduralterrain generationmarching cubes

How can I convert Marching squares to marching cubes?

Hi everyone,

I want to create a 3d procedural terrain which can be modified by the player. For so far I have found, this should be able to be done by using marching cubes. Now, I haven't found any tutorials that are clear, still online or up-to-date about marching cubes. I did however, find that the marching squares algorithm is a good start for what I want and should be able to later be developed into marching cubes. And I also found out that if I make a voxel engine, I should be able to convert it to the terrain I want. Is this true, or is it something differing?

So I currently am following the marching squares (procedural cave) tutorial of Unity self, but I am wondering on how I can convert from the marching squares into the marching cubes. How can I do this? Is there a good tutorial for this already and if so, could someone please provide the link for this to me?

Thanks,

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

Answer by Bunny83 · Jan 24, 2019 at 01:54 AM

Even though marching squares and marching cubes are based on the same idea they need to be implemented completely different. Also marching cubes has more ambigous cases that are more complicated than with the marching squares. There are plenty of sites explaining the algorithm like this one or this one. The second site (Paul Bourke) has an example implementation written in C++. Paul Bourke's implementations of many common math and graphics related algorithms are the reference implementations for years now.


So even marching squares is related / shares the same idea as the marching cubes algorithm, "converting" one into the other just isn't possible. Knowing how to build a sand castle doesn't really help building a real castle, even they have many things in common.

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 JenoahKers · Jan 24, 2019 at 06:46 AM 0
Share

Ahh, I see. Didn't know about marching- cubes and squares having such a difference. Your example made it clearer. Thanks for that ;)

I have seen Paul's one, but might have read through it to quickly and discarded the site. Now, I've read it again and found it useful though.

The only thing is that I wan't to make procedural terrain out of it and correct me if I am wrong, but the tutorials don't explain how I can do that, do they? Do I need to use a voxel engine for it in which I later implement the marching cubes?

Thanks for the effort ;)

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

103 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 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

I need your help to make procedural floating islands! 0 Answers

Surface Nets for Smooth Voxel Terrain 0 Answers

Diamond Square Algorithm Problems 0 Answers

How to create procedural objects from files? 0 Answers

How to connect NavMesh for Chunks? 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