Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
colourcharact.jpg

Create varied crowds with ease thanks to character clothing colouring.

Have you noticed that a lot of meshes for character clothing are made with this really bright red color which is rarely used in the game? That color is used as a sort of “green-screen” (red-screen?) on these meshes since it can be changed without much effort in the NPC entity templates.

This allows you to create much variety fast ad and with few assets.

It is especially useful for big crowds and comes with a relatively low memory and performance cost!

Warning

Not all meshes support coloring.
Most main/side quest NPCs have unique meshes that cannot be colored. Colouring works mostly for common crowd meshes.


Create entity

First create a new entity with the class CNewNPC and add the man_base.w2ent as an included template.

ae67dacd-eeb7-4512-8120-93bb9a7efe86.png
Info

Check this guide first if you have never worked with entity templates:HOW-TO: Create a new NPC.


Add appearance

Add an appearance. Right click on the graph and Select Component. Search for “appearance” and select the CAppearanceComponent.

2024-06-10_10-39_1.png

A new Appearances tab will have appeared in the Entity Editor. Choose Add Appearance and type in a name for the default appearance.

apperance1.jpg

Adding body parts

Add body parts to our appearance. Select an entity for a body part in the Asset Browser and then press this button on the right side to add them. Using this method, we will add a head, hair, arms, legs and a small body section from: characters\models\common\man_average\.

de04f9b2-13ef-4937-854a-53d6e6caea44.pngd607feef-b2af-4325-b38c-d17e1eace813.png

Adding clothes

Now for some clothes from characters\models\crowd_npc\novigrad_beggar\.

Notice that red we mentioned at the very beginning?

6b359b57-9a47-48ac-9559-b4dfe48af3ce.png

Color variants

If you added pants and something for the NPC’s torso, the clothes should be red. Time to change the colour.

e0f4a6ee-04e8-4db8-a59b-c164a82f120b.png

Switch to the Colours tab and select the appearance you created.

3d328afa-6be4-491d-b7b1-c71f754db93b.png

Add a new Color Variant.

Be careful with the naming: you need to choose a name exactly matching the components. You can do this by selecting the torso/legs in the viewport, and seeing which component in the graph become selected.

a801f315-3946-4c5a-9e7b-f867b77a0ee4.png

In our case it’s these two components (t2_01_ma__novigrad_beggar and I0_01__ma_novigrad_beggar).:

1f8749cb-d32b-4e51-83df-6d4bccd01c86.png

Please note that there are two underscores between ma and novigrad. The names must match the components exactly.

After we got that out of the way, we can create a color variant for each.

2024-06-10_11-02.png

Change clothing color

You can now edit the different values

  • Hue

  • Saturation

  • Luminance

Some meshes support two different colors for different parts for extra customization. Below you can see one of the possible end results.

Have fun colouring your characters!

2024-06-10_11-02_1.png019a855a-2e67-4908-8714-3caaa81af884.png

Table of contents:

Table of Contents
minLevel2
maxLevel6
outlinefalse
styledecimal
typelist
printabletrue