3D Model Textures
Follow this guide if you want to create alternate 3D-model textures, such as for new Animal Familiar forms (see CosmeticsAPI mod for how to add new forms without conflicting with other mods doing so), or for new custom dresses for Melinoë (see the MelSkin mod for how to contribute new dresses to it).
This guide does not explain how to create or modify 3D models themselves, only how to change the textures applied to them.
If you haven't already, install deppth2 before you start.
Packing model textures
Model textures are packaged into .pkg files using deppth2, similar to how sprite atlases are packed (see Custom .pkg Texture Packages for reference), however they do not require a .pkg_manifest, and don't have low-resolution 720p variants.
We recommend your textures to have a resolution of 512 x 512 pixels, matching most vanilla 3D-model textures.
In our example, we will pack a new model texture for a Frinos Familiar Form.
In your packages directory, create a new folder for your package, such as packages\SGG_Modding-ModdingTemplate_FrogFamiliar_source.
This must be different from an existing "normal" texture package folder and may only contain your 3D-model textures.
Place your new texture (such as FamiliarCostume_FrogDisco_Color.png) in the source folder you just created, without any nested subfolders.
Then run:
deppth2 hadespack-3d -s SGG_Modding-ModdingTemplate_FrogFamiliar_source -t SGG_Modding-ModdingTemplate_FrogFamiliar
-s points to the source directory, and -t is the output filename - in most cases, you should include your mod GUID here.
Note that the game will sometimes automatically load any packages named the same as a unit that spawns, so if you e.g. add an entirely new familiar, naming the package after the unit ID instead of prefixing it with your mod GUID will ensure it gets loaded automatically in most cases.
deppth2 uses BC7 and six mip levels by default, matching vanilla's 512 x 512 familiar textures.
Use --mip-count N if your textures need a different count.
Mip levels reduce texture flickering/shimmering when viewed at different resolutions or distances.
Using the package
The hadespack-3d command produces a .pkg without an accompanying .pkg_manifest, this is expected.
Place this .pkg file in your data folder, such as in data\Content\Packages.
deppth2 prefixes the texture key with the package basename. Use the full printed key, here SGG_Modding-ModdingTemplate_FrogFamiliar\FamiliarCostume_FrogDisco_Color, for GrannyTexture.
The package name you'd pass to LoadPackages is SGG_Modding-ModdingTemplate_FrogFamiliar.
See Shipping and loading packages for more information on shipping and loading the package within your mod.