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 iSasFTW · Jan 11, 2016 at 06:10 PM · terrain3dgrounddestructible

Destructible ground?

Hey! So, i'm pretty new to Unity, (I've never made anything too serious with it) and i'm wondering how i can create a destructible ground, that can be mined out using various tools? I assume i can't use the default terrain system of Unity, since that creates flat terrain, and if i raise the ground it is going to be hollow on the inside. I'll probably make a 3D model, that is the form of my terrain and is deep. Anyway, how can i create holes into that model/prefab, so you can technically mine down?

Sorry if this question has been asked before, but couldn't find any answers...

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 Whiteleaf · Jan 11, 2016 at 06:26 PM 1
Share

If you're new you should focus on things that you can actually do, which in this case is not terrain editing like destructible terrain. I did this back when I was new, but seriously, make small things for now and then you'll get to the point where you can make something a bit bigger and then eventually you'll reach the point where you can do this.

Best of luck finding your answer, although it is probably a complex solution.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by whisp · Jan 11, 2016 at 06:45 PM

The Unity terrain engine is indeed not suited for "mining", since it's purely heightmap-based and thus doesn't support overlapping terrainparts.

However, the 3d model doesn't need to be deep, it just needs to be suggestive of beeing deep, while you would extend it by a hole in a specific direction when the player uses his shovel on it. A very difficult task if you want to do this with a common mesh model, e.g. with boolean operations on polygons. But this is not only difficult for the developer, but also for the CPU and thus not really a recommendation.

But you could do something like minecraft: Just start arranging blocks next to each other (e.g. create an editor or generate them procedurally, e.g. with perlin noise) and start optimizing (e.g. removing unseen blocks, merge blocks and so on) when you note problems in performance. That's a good way to learn more about Unity and 3d Graphics.

Or you just use an existing asset, such as Voxeland from the Unity Asset Store.

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
0

Answer by TySim · Jan 13, 2016 at 06:55 PM

Suggestion you can try...

Create a flat plane. Create a set of "blocks" to go on the plane that is terrain. The first 3 or 4 blocks would look like a dug hole so to speak and the top box would be the actual terrain block. When someone digs, the top block gets destroyed and the underlying block (that looks like a hole) is visible. That block can actually have concave curve on the top to give it more realism, instead of just a cube.

This is resource intense though, so optimizing it is a must.

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 iSasFTW · Jan 14, 2016 at 01:22 PM 0
Share

The thing is i'm not going for block based... I'm asking if there's a way to blow holes into a mesh.

avatar image TySim iSasFTW · Jan 15, 2016 at 03:32 AM 0
Share

Check this link out It tells you how to modify a mesh at runtime...

avatar image iSasFTW TySim · Jan 16, 2016 at 06:05 PM 0
Share

Unfortunately I have no idea what I'm reading xD

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

6 People are following this question.

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

Related Questions

Terrain painting in grid? 0 Answers

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

My characters can't sto falling terrain 1 Answer

Destructable objs and terrian 0 Answers

How to make a piece of image disappear? 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