Skip to content
Projects

ToumaKamijou/Yugens-Terrain-Authoring-Toolkit

View on GitHub

About

The public version of the Marching Squares Terrain plugin for godot.

Games & Emulation

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+2
in 15 days
+12
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Yūgen's Terrain Authoring Toolkit

terrain 1 3 screenshot unfinished

The public version of the Marching Squares Terrain plugin for the Godot Engine.

This project is an effort to create a simple to use and powerful terrain authoring tool inside godot aimed at 3D pixel art games. However, the plugin featured in this project can be used for a wide variety of games and experimentation is encouraged!

Features

Terraforming Brushes

What is a terrain plugin without its terraforming tools! As the terrain is heightmap based, all the terraforming brushes can only extrude in the postive and negative Y axis, however, this still allows for plenty of amazing ways to shape your terrain to your liking:

  • BRUSH TOOL → A simple way to elevate and lower terrain cells;

  • LEVEL TOOL → Set the terrain's selected cells' height to a user-set value;

  • SMOOTH TOOL → Smooth the terrain depending on the average height of neighbouring cells;

  • BRIDGE TOOL → Create a bridge between two points by drawing a straight or curved line between them.

Terraforming Brushes Demo

Watch the demo video on YouTube ↑

Visual Brushes

To enhance the visuals of your terrain and game the plugin currently features a set of 3 visual-based brushes that each alter the terrain in a different way.

  • GRASS MASK TOOL → Paint a mask map that determines whether selected cells should draw MultiMeshInstance3d grass instances;

  • VERTEX PAINTER TOOL → Paint up to 255 custom textures onto the terrain vertices each with their own list of simple and advanced settings;

  • POPULATOR TOOL → Spawn flowers onto the terrain via the custom MarchingSquaresFlowerPlanter node.

Visual Brushes Demo

Watch the demo video on YouTube ↑

Plugin Management Tools

These custom tabs and brushes allow you to change and debug terrain, chunk and heightmap settings. They offer a wide variety of customisability so you can create your dream terrain and game feel!

  • DEBUG BRUSH TOOL → By selecting terrain cells you can print certain information about them in the in-editor output terminal;

  • CHUNK MANAGEMENT TOOL → Here you can change not only global chunk settings but also manage the smoothing algorithm of individual chunks and add NavMesh sections to the terrain;

  • HEIGHTMAP TOOL → This tool comes in three parts: 1) terrain importing; 2) terrain exporting; 3) heightmap extraction and linked brush placement. These tools are all focussed on creating a faster terrain workflow;

  • TERRAIN SETTINGS TOOL → This final tool allows for terrain wide changes that do not only affect the chunks themselves but also the tool-related meshes inside it. A couple examples are global wind, post-processing effects, texture blend settings and cell shading.

terrain_settings_demo_picture

For more in-depth documentation on all the above tools and features, please refer to the documentation folder in the addon.

For community showcases, feature requests and bug reporting, please refer to the discord. A bug can also be reported by opening a new issue thread in the issues tab of this github project.

Install Guide

To install the plugin, simply download or clone the latest stable version of this project and copy the plugin from this project's addon folder into your own. Make sure to turn on the plugin in godot by going into the project settings and under "plugins" checking the checkbox next to the plugin's name.

Watch the YouTube videos to get started with the plugin!!!

Known Issues

  1. d3d12 doesn't load terrain material properly when in game on some devices

Supported Pipelines

As of right now the plugin only supports Forward+ and limited Compatibility rendering with both Mobile and Web rendering not supported.

Which one you should use is dependent on your personal project but also your GPU as some GPU's work better with Forward+ than Compatibility.

PR Workflow

Please target and base your PR's on public-testing instead of main otherwise we will not review or approve them!

Furthermore, code that is clearly AI-written and/or authors that show signs of not having a fundamental understanding of the type of code that they are contributing will be disregarded.

Lastly also make sure to follow the code style guide and give a good description of what your PR fixes or adds so we don't have to go through all the files unnecessarily.

Credits

Developed by Yūgen and originally forked from Jackachulian on github.

Collaborators (v1.1.0 ONWARDS):

A special thanks to OfficiallyBeez, DanTrz (creator of the TileMapLayer3D plugin), powertomato and santarl for co-authoring big parts of the plugin since the 1.0 release. They have been amazing contributors to the project and awesome people to work with!

Contributors:

A big thanks to the above people for giving helpful insights, discussing certain features and thinking together about math related problems. Without them I couldn't have finished the plugin as fast as I have.

Explore related projects

Loading…