Unit models - Europa Universalis 4 Wiki (2024)

This article is timeless and should be accurate for any version of the game.

This page deals primarily with modding of 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.

Contents

  • 1 Background
    • 1.1 Armies
    • 1.2 Fleets
    • 1.3 DLC
  • 2 3D models
    • 2.1 Types of models
    • 2.2 Shaders

Background[edit | edit source]

Before you can begin modding, you need an understanding of how the sprites work ingame.

Armies[edit | edit source]

For land armies, there are four "sprite levels" which display how advanced a country is in terms of military technology. The game also selects the dominant land unit type to represent the army - either infantry, cavalry or artillery.

The following information can be found in /Europa Universalis IV/common/technologies/mil.txt:

sprite_levelMIL TechYearDescription
101350Late medieval pike and armour
2121557Thirty years war musketeers
3211674Seven years war musketeers
4261745Napoleonic infantry
5*301805Not used by EU4!

Fleets[edit | edit source]

For naval fleets, the sprite level signifies the highest level of the dominant ship type (from heavy ship, light ship, galley, or transport). Unlike land units, existing naval units don't automatically upgrade with technology level.

DLC[edit | edit source]

The 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[edit | edit source]

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[edit | edit source]

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 LODs)
  • Trade network models - The node points of the trade network, and travelling ships/wagons are visualized by 3D models.

Shaders[edit | edit source]

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 vertex and pixel shaders.

Shader NameDescription
PdxMeshStandardStandard mesh. Diffuse RGB, normal map and specular ("shininess") values from specular map alpha channel.
PdxMeshColorSpecular map's RGB channels represent Primary, Secondary and Tertiary colours of a nation. The most common shader used for units.
PdxMeshTextureAtlasShader 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.
PdxMeshSnowAdds snow to top-facing surfaces in winter.
PdxMeshAlphaBlendTransparency from diffuse map alpha channel.
PdxMeshAlphaBlendNoZWriteTransparency from diffuse map alpha channel. More expensive but less glitchy
PdxMesh_NoFoW_NoTINever hidden by Fog of war or Terra Incognita
CollisionDoes not render the mesh, instead represents the "clickable" area.

Modding

DocumentationEffectsTriggersModifiersScopesVariablesLocalisationCustomizable localizationRun filesList of event pictures
ScriptingScripted functionAdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEmpire of ChinaEstatesEventsFactionsGovernmentGovernment MechanicsGreat projectsHistoryHoly Roman EmpireIdea groupsInstitutionsMercenariesMissionsModifiersNation designerOn ActionsParliamentPeace treatiesPoliciesRebel typesReligionSubject typesTechnologyTrade companiesTrade goodsUnits
MapMapMap Modding Quick ReferenceNation designerRandom New WorldTrade nodes
Graphics3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
AudioMusicSound
OtherConsole commandsChecksumJoroDox mod making toolMod structureTroubleshootingThe ValidatorRun files
GuidesAdding a provinceMap Modding Quick ReferenceSave-game editingScripting Tutorial

Retrieved from ""

Unit models - Europa Universalis 4 Wiki (2024)
Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 6506

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.