Git Product home page Git Product logo

godot_terrain_plugin's Introduction

Godot Terrain Plugin

This is a heightmap-based terrain node for Godot Engine 2.1, written in GDScript.

Editor screenshot

Important

I ported this plugin to Godot 3: https://github.com/Zylann/godot_heightmap_plugin
I used to also work on a module version: https://github.com/Zylann/godot_heightmap_module
I stopped support on Godot 2.

Features

  • Custom Terrain node

  • Resizeable square between 1 and 1024 units of space

  • Raise, carve and smooth the terrain in the editor

  • Paint vertex colors to add textures with shaders

  • Brush with customizable shape, size and opacity

  • Takes advantage of frustum culling by chunking the terrain in multiple meshes

  • Collisions

  • Smooth or hard-edges rendering

  • Save to image and normal map

  • Terrain data saved inside the scene like Tilemap and Gridmap

  • Edition behaviour works both in editor and game

  • Undo/redo

  • Experimental: quad rotation to improve shading in some cases

  • Extras: sample assets in this repo :)

TODO/ideas

  • Meshing is very slow (will this plugin remain pure GDScript?)

  • Level of detail (non-trivial! Requires faster meshing)

  • Baked mode for faster terrain loading (it is currently rebuilt from data both in editor and game)

  • Save terrain data as a separate resource to unbloat the scene file

  • Decorrelate resolution and size

  • Make Terrain inherit Spatial so it can be moved around

  • Paint meshes on top of the terrain (grass, trees, rocks...) <-- I want to make a vegetation generator plugin too :p

  • Improve normals (data "pixels" produce lighting artefacts)

  • Make live edition work

  • Mesh simplification (an editor lib would be welcome)

  • Infinite terrain mode

  • Extras: importer for terrains made in DCCs (Blender/3DS etc)

godot_terrain_plugin's People

Contributors

zylann 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.