Giter VIP home page Giter VIP logo

mgs.terrainmodifier's Introduction

MGS.TerrainModifier

Summary

  • Unity Terrain modifier.

Environment

  • Unity 5.0 or above.
  • .Net Framework 3.5 or above.

Demand

  • Occasionally, you may encounter a catastrophic problem in Unity project, example the terrain has been brushed but the demand change to brush a river or basin on the original terrain. if the terrain was created base on height zero, the river or basin cannot be brushed in this case, because Unity does not allow any part of the terrain is brushed to be negative. therefore, we hope that we can modify the heightmap data to raise whole terrian to continue brush landforms.

Prerequisite

  • Unity provide the API(GetHeights and SetHeights methods of TerrainData class) to modify TerrainData.

Scheme

  • Create extend editor window, select target TerrainData file and set raise height value.
  • Add the raise height value to TerrainData heightmap.

Usage

  1. Find the menu item "Tool/Terrain Modifier" in Unity editor menu bar and click it or press key combination Alt+T to open the editor window.
  2. Set the target "Terrain Data" and "Raise Height".
  3. Click the "Modify" button to open the dialog and make your choice.

Warning

  1. "Modify" operate can not be recovered, make sure you have a backup of target terrain data.
  2. Don't set a negative value to the Raise Height unless you know the terrain data inside out.

Preview

  • Terrain Modifier

Terrain Modifier


Copyright © 2021 Mogoson. [email protected]

mgs.terrainmodifier's People

Contributors

mogoson avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.