Apply Colorsetter Shaders to Body Parts - wikid24/ffxiv_mmd_tools_helper GitHub Wiki

https://github.com/wikid24/ffxiv_mmd_tools_helper/assets/19479648/8ca124b8-1440-4111-9ad9-c1f30b9976ae

So you imported and rigged your FFXIV character successfully, but the textures are all weird or flat or black, or doesn't match how the textures look in-game?

When you export a .fbx file from Textools, it actually replaces all of an FFXIV's raw textures with it's own color 'approximations' of what the shaders look like in-game with it's own flat, boring textures.

The Colorsetter addon fixes these boring textures by replicating the same look as in-game-- the same skin/hair/face/tattoo colors as well as some subsurface scattering, slight shine, the hair colors/dyes etc. for the body.

To do that it needs to:

  1. replace the default flat textures that came with the .fbx file with the original raw, unedited textures straight from FFXIV
  2. apply the Colorsetter addon's special shaders to it.

This FFXIV MMD Tools Helper addon is mostly a wrapper on top of the Colorsetter addon to make it much simpler to use.

Prerequisites

In addition to having this plugin (FFXIV MMD Tools Helper) installed and running in Blender, you also need:

Part 1 - Extracting Textures for Body/Hair/Skin/Face/etc.

To use Colorsetter Addon we need the original, raw unedited image files for the body part or equipment/accesstory you'd like to apply it to (we get those from exporting them directly from TexTools).

  1. In Blender viewport, select the body part you'd like to apply the colorsetter shader to. On the 'Shader' panel you should see the 'Material:' section show the name of the material attached to the model.

    In this example it is called mt_c1401b0001_a.001:

    • c1401b0001 <-- Model Name
    • a <-- Material Type

    We need this info to find the texture in TexTools

    image

  2. In TexTools copy/paste the Model Name into the search bar, and set it to By Set. One model should show up. Select it. Then select the Material Type from the dropdown list. image

  3. Select 'A' to ensure alpha channel is exported, then click 'Export .PNG/.DDS/.BMP'. Texture Files should be saved in C:\Users\*yourusername*\Documents\TexTools\Saved by default

    image

  4. Repeat step 3 for every single texture map that is displayed on the dropdown

    image

    Congrats you have all the textures needed to apply the Colorsetter shaders for this body part! On to part 2...

Part 2 - Apply Colorsetter Shader for Body/Hair/Skin/Face/etc.

Continuing on from Part 1, since we have the texture exported, we can apply the Colorsetter Shaders for skin.

  1. By simply looking at the selected object it's a skin-type material, we're going to apply Colorsetter's skin preset:

    image

  2. This addon will attempt to find the skin type and apply it. You'll know if it found the files successfully if you actually has some texture files applied in these textboxes. If it didn't, we move on to next step.

    image

  3. (only needed if step 2 did not automatically apply the texture files) To find the texture files, navigate to where your textures are stored and press the search icon

    image

  4. Now that we actually have the shaders applied in Blender, we can leverage the Anamnesis .chara file to apply the color settings to the shaders so that they actually use the same colors as in-game. With your character's aramature (bones) selected, In the 'Import FFXIV Model' section, select Apply to Model, and pick any .chara file.

    image

    It will apply the colors and settings automatically. BOOM. Done.

    image

    Now press the same 'skin' button that you pressed in step 1 to auto apply it to every single mesh that should using it, this plugin will do all the work for you.

Example Applying shaders to every body part

https://github.com/wikid24/ffxiv_mmd_tools_helper/assets/19479648/89576976-a454-4998-b41b-07c9683937eb