版本 Diff 差异对比

条目:Map Modding Quick Reference · 对比历史版本与当前版本间的真实 Wikitext 差异

+23 行新增-23 行移除
历史基准版本Rev #104114
(未填写修改说明)
雨诉2025-04-20 15:32:13
当前最新版本Rev #104114
当前线上生效正文
雨诉2025-04-20 15:32:13
Wikitext 语法逐行变动
当前版本新增历史版本移除
此页面将作为地图 Mod 快速参考指南,帮助 Mod 作者快速找到适合他们选择的图像编辑器的图像导出设置。它还将包含一些方便的指南和注释,用于常见的地图编辑任务。
有关不同地图文件(图像和文本)的完整参考,请访问地图 modding。
=== 地图导出设置 ===
这是在 Europa Universalis IV 中使用地图图像文件时所需地图导出设置的参考指南。
===== Gimp 导出设置 =====
- {| class=\"wikitable\"
+ {| class="wikitable"
!Map Image
!Dimensions
!Image Mode
!Image Precision
!Export Settings
!Notes
|-
|<code>heightmap.bmp</code>
(高度图)
|Same dimensions as defined in <code>default.map</code>
|灰度模式
|8 bit integer
|默认BMP格式导出,不做任何设置。
|
|-
|<code>world_normal.bmp</code>
(法线贴图)
|Half the dimensions defined in <code>default.map</code>
|RGB模式
|8 bit integer
- |务必在高级选项中选择 \"24 bits R8 G8 B8\"导出
+ |务必在高级选项中选择 "24 bits R8 G8 B8"导出
|Guide on how to generate <code>world_normal.bmp</code>
|-
|<code>provinces.bmp</code>
(省份地图)
|Same dimensions as defined in <code>default.map</code>
|RGB模式
|8 bit integer
- |务必在高级选项中选择 \"24 bits R8 G8 B8\"导出
+ |务必在高级选项中选择 "24 bits R8 G8 B8"导出
|
|-
|<code>terrain.bmp</code>
<code>rivers.bmp</code>(地形图;河流图)
|Same dimensions as defined in <code>default.map</code>
|索引模式
|8 bit integer
|默认BMP格式导出,不做任何设置。
|
|-
|<code>trees.bmp</code>
(树木图)
|⅛ the dimensions defined in <code>default.map</code> dimensions (see notes)
|索引模式
|8 bit integer
|默认BMP格式导出,不做任何设置。
|The scaling can be whatever you like, but a smaller image creates larger clumps of trees,
and a larger image will create smaller clumps of trees. Vanilla uses a factor of ⅛.
|-
|<code>colormap_spring.dds</code>
<code>colormap_autumn.dds</code>
<code>colormap_summer.dds</code>
<code>colormap_winter.dds</code>
<code>colormap_water.dds</code>
(四季贴图;水域贴图)
|是<code>default.map</code>文件中定义大小的一半。
|RGB模式
|8 bit integer
|Compression: None
Format: RGB8
|Older versions of GIMP did not support DDS images. If you cannot open or export the DDS file format, first try updating GIMP to the latest version.
|}
=====Photoshop 导出设置=====
- {| class=\"wikitable\"
+ {| class="wikitable"
|-
!Map Image
!Dimensions
!Image Mode
!Image Precision
!Export Settings
!Notes
|-
|<code>heightmap.bmp</code>
| Same dimensions as defined in <code>default.map</code>
|Grayscale
|8 bit integer
|
|
|-
|<code>world_normal.bmp</code>
|Half the dimensions defined in <code>default.map</code>
|RGB
|8 bit integer
|
|
|-
|<code>provinces.bmp</code>
| Same dimensions as defined in <code>default.map</code>
|RGB
|8 bit integer
|
|
|-
|<code>terrain.bmp</code><code>rivers.bmp</code>
| Same dimensions as defined in <code>default.map</code>
|Indexed
|8 bit integer
|
|
|-
|<code>trees.bmp</code>
| ⅛ the dimensions defined in <code>default.map</code> dimensions (see notes)
|Indexed
|8 bit integer
|
| The scaling can be whatever you like, but a smaller image creates larger clumps of trees,
and a larger image will create smaller clumps of trees. Vanilla uses a factor of ⅛.
|-
|colormap_autumn.dds
colormap_spring.dds
colormap_summer.dds
colormap_water.dds
colormap_winter.dds
|Half the dimensions defined in <code>default.map</code>
|RGB
|8 bit integer
|
|
|}
=====Paint.NET 导出设置=====
- {| class=\"wikitable\"
+ {| class="wikitable"
|-
!Map Image
! Dimensions
!Export Settings
!Notes
|-
|<code>heightmap.bmp</code>
|This file cannot be exported by Paint.NET due to its lack of grayscale BMP support.
|
|You may edit this file in Paint.NET and copy it to a program
such as Gimp for exporting and saving.
|-
|<code>world_normal.bmp</code>
|Half the dimensions defined in <code>default.map</code>
|Dithering: 0
|
|-
|<code>provinces.bmp</code>
| Same dimensions as defined in <code>default.map</code>
- |Ensure that Bit Depth is set to \"24-bit\"
+ |Ensure that Bit Depth is set to "24-bit"
when exporting.
|
|-
|terrain.bmp
rivers.bmp
trees.bmp
| These files cannot be exported by Paint.NET due to its lack of indexed BMP support.
|
| You may edit these files in Paint.NET and copy it to a program
such as Gimp for exporting and saving.
|-
|colormap_autumn.dds
colormap_spring.dds
colormap_summer.dds
colormap_water.dds
colormap_winter.dds
|Half the dimensions defined in <code>default.map</code>
|B8G8R8 (Linear, R8G8B8)
|
|}
===法线贴图生成指南===
=== <small>本节将介绍如何从 '''<code>heightmap.bmp</code>''' 文件生成 '''<code>world_normal.bmp</code>''' 文件。</small> ===
=====Gimp 法线贴图生成=====
这需要 GIMP 2.10 或更高版本
#Start by opening your <code>heightmap.bmp</code> file in Gimp
- #Change the image mode from \"Grayscale\" to \"RGB\"
- ##In the top bar, click \"Image\" -> \"Mode\" -> \"RGB\"
- # Apply the \"Normal Map\" filter
- ##In the top bar, click \"Filter\" -> \"Generic\" -> \"Normal Map\"
- ##Check the \"Flip Y\" checkbox
- ## Adjust \"Scale\" as desired
- ##Click \"OK\" to apply the filter
+ #Change the image mode from "Grayscale" to "RGB"
+ ##In the top bar, click "Image" -> "Mode" -> "RGB"
+ # Apply the "Normal Map" filter
+ ##In the top bar, click "Filter" -> "Generic" -> "Normal Map"
+ ##Check the "Flip Y" checkbox
+ ## Adjust "Scale" as desired
+ ##Click "OK" to apply the filter
#Scale the image by half
- ##In the top bar, click \"Image\" -> \"Scale Image...\"
- ##Set both the \"Width\" and \"Height\" values to half of the defined width and height values for your map
+ ##In the top bar, click "Image" -> "Scale Image..."
+ ##Set both the "Width" and "Height" values to half of the defined width and height values for your map
##*Having the proportions linked (connected chain symbol) means you only need to alter one of the values, not both
##*To quickly scale your dimensions in half, simply add <code>/2</code> to the end of one of your dimension values and press ENTER
- ##Set \"Interpolation\" to \"Cubic\"
- ##Press \"Scale\" to perform the scaling operation
+ ##Set "Interpolation" to "Cubic"
+ ##Press "Scale" to perform the scaling operation
#Export the image as <code>world_normal.bmp</code>
- ##In the top bar, click \"Image\" -> \"Export As...\"
+ ##In the top bar, click "Image" -> "Export As..."
##Change the name from <code>heightmap.bmp</code> to <code>world_normal.bmp</code>. '''This step is important!''' If you forget, you may end up overwriting your <code>heightmap.bmp</code> file!
- ## Press \"Export\" to begin the export
- ##Check the \"Advanced Options\" -> \"24 bits R8 G8 B8\" option
- ## Press \"Export\" to export the image
+ ## Press "Export" to begin the export
+ ##Check the "Advanced Options" -> "24 bits R8 G8 B8" option
+ ## Press "Export" to export the image
And you're done!
===Miscellaneous===
=====Notes on working with indexed images=====
Some notes on working with Indexed BMP images. These images are <code>rivers.bmp</code>, <code>terrain.bmp</code>, and <code>trees.bmp</code>. <code>provinces.bmp</code> is technically not an indexed image, but these same principles can be applied to it as well.
*It's rarely a good idea to create your own indexed images from scratch. Even if you are creating map files for a brand new map, you should create these files by copying from vanilla, then resizing and drawing your map as desired. The reason is that by copying, your image will contain a ready-made colour map built in and ready to go. If you don't do this, you would have to go through the tedious process of manually setting up the colour map of the image.
- *Avoid tools and features that introduce \"softness\" into the image, since these can introduce extra, undesired colours when each pixels colour has a specific meaning.
+ *Avoid tools and features that introduce "softness" into the image, since these can introduce extra, undesired colours when each pixels colour has a specific meaning.
**When scaling any portion of an indexed BMP image (or the whole image), you must not use any interpolation in order to avoid introducing interpolated colours.
** It's important to only use hard-edged tools while editing indexed BMP images (e.g., pencil, bucket fill, line tool). Soft tools like the Paintbrush or the Airbrush can also introduce interpolated colours.
- **You must also only use hard selection, rather than \"feathered\" or \"softened\" selections as these too can introduce interpolated colours into the image.
+ **You must also only use hard selection, rather than "feathered" or "softened" selections as these too can introduce interpolated colours into the image.
[[Category:模组制作]]