Terrain Generator with UDMF Map export

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
jval
Posts: 1
Joined: Sat Dec 12, 2020 8:58 am
Graphics Processor: nVidia with Vulkan support

Terrain Generator with UDMF Map export

Post by jval »

Terrain Generator

Image

Terrain Generator is a simple terrain/elevation editor.
It can generate terrains that can be saved as:
  • Doom levels (UDMF format) for advanced source ports as GZDoom, K8Vavoom etc
  • RAD (Radix - Beyond the void remake) levels in Doom format
Features
  • 3d Preview inside the application
  • Loading Resource images from various sources (WAD/PK3/Disk files)
  • "Texture painting" with optional blending
Project Page: https://sourceforge.net/projects/dd-terrain/

Downloads (version 1.0.4.16 (20201214)
Executable (win32): https://sourceforge.net/projects/dd-terrain/files/DD_Terrain_1.0.4.16/DD_Terrain_1.0.4.16_win32.zip/download
Source code: https://sourceforge.net/projects/dd-terrain/files/DD_Terrain_1.0.4.16/DD_Terrain_1.0.4.16_src.zip/download
Source Code Repository: https://github.com/jval1972/DD_TERRAIN]https://github.com/jval1972/DD_TERRAIN]https://github.com/jval1972/DD_TERRAIN


Purpose
The purpose of the project is to easily create terrains and export them and continue editing them in a map editor.
The terrains can be created either by importing the texture and heightmap from external files on disk, or by editing inside the application.

Example terrain
Example terrain (along with pre-builded maps): https://sourceforge.net/projects/dd-terrain/files/Examples/Example02.zip/download

The exported map of the example in DoomBuilder

Image

In-game screenshots of the example

Image
Image

Main Application Window

Image


Some hints for using the application

The main application consists of the drawing and editing tools, the texture manager, the 2d preview and the 3d preview.

Drawing Tools
The drawing tools are used for painting directly to the terrain texture.

There are 3 drawing tools:

Image
  • rectangle: Draws rectangular shape
  • circle: Draws round shape
  • round edge: Draws round shape with smooth edge
The drawing tools can be configured by the Drawing Options:

Image
  • Size: The size of the shape
  • Opacity: The drawing opacity percentage (from 1 to 100)
  • Scale: The drawing source scale (from 10% to 400%)


Mesh Tools
The mesh tools are used for altering the terrain geometry.

There are 3 mesh tools:

Image
  • edit mesh: Changes the position grid vertexes
  • elevation: Changes the elevation of the terrain
  • smooth: Smoothes the elevation of the terrain
The mesh tools can be configured by the following options:

Image
  • Height: The amount of elevation that the elevation tool applies
  • Smooth: The strength of smoothness that the smooth tool applies
By pressing the right mouse button over the 2d preview of the terrain the "Edit Heightmap Item" dialog appears:

Image

In this dialog you can manually set the elevation and x/y offsets of a vertex.

There are the following options:
  • Height: The amount of elevation of the vertex
  • DX/DY: Horizontal plane offsets to make accurate deformations to geometry, not limited by automatic grid spacing

Texture Manager
The texture manager allows you to load texture from various sources.

The selection is used by the drawing tools.

Image

There are 4 tabs:
  • WAD file: Loads flats from a WAD file
  • PK3 file: Loads textures from a PK3 archive. PNG and JPG images are supported
  • Directory: Loads textures from a directory in your hard drive. PNG, JPG, TGA and BMP images are supported
  • Color: Plain color
3D Preview
This is where we can observe our efforts :)

We can change the camera position by clicking the left or right mouse button, or by scrolling the middle mouse button.

Image

Creating a New Terrain
You can create a new terrain by selecting the File/New menu item:

Image

Then the "New Terrain" dialog appears:

Image

In this dialog we can select the properties of the terrain:
  • Texture Size: The actual size of the terrain. This is the drawing surface and can have sizes from 256x256 to 2048x2048 pixels
  • Heightmap Size: This control the number of vertexes. It's size can be from 5x5 to 65x65
Import and Export
Terrains generated with Terrain Generator are saved in a custom format. In order to share data between different applications we use the import and export menu items.

Import

Image
  • Terrain texture: Loads the terrain texture from an image on disk. The image will be stretched to fit the terrain dimentions
  • Heightmap: Loads the heightmap from an image on disk. The image will be stretched to fit the heighmap size. The image will be converted to grayscale and each pixel will represent the elevation of the terrain

Export

Image
  • Screenshot (3d View): Saves the current 3D view of the terrain on an image on disk.
  • Radix WAD Map: Saves the terrain in a WAD file that can be used with RAD (source port of Radix: Beyond the Void)
  • UDMF Map: Saves the terrain in a UDMF file that can be used with advanced source ports
[/spoiler]
User avatar
Caligari87
Admin
Posts: 6210
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: Terrain Generator with UDMF Map export

Post by Caligari87 »

[incoherent joyful screaming]

I've been waiting for something like this ever since zTerrain was abandoned. Will test soon and provide some feedback!

8-)

Return to “Creation, Conversion, and Editing”