• Stars
    star
    1,472
  • Rank 31,940 (Top 0.7 %)
  • Language GDScript
  • License
    Other
  • Created almost 7 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HeightMap terrain for Godot implemented in GDScript

HeightMap terrain plugin for Godot Engine

Editor screenshot

Heightmap-based terrain for Godot 3.3.x, 3.4.x and 3.5.x. It supports texture painting, colouring, holes, level of detail and grass, while still targetting the Godot API.

Note: The current Godot master branch isn't supported yet. Use Godot 3.3.x or higher if you want to use this plugin.

This repository holds the latest development version, which means it has the latest features but can also have bugs. For a "stable" version, use the asset library or download from a commit tagged with a version. The master branch is the latest development version, and may have bugs. Some major features can also be in other branches until they are done. For release versions, check the Git branches named after those versions, like 0.10.

To get the last version that supported Godot 3.0.6, checkout branch 0.10.

Installation

This is a regular editor plugin. Copy the contents of addons/zylann.hterrain into the same folder in your project, and activate it in your project settings.

The plugin now comes with no extra assets to stay lightweight. If you want to try an example scene, you can install this demo once the plugin is setup and active: https://github.com/Zylann/godot_hterrain_demo

Usage

Documentation

Why this is a plugin

Godot has no terrain system for 3D at the moment, so I made one. The plugin is currently fully implemented in GDScript. I wish I could make it a C++ module, but being a GDScript plugin allows much faster iteration and everyone can try it and modify it much more easily. Recently, some parts started to be implemented as a GDNative library to speed them up (only on supported platforms). Godot could get a terrain system in the future, maybe in 4.x or after, but it's going to be a long wait, so developping this plugin allows me to explore a lot of things up-front, such as procedural generation and editor tools, which could still be of use later.

GLES2 support

Due to a number of things GLES2 doesn't support officially, and the disparity of extensions Godot is currently trying to use, making this plugin work in GLES2 is quite a lot of work. Some things might be easier, others need completely different implementations.

Here are some of the causes:

  • textureSize doesn't work in shaders. If the following issues can be solved, we could rewrite all shaders without using this function so they are compatible between both renderers.

  • High range textures get clamped to 0..1, making heightmaps completely flat (GLES2 actually supports this through an extension, but Godot doesn't appear to use it).

  • VisualServer has set_data_partial, but it's not implemented so editing terrain doesn't work. GLES2 should also support partial texture update.

  • GLES2 does not require texture fetch from vertex shader to work, so some rare mobile devices implement it, others don't. This plugin heavily relies on displacing vertices from shader. Generating unique meshes would require a huge rewrite just so it works on those devices and would use a ton more memory to store all the required meshes and LODs.

  • The procedural generator doesn't work, and likely never will in GLES2 because it relies on HDR framebuffers.

  • For more info, see #96

Supporters

This plugin is a non-profit project developped by voluntary contributors. The following is the list of the current donors. Thanks for your support :)

Gold supporters

Aaron Franke (aaronfranke)

Silver supporters

TheConceptBoy
Chris Bolton (yochrisbolton)
Gamerfiend (Snowminx) 
greenlion (Justin Swanhart) 
segfault-god (jp.owo.Manda)
RonanZe
Phyronnaz
NoFr1ends (Lynx)

Supporters

rcorre (Ryan Roden-Corrent) 
duchainer (Raphaël Duchaîne)
MadMartian
stackdump (stackdump.eth)
Treer
MrGreaterThan
lenis0012

More Repositories

1

godot_voxel

Voxel module for Godot Engine
C++
2,105
star
2

voxelgame

Voxel world prototype made with Godot Engine
GDScript
432
star
3

godot_scatter_plugin

A tool to help placing lots of environment props in a scene
GDScript
178
star
4

godot_tree_generator_plugin

Tool for generating trees in Godot Engine
C++
147
star
5

solar_system_demo

Demo of a space game made with Godot and voxels
GDScript
144
star
6

godot_editor_debugger_plugin

A plugin to inspect the editor's scene tree itself, within the editor.
GDScript
134
star
7

godot_terrain_plugin

3D Terrain plugin for Godot Engine [NO LONGER MAINTAINED]
GDScript
128
star
8

unity_to_godot_converter

An experimental converter from Unity to Godot game engines
C#
123
star
9

godot_debug_draw

Debug drawing utility for Godot Engine
GDScript
89
star
10

godot_sdf_blender

