Specifications: Terrain Blocks †
This is how to add terrain blocks.
Add texture images together in one folder.
File Formats that can be Added †
The shape of the terrain block is determined by the program.
Only texture images are to be added as assets.
A single face of a single block texture can be made up to 128x128 pixels.
(The maximum size can be changed in the "Unit Size" of the terrain properties.)
The maximum size is also overridden by the size specified in "Map Settings > Basic > Texture Settings > Resolution".
If the terrain property is specified as 128, but the resolution in the map settings is 64, it will be rendered as 64 pixels in the map editor.
- File Format
Full color PNG or BMP format
(One texture per terrain block is required.)
- Texture Types
As with 3D models,
- Albedo (color) texture
- Normal map texture
- Mask map texture
can be configured.
Depending on the texture you want to express, you do not necessarily need to use normal maps and mask maps.
- Vertical Size
The texture of one frame is 128 x 128 pixels, with the uppermost frame at the top and the side frames below it at the required height to make a single image.
The side frame are in order from top to bottom: topmost side, second side from the top....
At least one frame on the sides is acceptable.
If the terrain is raised, the missing area is repeated on the same side.
Also, if there is only a top surface, all sides and bottom surfaces will have the same texture as the top surface.
- The figure below is an example where two sides are provided.
When the elevation of the terrain is increased to three or more levels, the sides of the second level are used repeatedly.
- The figure below is an example where three sides are provided.
When the elevation of the terrain is increased to four or more levels, the sides of the third level are used repeatedly.
- Horizontal Size
Normally 128 pixels per frame, but if you want to animate it like water, you can arrange them side by side for the number of frames of the animation.
The display time of each frame is fixed.
- Slopes and Stairs
In the case of a slope, the frames corresponding to the top and sides of the terrain are scaled to display the slope and sides, respectively.
For stairs, three frames are required: top of step, front of step, and side of step.
Example of Stairs
Normal Map Textures and Mask Map Textures †
If you have a normal map and a mask map, place them in the same folder as the albedo (color) map texture so that they are automatically loaded when the albedo texture is loaded.
In order to have it automatically loaded, the normal map must be suffixed with "_normal" and the mask map must be suffixed with "_mask".
Preparation of Folder to be Added (1): When exporting system assets †
Terrain textures for system assets in the reserved folder can be exported to an external folder for use.
- From the List of Terrain Blocks, select the terrain block you wish to export.
You can also select an entire category from the "Terrain Category" section.
Categories are tabs in the list of map parts.
- Press the Export button on the list menu.
- When the "Select the folder to export to" dialog box appears, select the folder to export to from Explorer and press the "Select Folder" button.
- A folder for the selected terrain block will be created in the selected folder, and the PNG files will be exported to that folder.
Exported textures (PNG files) can be modified by image editing software.
Preparation of Folder to be Added (2): To prepare a new one †
Before adding textures, prepare an appropriate folder for addition and place all the textures in the folder.
How to Add †
Let's look at the basic steps for adding grass terrain.
- Click the Add button under "Resources -> Terrains," select the terrain texture you wish to add in the asset picker, and click "Add and Exit.
If "SameFilename_normal" and "SameFilename_mask" exist, they will be loaded automatically even if you do not select them.
- A terrain stamp has been added. Continue to specify the terrain stamp.
- Configure various settings.
In this example, the texture size is 128, so specify " Unit Size" as 128.
In this example, a mask map is provided, but if no mask map is available, a simple texture can be selected with a "material map".
Please see the Material Map section below for more information.
Attribute settings are also available.
Specify "Traversable: YES" since the terrain is normally passable.
Specify "Liquid: NO" since it is not a liquid.
"Round Corners: YES" because it is a natural type of terrain.
For man-made terrain, such as blocks or marble, NO will not round the corners.
If sound effects are available, specify them in "Sound Effects".
When the player character walks on the terrain, the specified sound effects will be played.
This completes the basic terrain setup.
- Once specified, select the terrain stamp you created in the Map Editor and paint it on a map.
Asset Data Settings †
You can specify optional settings for the added terrain blocks, such as rounded corners when raised, traversable/non-traversable, etc.
This is also where you specify whether you want it to be a stairs or a slope.
- Select "Resources" > "Terrains."
- In the Terrain List, select the terrain block to specify. On the right side of the preview, under "Terrain Model Attributes," you will see the current specs, which you can change if necessary.
About Terrain Model Attributes †
- Unit Size
The size of the terrain texture can be changed between 2 and 128 pixels.
Change it to match the texture you have created.
- Material Map
You can select a texture from the presets prepared in advance.
Even if you do not have a mask map, you can use this preset to add some texture.
[None] No material map is used.
[flat] Matte texture
[marble] Smooth texture like marble
[metal_noise] Metal + rough texture
[noise] Matte and rough texture
- Normal Map and Mask Map
If a normal or mask map is ready, specify them here.
- Special Settings
You can select " Terrain," "Stairs," or " Slope" as the type of terrain block.
Stairs and slopes are special terrain blocks that behave more like objects.
The elevation cannot be changed, but the orientation can be changed instead.
In setting up, the texture may be shifted on terrains with only two texture frames.
- Various Textures for Stairs
If you have prepared textures for stairs, specify them here.
- Map Generation Color Type
When using the function to automatically generate a new map from an image data, specify here in advance what color this terrain model is to be assigned.
- Repeating Method
Specify how the texture repeats when the elevation is specified.
[Repeat Middle] Repeat the middle texture and do not use the bottom texture.
[Repeat Bottom] If the maximum elevation provided by the texture is exceeded, the bottom texture will be used repeatedly.
Allow walking on terrain blocks.
It displays the top surface slightly lower than the surrounding ground, like the ocean.
- Round Corners
Round the corners of the terrain block.
For natural terrain, specify YES for natural rounding.
Also, for man-made terrain such as blocks or marble, NO will not round the corners.
- Sound Effects
A sound effect can be specified for each terrain.
- State Changes
If you want to link the terrain to the condition, click here to turn it on.
(The content of the state changes can be specified in "Database -> State Definitions".)