版本 Diff 差异对比
条目:模型修改 · 对比历史版本与当前版本间的真实 Wikitext 差异
+27 行新增-89 行移除
历史基准版本Rev #45235
翻译了关于模型和定义的一部分
Sakur2018-08-25 05:07:10
当前最新版本Rev #59393
文本替换 - 替换“[[Category:改派教程”为“[[Category:模组制作”
Pokewiz2019-09-11 08:03:35
Wikitext 语法逐行变动
当前版本新增历史版本移除
{{Version|长期有效}}
欧陆风云4使用3D模型来表示许多图形对象,如单位、建筑、树木等。
==概述==
所有的模型和它们各自的动画储存在 {{path|gfx/models/}}
一个典型的模型将有以下文件:
*'''<model>.mesh''' - 模型文件本身
*'''<mode>_diffuse.dds''' - 模型的漫反射贴图
*'''<mode>_normal.dds''' - 模型的法线贴图
*'''<mode>_spec.dds''' - 模型的高光贴图
如果模型需要使用动画,推荐遵循以下格式:
*'''<model>_<anim name>.anim'''
- 3D模型的资产 (asset) 定义储存在 {{path|interface/assets/}}
+ 3D模型的资产('''asset''')定义储存在 {{path|interface/assets/}}
模型必须在该目录重的 .gfx 文件中赋予 Script Name 才能被使用。下面是资产定义的一个基本示例:
<pre>
pdxmesh = {
- name = \"empty_mesh\"
- file = \"gfx/models/Mapitems/empty.mesh\"
+ name = "empty_mesh"
+ file = "gfx/models/Mapitems/empty.mesh"
scale = 1.0
}
</pre>
- 3D模型的实体 (entity) 定义储存在 {{path|gfx/entities/}}
+ 3D模型的实体('''entity''')定义储存在 {{path|gfx/entities/}}
- 实体控制着模型 ('''pdxmesh''') 和动画之间的关联,一个拥有 Script Name 的模型必须被定义为实体才能在游戏中工作。下面是实体定义的一个基本示例:
+ 实体控制着模型('''pdxmesh''')和动画之间的关联,一个拥有 Script Name 的模型必须被定义为实体才能在游戏中工作。下面是实体定义的一个基本示例:
<pre>
entity = {
- name = \"selection\"
- pdxmesh = \"selection\"
- state = { name = \"idle\" animation = \"idle\" }
+ name = "selection"
+ pdxmesh = "selection"
+ state = { name = "idle" animation = "idle" }
}
</pre>
- 动画 (anim) 定义储存在 {{path|gfx/models/}} 子文件夹的 .asset 文件中
+ 动画 ('''anim''') 定义储存在 {{path|gfx/models/}} 子文件夹的 .asset 文件中
动画定义赋予动画 Script Name,实体定义将引用动画的 Script Name,而不是直接引用文件名。下面是动画定义的一个基本示例:
<pre>
animation = {
- name = \"AO_Eagle\"
- file = \"eagle_idle.anim\"
+ name = "AO_Eagle"
+ file = "eagle_idle.anim"
}
</pre>
- ==Unit Models==
- '''Unit models''' (or incorrectly, '''sprites''') are ingame representations of armies and fleets. As with other [[Paradox]] grand strategies, [[Europa Universalis IV]] models are notoriously hard to mod. This guide will go into detail about the technical side of dealing with unit models, but won't cover artistic or Photoshop skills.
+ ==单位模型==
+ {{main|兵模}}
+ '''单位模型'''或称'''精灵'''('''sprites''')在游戏中表示军队或舰队。正如 [[Paradox]] 其他的“大战略游戏”一样,欧陆风云4的模型很难进行修改。
- Before you can begin modding, you need an understanding of how the sprites work ingame.
+ ==环境物体==
+ {{main|地图修改#环境物体}}
+ {{N|环境物体|ambient object}} 是指游戏地图上那些烘托氛围的3D模型,著名建筑、文化地标等等。
- ===Armies===
- For [[Army|land armies]], there are four \"sprite levels\" which display how advanced a country is in terms of [[Technology#Military|military technology]]. The game also selects the dominant [[Land units|land unit type]] to represent the army - either [[Land units#Infantry|infantry]], [[Land units#Cavalry|cavalry]] or [[Land units#Artillery|artillery]].
+ ==相关技术==
+ 关于3D的各种琐碎的技术细节。
- [[File:UnitModelSpriteLevels.png|600px|The four sprite levels of England]]
+ ===Nudge工具===
+ [[File:Fiahguide_f.png|thumb|200px|right|<code>使用 nudge</code>]]
+ 开始任何一局游戏,打开控制台,输入 ''nudge'' 就可以进入Nudge工具。可以看到,在这个模式中,玩家能很容易地查看和控制游戏中的模型。
- The following information can be found in {{path|common/technologies/mil.txt}}:
- {| class=\"wikitable\"
- |-
- !sprite_level
- !MIL Tech
- !Year
- !Description
- |-
- |1
- |0
- |1350
- |Late medieval pike and armour
- |-
- |2
- |12
- |1557
- |Thirty years war musketeers
- |-
- |3
- |21
- |1674
- |Seven years war musketeers
- |-
- |4
- |26
- |1745
- |Napoleonic infantry
- |-
- |5*
- |30
- |1805
- |''Not used by EU4!''
- |}
+ ===Maya导出器===
+ [[forum:924764|Clausewitz Maya Exporter]] - 此工具允许更简便地创建3D模型(单位)用于较新的克劳塞维茨引擎游戏中的模组。
- ===Fleets===
- For [[Navy|naval fleets]], the sprite level signifies the highest level of the dominant [[Naval units|ship type]] (from [[Naval units#Heavy ships|heavy ship]], [[Naval units#Light ships|light ship]], [[Naval units#Galleys|galley]], or [[Naval units#transports|transport]]). Unlike land units, existing naval units don't automatically upgrade with technology level.
+ 这个工具本身是为《群星》写的:https://stellaris.paradoxwikis.com/Maya_exporter
- ===DLC===
- The [[Downloadable_content#Cosmetic_packs|unit packs DLCs]] have some of the best-looking units in the game, so it can be very tempting to use them in your mod. You need to be careful about compatibility though, because not everybody will have the DLC that you use.
-
- ==3D models==
- Since early 2015 it is possible for players to create custom 3D models and animations, and then import them into the game, via the [[JoroDox mod making tool]].
- Previously it was only possible to use existing models from the base game and DLCs, which can be manipulated through text, hex, and image editors.
-
- ===Types of models===
- 3D models are used by various types of visual representations in EU4, almost exclusively in the 3D map interface.
-
- *'''Unit models''' - The visual representation of armies and fleets. Also displayed in the post-combat dialog.
- *'''Unit part models''' - Unit models can be extended by placing other models in specific places in the base model. For example: weapons, shields and horse riders.
- *'''Province activity models''' - Indications of province activity, such as colony building or the construction of units and/or buildings.
- *'''Province building models''' - City representations are created by a multitude of small buildings, using more buildings for larger cities. Specific province buildings are also shown in the city, or at the harbor location of a sea province. The flag representing the province owner is also part of this type.
- *'''Map decoration models''' - Non-province bound decorative additions to the map, such as bears, seagulls and other animals. This also includes the borders around the 3D map.
- *'''Tree models''' - The models used to create tree / forest visuals. (at various [http://en.wikipedia.org/wiki/Level_of_detail LODs])
- *'''Trade network models''' - The node points of the trade network, and travelling ships/wagons are visualized by 3D models.
-
- ===Shaders===
- There are a number of different shaders which can be used in the Paradox Mesh format (.mesh). Each will have a different visual effect on (part of) the 3D model. New shaders may be created by placing new shader code in the 'gfx/FX/pdxmesh.lua' file. This requires expert knowledge of [http://en.wikipedia.org/wiki/Shader vertex and pixel shaders].
-
- {| class=\"wikitable\"
- |-
- !Shader Name!!Description
- |-
- |PdxMeshStandard||Standard mesh. Diffuse RGB, normal map and specular (\"shininess\") values from specular map alpha channel.
- |-
- |PdxMeshColor||Specular map's RGB channels represent Primary, Secondary and Tertiary colours of a nation. The most common shader used for units.
- |-
- |PdxMeshTextureAtlas||Shader which prints the flag of the nation on the unit (flag UV range 0.05-0.95). A second UV map can be added to merge a texture into the flag.
- |-
- |PdxMeshSnow||Adds snow to top-facing surfaces in winter.
- |-
- |PdxMeshAlphaBlend||Transparency from diffuse map alpha channel.
- |-
- |PdxMeshAlphaBlendNoZWrite||Transparency from diffuse map alpha channel. More expensive but less glitchy
- |-
- |PdxMesh_NoFoW_NoTI||Never hidden by [[Map#Fog of War|Fog of war]] or [[Map#Terra Incognita|Terra Incognita]]
- |-
- |Collision||Does not render the mesh, instead represents the \"clickable\" area.
- |}
-
{{Modding navbox}}
- [[Category:改派教程]]
+ [[Category:模组制作]]
+ [[en:Model modding]]