Compose volumetric models using Signed Distance Fields
GDScript
72
star
11

godot_heightmap_module

Heightmap module for Godot Engine 3.0 [NO LONGER_MAINTAINED]
C++
64
star
12

godot_atmosphere_shader

Planet atmosphere shader for Godot Engine
GDScript
60
star
13

godot_hterrain_demo

Terrain demo project in Godot Engine 3
GDScript
47
star
14

godot_opensimplex

[NO LONGER MAINTAINED] Open simplex noise module for Godot
C
41
star
15

godot_translation_editor

Translation editor plugin for Godot Engine
GDScript
38
star
16

godot_scene_code_converter

Convert Godot scene branches into C++ engine-side code
GDScript
35
star
17

gdscript_performance

Tests to measure Godot performance
GDScript
27
star
18

godot_grapher

A simple graphing application made with Godot Engine
GDScript
26
star
19

godot_blackhole_plugin

2D black hole effect for Godot Engine
23
star
20

fluid2d_demo

Prototype showing a 2D cellular automata simulating a fluid
GDScript
23
star
21

godot_channel_packer_plugin

Tool to pack texture channels in Godot Engine
GDScript
22
star
22

godot_fastnoise

FastNoise library integration for Godot Engine
C++
20
star
23

AudioToy

A web-based toy to generate sound from Javascript code (wavepot.com clone).
CSS
18
star
24

zprofiler

A CPU time profiler for Godot Engine
C++
17
star
25

godot_collision_scanner

Raycast-based collision viewer for Godot Engine
GDScript
16
star
26

SnowfeetEngine

C++ game engine
C
16
star
27

godot_texture_generator

Node-based texture generator
GDScript
15
star
28

zCraft

A C++ poly-voxel prototype
C++
15
star
29

godot_project_statistics

Project statistics plugin for Godot Engine 3
GDScript
15
star
30

Simciv

City builder game
Java
11
star
31

godot_music_manager

A simple music player that supports fading
GDScript
10
star
32

godot_3d_basics

Small set of useful assets for 3D game development using Godot Engine 4.x.
GDScript
10
star
33

godot_editor_light_plugin

A plugin lighting up scenes which don't have any light in the editor
GDScript
9
star
34

hex_viewer

Hex file viewer made with Godot Engine
GDScript
9
star
35

godot_text_editor

A text editor remade in GDScript for fun
GDScript
7
star
36

godot_fast_noise_lite_shader

FastNoiseLite port to Godot Engine shaders
6
star
37

godot_code_minimap_plugin

Code minimap plugin for Godot Engine 3
GDScript
6
star
38

voxel_raytracing

Voxel raytracing experiments
GLSL
6
star
39

marbles

Marble race game made with Godot for Isolation Game Jam 2019
GDScript
6
star
40

AudioRift

A visual HTML5 audio player
JavaScript
6
star
41

godot_hextile

Hextile texturing demo for Godot Engine
5
star
42

SnowfeetFramework

A C++ 2D game engine prototype
C++
5
star
43

godot_profiling_viewer

A viewer for profiling dumps made with Godot Engine
GDScript
5
star
44

saga_toolkit_app

A set of GUI tools for hobbyist audio series production
GDScript
5
star
45

vulkan_thing

Learning Vulkan
C++
4
star
46

DCPU16

A DCPU16 emulator and assembler written in C++
C++
4
star
47

SimcivOnline

An attempt to create an online world and city simulator
C++
4
star
48

godot_flyer_test

Test project made with Godot 3.0 (pre-alpha)
GDScript
3
star
49

Grid

2D shooter game
C++
3
star
50

OrganSampler

Organ sampler plugin compatible with GrandOrgue files (VST2/RTAS/AAX)
C++
3
star
51

mosaic

Photomosaic generator made with Godot Engine
GDScript
3
star
52

audacity2reaper

An experimental project converter from Audacity to Reaper
Python
3
star
53

flowgraph

A tool to make quick graphs
GDScript
3
star
54

godot_imhex

Godot Engine binary formats for ImHex
2
star
55

LostWithACompass

My Ludum Dare #30 compo game
C#
2
star
56

SML

JSON-like data format with sugar
C++
2
star
57

SagaToolkit

A set of tools for audio plays production
Python
2
star
58

UDKTest

UDK test for learning.
UnrealScript
1
star
59

ToyVM

Stack-based script language, made for fun
C++
1
star
60

GGJ14

Canard (french for Duck)
C#
1
star