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 JenoahKers · Dec 22, 2018 at 08:31 PM · terraindeformationterraforming

How do I make a terraforming system?

Hi everybody,

I'm currently working on a low poly game in which the user has a toolgun which can modify the world around the player. This toolgun should be able to dig holes (in 3D space) and also raise/fill the world (back) up. I though that this can be done be deforming the mesh, but I am not able to find a tutorial that suits my needs.

I have found a video of what the system that I want is bigger lines. In this video the player can do as described and the mesh also gets subdived to keep everything look normal. Although the person in this video uses different planes for the deformation, I'd like to do the on one mesh if possible.

My terrain is a procedurally generated mesh which I created by following the tutorials of Brackeys. It is a single mesh and this not a Unity terrain. Ohh, and the position of where the terraforming should take place is being found by a raycast hit :-)

Does anyone have any experience with this system?

Thanks upfront and merry Christmas,

Comment
Add comment · Show 1
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 hexagonius · Dec 24, 2018 at 09:17 AM 0
Share

no, but this looks promising for a start:
https://www.google.com/amp/s/www.createursdemondes.fr/2015/10/astroneer-ue4-marching-cubes-et-transvoxel-algorithm/amp/

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by FBP_SHH · Dec 24, 2018 at 09:57 AM

The Brackeys tutorial is letting you spawn quads, then setting their heights. If you can live without tunneling, you can just modify the vertices Y positions near your raycasthit and regenerate the mesh.


It's not too hard to get the worldposition for a vertex in Unity. https://docs.unity3d.com/ScriptReference/Transform.TransformPoint.html


If you want the tunneling, you're using the wrong technique for terrain rendering. The video you showed seems to be using marching cubes, which is a whole different ballgame.

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 · Dec 24, 2018 at 10:00 AM 0
Share

Ahh, I see. Then I will look into marching cubes since I'd like to use tunneling. Thanks ;)

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

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

dynamic deformation of terrain 3 Answers

Get Terrain location at raycast point 1 Answer

Make a simple tree 1 Answer

Terrain deformation in networking? 0 Answers

Implementing destructible terrain, deformable ground, or craters for an artillery game (think scorched earth!) 2 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