Skip to content

NickToony/gd-retroterrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot RetroTerrain

This is an example of how to build terrain similar to old strategy or management games, like Rollercoaster Tycoon. It also includes a water shader and basic terrain generation. While the code is in C# for Godot 4, there's no reason this couldn't work for GDScript and/or Godot 3.5.

This implementation is based on the fantastic tutorial by Eric Schubert. Please watch the video for a full guide on how this works (linked below).

Features

  • Generation of terrain mesh and normals
  • Smooth texturing based on height of vertexes
  • Perspective and Orthographic camera implementations
  • Basic map generation using FastNoise
  • Optional smoothing of normal maps, so the shading looks less blocky

What's missing?

This example should be a great starting point, but if you wanted to take this further:

  • Chunk-based map rendering
    • Tying to render huge maps (e.g. 1000x1000) ends up crashing Godot. Try breaking the map into several smaller meshes as needed.
  • Collisions
    • Using a similar technique to the mesh generation, you should be able to easily generate a collision shape.

Credits

About

Terrain just like RCT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages