Skip to content

Repository for the a template allowing the creation of unit cards from in game models

Notifications You must be signed in to change notification settings

FeralInteractive/romeremastered-unitcards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop_header_template

Blender Portrait scene

Table Of Contents

Introduction

This document reviews the Blender file provided to the modding community for the use of creating render portraits for Total War: Rome Remastered. These are used to create both the unit cards and for the larger unit info images.

Unit Card Unit Info
Unit Card Unit Card

NOTE: This is not a tutorial, simply just instructions and tips to render out an image used for portraits.

Provided Files

You can find the blender project root folder here:

  • TWRR_portrait_render_scene.blend
    • This is a base blender scene that can be used for unit renders
    • This scene was created using version 2.93.0.
  • Supporting files
    • icons A directory containing the icons which are baked into selected portraits. These can be simply added on top of the portrait after the render. unit_icons

    • textures

      • polyhaven

        • Contains the grass texture used for the floor plane. This is a free texture from polyhaven and is set up as a preset example for modders. floor_textures
      • TTWR

        • Contains the TTWR supporting textures, this does not include unit clothing due to the number of textures. You can extract all of the variants from the game data if you are looking to modify a specific unit from the game. supporting_textures
    • TWRR: Units card info - Modders spreadsheet

      • A spreadsheet containing information about each portrait used in the game.

Instructions to create a portrait

Step 1) Open the blender scene & Import your assets.

If in the blender scene the textures appear to be missing (as shown in the example below). Go to File / External Data / Find Missing Files / (navigate to the provided textures directory and hit Find Missing Files.

open_blender_1

open_blender_2

Import the unit file. If you are using a unit from TWRR you may notice the unit is very small and the scale needs fixing. Firstly scale the skeleton, which should be automatically selected after the import.

IMPORTANT The scale is 0.010 this should be 1.000 Be sure the scale XYZ

fix_scale

Secondly, you will notice the geometry is now too big, this is due to unit conversion (inches and meters). The scale is 1.000 this should be 0.3937

NOTE: Be sure the scale XYZ - This is only for the skinned mesh, does not include held props

fix_scale2

This should fix the unit scale. Then set up your materials using the appropriate textures (skipped skin textures for this example).

fix_textures

Step 2) Link pose action

This will work if the skeleton is set up the same way as the TWRR unit skeleton (this includes slingers).

ie: the Armature bone names & the Skinned Geometry vertex groups are consistently named. If a vertex name does not match a bone name, the skinning will not work.

link_pose_action1

link_pose_action2

  1. Select the imported character's skeleton.
  2. Navigate to the Action Editor / Browse Action to be linked (icon)
  3. Select Action:unit_poses

The imported skeleton will now pose the same way as the proxy unit.

Step 3) Pose & Render

pose_n_render1

pose_n_render2

Each pose is on a keyframe on the timeline, scrub through the timeline until you find a pose you like and render (F11). Don't worry about the proxy character, the collection is not set to render. You can also edit the pose if you wish or add your own. (Just remember to keyframe the bones you pose)

pose_n_render3

The render will appear, then save it as a TGA (as that is the expected format in the game). Make sure the image is named the same as the portrait you want to update. (For this example we will update the roman Julii archer main portrait only #roman_archer.tga NOT including the info version)

NOTE: The resolution by default is set pretty high, we suggest you lower it for in-game (164x224)

Step 4) Update in-game portrait

Simply update the file in-game and that should work. Navigate to the game data files and you can find the portrait directories here:

Portrait game directories

  • Game Directories
    • BASE - ...\Contents\Resources\Data\data\ui
    • BI - ...\Contents\Resources\Data\bi\data\ui
    • ALEX - ...\Contents\Resources\Data\alexander\data\ui
  • Subdirectories:
    • ...\unit_info
    • ...\unit_info_classic
    • ...\units
    • ...\units_classic

Portrait Types

There are a total of 4 types of portraits you can update, 2 for Modern colours and 2 for Classic colours. The visible portrait will change depending on this setting Settings / Graphics Settings / Unit Colour Scheme.

portrait_types

These settings change which directories are referenced to load in the images.

Vibrant (original) Realistic
Directories unit_info_classic
units_classic unit_info
units

Difference between unit_info & units:

unit_info units
Differences Is the full render portrait used in the info tab. Unit Card The naming convention is as follows: portraitname_info.tga i.e. assassin_info.tga, screeching_women_german_info.tga) Is the main portrait. Unit Card The naming convention is as follows: #portraitname.tga (examples: #roman_generals_guard_cavalry.tga, #greek_hoplite_spartan.tga) portraitname.tga (exclusive for: assassin.tga, diplomat.tga, merchant.tga, spy.tga)

As you can see, the main portrait has been updated and as the info portrait has not been updated it is still using the roman archer info. Note: The icons located in the blue outline are not part of the portrait system and are placed on top in-game.

portrait_types2

Blender Scene Breakdown

Tabs

There are default tabs in the blender file accordingly, feel free to customize/add your own.

Main

General scene setup.

tabs

Shading

2 Shading editors are open in this (bottom/middle).

  • Left - Object
  • Right - World

shading

World shader setup

worldshadersetup

The world shader is using an image file as an HDRI. it is set up to use the studio.exr which comes with Blender and can be changed if desired.

NOTE: If the render comes out "pink like", double-check the path to this image is valid.

Horse colour

horse

The node set up in the shader editor for horses also includes a quick colour override. If the uvs are +1 Y the colour will be mixed.

Rendering

Portrait render preview here, you can change the camera by selecting the camera node you want in the outliner (Top right).

render1 ** NOTE:** The camera node is the child of the transform with the green icon

render2

Collections

collections

This section is broken down based on the collections used in the file.

Cameras

cameras

Lights

lights

...Action?

Floor

floor

Grass

The grass texture provided is free from polyhaven and is set up as a preset example for modders. The exact texture can be found here.

grass1 grass2

Sea

Is procedural material using the shader editor and will animate over frames (giving variation for each portrait)

sea1 sea2

Pose_Reference_Text

Simply a reminder of pose id groups.

Pose_Reference_Text

Proxy_Character

Proxy_Character

Extra_Objects

Extra_Objects

NOTE: If the object is a skeleton mesh, the geometry is under the armature node

Boat extras

In the sub-collection boat_extras you will find various extras which can be used. The model Mesh:boat_faction_icon is a plane that contains shape keys to fit onto a specific boat sail (the shape keys are fit to the pose and model listed on the TWRR: Units card info - Modders spreadsheet). You can use the files in faction_icons folder to use on this plane.

boat

Imported_Character

This is an empty group that is active by default. Simply a place to import your characters to.

TWRR: Units card info - Modders spreadsheet

This sheet contains information for each unit portrait which can be useful for finding out which portrait uses which unit, pose, colours and where the final file should go. Here is a breakdown of each tab.

Portrait_info

portrait_info

Pose_info

pose_info

About

Repository for the a template allowing the creation of unit cards from in game models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published