#author("2022-10-15T00:48:58+00:00","default:admin","admin")
#author("2022-10-15T11:35:17+00:00","default:admin","admin")
*Specifications: Terrain Blocks[#ta474a47]

This is how to add terrain blocks.
Add texture images together in one folder.

#contents

//COLOR(#FF0000):画像入る
#ref(./Terrains.png,50%)
#br


**File Formats that can be Added [#o7ad591a]

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.)

//COLOR(#FF0000):画像入る
#ref(最大サイズEN.png)
#br

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.

//COLOR(#FF0000):画像入る
#ref(テクスチャ設定.png)
#br

-''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
#br
can be configured.

#br
Depending on the texture you want to express, you do not necessarily need to use normal maps and mask maps.
#ref(ノーマルマップ.png)
#br

-''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.

#br
//COLOR(#FF0000):画像入る
#ref(地形5.png)
#br

--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.

#br
//COLOR(#FF0000):画像入る
#ref(地形6.png)
#br


-''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.

#br
//COLOR(#FF0000):画像入る
#ref(./水プレビュー.png,50%)
#ref(地形7.png)
#br


-''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.

#br
//COLOR(#FF0000):画像入る
#ref(地形8.png)
#br

Example of Stairs



**Normal Map Textures and Mask Map Textures [#t6f6caa4]
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".

#br
//COLOR(#FF0000):画像入る
#ref(ノーマルマップ.png)
#br

**Preparation of Folder to be Added (1): When exporting system assets [#qc60a83f]
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.
#br
+Press the Export button on the list menu.
#br
//COLOR(#FF0000):画像入る
#ref(エクスポート.png)
#br
#br
+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.
#br
+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 [#x32bb61e]
Before adding textures, prepare an appropriate folder for addition and place all the textures in the folder.

#br
//COLOR(#FF0000):画像入る。入れなくても良いかも
#ref(地形11.png)
#br

**How to Add [#sefc6a9b]
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.
#br
//COLOR(#FF0000):画像入る
#ref(追加方法1.png)
#ref(追加方法2.png)
#br
//COLOR(#FF0000):画像入る
#br
+A terrain stamp has been added. Continue to specify the terrain stamp.
#ref(追加方法3.png)
#br
+Configure various settings.
#br
In this example, the texture size is 128, so specify " Unit Size" as 128.
//COLOR(#FF0000):画像入る
#ref(テクスチャ設定.png)
#br
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.
//COLOR(#FF0000):画像入る
#ref(地形16.png)
#ref(Material Map.png)
#br
Attribute settings are also available.
#br
//COLOR(#FF0000):画像入る
#ref(地形17.png)
#ref(Special Settings.png)
#br
Specify "Traversable: YES" since the terrain is normally passable.
#br
Specify "Liquid: NO" since it is not a liquid.
#br
"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.
#br
//COLOR(#FF0000):画像入る
#ref(地形18.png)
#ref(地形19.png)
#br
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.
#br
+Once specified, select the terrain stamp you created in the Map Editor and paint it on a map.


**Asset Data Settings [#n8cd112d]
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.

**素材データの設定 [#n8cd112d]
追加した地形ブロックに、持ち上げたときの角の丸み、通行可・不可などのオプション設定を加えることができます。
階段にしたり、坂にしたりする設定もここで行います。
1. 「リソース」→「地形」を選択します。
2. 「地形ブロックのリスト」で、設定する地形ブロックを選択します。プレビューの右側の「地形モデルの属性」に、現在の設定が表示されるので、必要に応じて
変更します。
+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.

**地形モデルの属性について [#k0a88f50]
-''基本''
**About Terrain Model Attributes [#k0a88f50]
-''Basic''
//COLOR(#FF0000):画像入る
#ref(Basic.png)
#br
--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.

・単位サイズ
地形テクスチャのサイズを2~128ピクセルの間で変更できます。
作成したテクスチャに合わせて変更してください。

・マテリアルマップ
あらかじめ用意されたプリセットから質感を選択することができます。
マスクマップを用意していなくても、このプリセットを使うことである程度の質感を付けることが可能です。

--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.
#br
//COLOR(#FF0000):画像入る
#ref(マテリアルマップ.png)
#br
[None] No material map is used.
[flat] Matte texture
[marble] Smooth texture like marble
[metal] Metal
[metal_noise] Metal + rough texture
[noise] Matte and rough texture

[なし] マテリアルマップを使用しません。
[flat] マットな質感
[marble] 大理石のようなつるつるした質感
[metal] 金属
[metal_noise] 金属+ざらざらとした質感
[noise] マットでざらざらとした質感
--Normal Map and Mask Map
If a normal or mask map is ready, specify them here.

・ノーマルマップ、マスクマップ
ノーマルマップ、マスクマップが用意してある場合、こちらに設定します。

-''特殊設定''
-''Special Settings''
//COLOR(#FF0000):画像入る
#ref(special.png)
#br

・形状
地形ブロックの種別として「地形」「階段」「坂」を選択可能です。
「階段」「坂」は特殊な地形ブロックで、物体に近いふるまいをします。
高さは変更できない代わりに向きを変えることができます。
設定にあたっては、テクスチャ画像が2コマしかない地形では、テクスチャがずれることがあります。
--Type
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.
#br
[Repeat Middle] Repeat the middle texture and do not use the bottom texture.
#br
//COLOR(#FF0000):画像入る
#ref(中間の繰り返し.png)
#br

[底を繰り返し] テクスチャで用意されている高さを超えた場合、底面テクスチャを繰り返し使用します。

[Repeat Bottom] If the maximum elevation provided by the texture is exceeded, the bottom texture will be used repeatedly.
#br
//COLOR(#FF0000):画像入る
#ref(底の繰り返し.png)
#br


-''属性''
-''Attributes''
//COLOR(#FF0000):画像入る
#ref(地形25.png)
#br

・通行可能
地形ブロックの上を歩けるようにします。
--Traversable
Allow walking on terrain blocks.

/////////
・液体
海のように、若干周囲の地面よりも上面を下げて表示します。
--Liquid
It displays the top surface slightly lower than the surrounding ground, like the ocean.
#br
#ref(液体YESNO.png)
#br
////////

・角を丸める
地形ブロックの角に丸みを付けます。

自然系の地形の場合 YES に設定すると自然な丸みが付きます。

--Round Corners
Round the corners of the terrain block.
#br
For natural terrain, specify YES for natural rounding.
#br
//COLOR(#FF0000):画像入る
#ref(角を丸めるYES.png)
#br

またブロックや大理石など、人工的な地形の場合はNOにすると、角が丸まりません。
Also, for man-made terrain such as blocks or marble, NO will not round the corners.
//COLOR(#FF0000):画像入る
#ref(角を丸めるNO.png)
#br


・効果音
地形ごとに効果音を設定することができます。
--Sound Effects
A sound effect can be specified for each terrain.

-''状態変化''
地形と状態異常を紐づける場合、こちらでONにします。
(状態異常の内容については、「データベース>状態定義」で設定します)
-''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".)
#br
#ref(地形26.png)
#br

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes