Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Imports:How to make custom hair

From Kenshi Wiki

WIP

Hair mesh

If you are making hairdos for the vanilla races:

Easiest is to start your hairdo journey by editing vanilla hairdos.

There is one caveat tho: after you have imported the vanilla male and female body and skeletons in Blender, you need to delete both body meshes and import the secondary body mesh for both genders. This is because the neck and head position is different in the secondary mesh and that is the body mesh that is used in Kenshi. Using the default body that comes with the skeleton causes your hair mesh to be offset in game.

You can find the secondary body files here: .\Steam\steamapps\common\Kenshi\data\character\meshes\human

If you are not making hairdos for vanilla races, use the custom race skeleton and mesh as the reference.

Hair textures

Kenshi uses hair texture optimization, which means each RGB channel can have its own greyscale hair texture. So it is three in one.

The hair alpha channel determines which channel is used for the alpha pieces (the tiny hairs) and the hair diffuse channel determines which channel is used for the texture. Depending on hair texture chosen the channel might have only whisks of hair randomly tossed on the channel, meaning it is very easy to get 'only air' for your hair prims (prim = primitive aka one single mesh piece, like a lego block).

File:Female03GUIDE.png

On the other hand, if you need both ends of the hair prim to have alpha, you might want to use the red channel as the alpha channel too.

Alpha rejection

Kenshi has transparency on or off. There is no partial transparency, which means hair textures sometimes look like there is floating pixels in mid air, because all the weaker alpha areas have been erased (rejected) from around it. Alpha rejection decides what is the strongest shade to reject. An alpha texture is greyscale, black (value 0) is 100% transparent and white is 100% opaque(value 255). So the alpha rejection value is the value of the grey on scale 0 to 255 to cut out. so everything BELOW that value is turned 100% alpha.

This allows the creator some wiggle room to prevent those floating pixels.

UV layout on prim

File:ExampleOnUVLayout.png








File:ImproperUVLayout.png






File:HairMod Male04 LO.png

This is HairMod_Male_04 hair texture.