Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

3D Terrain plugin for Godot Engine [NO LONGER MAINTAINED]

Notifications You must be signed in to change notification settings

Zylann/godot_terrain_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

3D Terrain plugin for Godot Engine [NO LONGER MAINTAINED]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published