Skip to main content

02. Material Section Groups

Purpose

Set up the AttachedAccessory data so players can recolor the parts of an attached accessory (glasses, earrings, hair accessories, piercings, masks) in CAZ.

Preparation
  • An attached accessory registered as described in 01. Overview
  • For gem parts, a gem mesh made to the inZOI gem spec (see MI_Char_Gem_Diamond below)

SubCategories

The subcategory list shown in CAZ. It references GarmentSubCategory.json. The default values are:

CategorySubCategoryName in CAZ
GlassesGlassesGlassesGlasses
SunglassesSunglasses
GogglesGoggles
EarringsDropEarringDrop
StudEarringStud
GemEarringGem
RingEarringRing
EarphoneEarphones
Hair accessoriesHeadsetHeadset
HairbandHairband
HairpinHairpin
TiaraTiara
OthersHairAccessoryOther hair accessories
PiercingsEyebrowPiercingEyebrow
NosePiercingNose
LipPiercingLip
MasksMaskMaskMask
PacifierPacifier

AccessoryType

The accessory type used to tell accessories apart in the data.

AccessoryType
GlassesGlasses
EarringEarrings
HairAccessoryHair accessories
PiercingPiercings
MaskMasks

MaterialSectionGroups

Sets the areas that players can control in CAZ.

FieldDescription
ListKeyA format left over from legacy data. Keep the default value.
MaterialSectionThe material slot number of the static mesh. Slots start at 0.
MaterialTypeAccessoryA part that uses the regular costume material.
GlassA glasses lens part. Set this to let players change the lens color.
JewelryA gem part. Set this to let players change the gem color.
A gem can use up to 3 colors, through R, G and B.
HairA fur part that uses the hair material. Set this to let players change the fur color.
NumColorChannelsThe maximum number of colors this part uses. Up to 3, through R, G and B.
- The maximum depends on the MaterialType. Glass and Hair allow only 1.
- When you add a part, enter the count for that part as well. For example, if you add a gem part, enter its count too.
ChannelDatasListKeyUse R, G or B. Each value connects to the material parameter predefined for the MaterialType.
AITextureWhether the part can use My Texture. True or False.
DescTextIdThe name of the part button shown in the GUI.

Materials

The master MI for each part.

MaterialTypeMaster MI
AccessoryMI_Char_Standard
GlassMI_Char_Glasses
JewelryMI_Char_Gem_Diamond
HairMI_HairCard_Base

MI_Char_Gem_Diamond

Gems must use a mesh made to the set spec. The gem mesh in the file below works with the T_gem_C and T_gem_N textures.

inZOI_Gem.fbx

Depending on the setup, the mesh may need vertex colors.

Gem mesh vertex colors

This is the default state of the material.

Default material

Enable 3 Color = 1

The parameters in the (G) Color and (B) Color panels below become available.

  • Vertex colors are required. Without them, the colors come out unintended.
  • In this state, the color cannot be changed in CAZ.

Enable 3 Color

Enable Color Custom = 1

The color is overridden by the R_Color_Custom parameter below.

  • The material is ready for color changes in CAZ.
  • Vertex colors are not required.

Enable Color Custom

Enable 3 Color = 1 and Enable Color Custom = 1

The colors are overridden by the R_Color_Custom, G_Color_Custom and B_Color_Custom parameters.

  • The material is ready for color changes in CAZ.
  • Vertex colors are required. Without them, the colors come out unintended.

Enable 3 Color and Enable Color Custom