#author("2022-10-14T09:16:25+00:00","default:admin","admin")
*仕様:地形ブロック [#ta474a47]
#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


**追加できるファイルの形式 [#o7ad591a]
**File Formats that can be Added [#o7ad591a]

地形ブロックの形状はプログラムにより決まっています。
素材として追加するのはテクスチャの画像のみです。
1 ブロックのテクスチャのひとつの面は、最大 128x128 ピクセルで作られます。
(最大サイズは地形プロパティの「単位サイズ」で変更可能です)
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

また、最大サイズは「マップ設定>基本>テクスチャ設定>解像度」で指定されているサイズで上書きされます。
地形プロパティで128に設定されていても、マップ設定の解像度が64だった場合、マップエディター上では64ピクセルで描画されます。
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

-''ファイル形式''
フルカラーPNG 形式 またはBMP 形式
(ひとつの地形ブロックにつき、ひとつのテクスチャが必要です。)
-''File Format''
Full color PNG or BMP format
(One texture per terrain block is required.)

-''テクスチャの種類''
3Dモデルと同じく、
・アルベド(カラー)テクスチャ
・ノーマルマップテクスチャ
・マスクマップマクスチャ
が設定可能です。

表現したい質感によって、ノーマルマップとマスクマップは
必ずしも使用する必要はありません。
-''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

-''縦サイズ''
1 コマのテクスチャを 128×128 ピクセルとし、
一番上に最上面、その下に側面のコマを必要な高さだけ並べて1枚の画像とします。
側面のコマは上から順に、最上段の側面、上から2段目の側面…となります。
側面は最低1段あればOKです。
地形を上げた場合、足りない部分は同じ側面で繰り返されます。
また、最上面しかない場合、側面および底面もすべて最上面と同じテクスチャが適用されます。
-''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.

• 下図は側面が2段用意されている例です。
地形の高さを3段以上に上げると、2段目の側面が繰り返し使用されます。

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

• 下図は側面が3段用意されている例です。
地形の高さを4段以上に上げると、3段目の側面が繰り返し使用されます。

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


-''横サイズ''
通常は1コマ分 128 ピクセルですが、水のようにアニメーションさせたいときは、
アニメーションのコマ数だけ横に並べることができます。
各コマの表示時間は固定です。

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


-''坂・階段''
坂の場合、地形の上面・側面に相当するコマが、
それぞれ斜面と側面に拡大縮小されて表示されます。
階段の場合、ステップ上面、ステップ前面、側面の3コマが必要です。

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

 ↑階段の例



**ノーマルマップテクスチャとマスクマップテクスチャ [#t6f6caa4]
ノーマルマップとマスクマップを用意している場合、
それらをアルベド(カラー)マップテクスチャと同じフォルダに置いておくと
アルベドテクスチャを読み込んだ際、自動で読み込まれます。
自動で読み込ませるためには、
ノーマルマップの末尾に「_normal」、マスクマップの末尾に「_mask」とサフィックスを付けておく必要があります。

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

**追加するフォルダーの準備(1):システム素材を書き出す場合 [#qc60a83f]
reservedフォルダ内にあるシステム素材の地形テクスチャを、外部のフォルダーに書き出して利用することができます。
**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.

1. 「地形ブロックのリスト」から、書き出したい地形ブロックを選択します。
「地形のカテゴリ」から、カテゴリをまるごと選択することも可能です。
カテゴリとは、マップパーツのリストにあるタブのことです。

2. リストメニューの[エクスポート]ボタンを押します。

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

3. 「エクスポート先のフォルダーを選択してください」というダイアログが表示されるので、
書き出し先のフォルダーをエクスプローラーから選択し、[フォルダーの選択]ボタンを押します。

4. 選択したフォルダーの中に、選択した地形ブロックのフォルダーが作られ、その中に PNGファイルが書き出されます。
書き出されたテクスチャ(PNG ファイル)は、画像編集ソフトによって描き替えることができます。

**追加するフォルダーの準備(2): 新規に用意する場合 [#x32bb61e]
追加前の準備として、適当な追加用フォルダを用意し、その中にテクスチャをまとめて配置します。

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

**追加方法 [#sefc6a9b]
ここでは基本的な草地形の追加手順を見ていきましょう。
**How to Add [#sefc6a9b]
Let's look at the basic steps for adding grass terrain.

①「リソース管理>地形」の追加ボタンを押して、アセットピッカーで追加したい地形テクスチャを選択し「追加して終了」をクリックします。
「同ファイル名_normal」「同ファイル名_mask」がある場合は、選択しなくても自動で読み込まれます。

+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)
③各種設定を行います。

この例ではテクスチャサイズが128なので、「単位サイズ」を128に設定します。
#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

通常の通行可能な地形なので「通行可能:YES」に設定します。

液体ではないので「液体:NO」に設定。

自然系の地形なので「角を丸める:YES」にします。
ブロックや大理石など、人工的な地形の場合はNOにすると、角が丸まりません。

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. 「地形のカテゴリ」で、カテゴリを選択します。
3. 「地形ブロックのリスト」で、設定する地形ブロックを選択します。プレビュー
の下部の「素材データの設定」に、現在の設定が表示されるので、必要に応じて
変更します。
+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   New Page list Search Recent changes   Help   RSS of recent changes