ホーム 暮らし [VRChat] Modular Avatar (MA) Feature Explanation

[VRChat] Modular Avatar (MA) Feature Explanation

篠原 沙世 篠原 沙世 • 更新: • 公開: • 読了約 51 分
目次

What is Modular Avatar (MA)?

n27d6a9a34d96

Modular Avatar (commonly known as MA) is a set of components that allows for non-destructive editing of existing data based on NDMF (Non-Destructive Modular Framework).
It is a program primarily designed for dressing up avatars.
There are multiple tools that utilize NDMF, such as AAO and TTT.

Its basic operation involves executing processes that automatically merge or replace data, replacing the manual or destructive modification work previously required.

VCC Download Link

Other VRC Articles

[About Setup Outfit]

Setup Outfit is essentially a series of actions performed on clothing to make MA work at a minimum level.
It is not necessary for weapons or accessories.
The main actions performed are as follows:


・Set [Mesh Settings] to the root・Set [Merge Armature] to Armature
・Change the name of the [Armature] on the clothing side to [Armature.1]

Main Usage

Currently, there is almost no need for the user to perform operations on MA-compatible items.
It is only used when:
・Putting on non-MA-compatible clothing
・Putting on incompatible clothing
・Creating clothing
・Creating gimmicksetc.

➡️ Putting on non-MA-compatible / non-avatar-compatible (non-MA-compatible) clothing

Adjust the bones to fit the size of the clothing, then execute SetUp Outfit.
Adjustments can be done manually / using MA Components / using external tools (such as Mochifitter, if the clothing is not MA-compatible).

[Components Used]Mesh Settings (automatically added) / Merge Armature (automatically added) / Move Independently / World Scale Object

In the case of non-MA-compatible clothing / non-MA-compatible (adjusted clothing)

  1. Execute [SetUp Outfit]

  2. Move it directly under the avatar

In the case of unadjusted clothing (In most cases, adjustment will not work well)

  1. Move it directly under the avatar

  2. [SetUp Outfit] Execute

  3. Select [MA Merge Armature] attached to [Armature.1]

  4. [Match bone names to the integration target] Execute

  5. [Reset position to match the original avatar] Open, then [Execute]

  6. Select the bones of the clothing parts that are broken

  7. Overall adjustment: Scale up using the XZ axes in the Bone's Transform: Scale

  8. Fine-tuning:
    [Move Independently]: Adjust position per bone
    [Scale Adjuster]: Adjust size per bone

  9. (Optional) Create an Empty object, and set up [MeshCutter] and [VertexFilter - ByBlendshape]. Specify the shape key to delete unnecessary parts. If you need to delete fine details, add multiple [VertexFilter] components. *Weight reduction might be easier to do on the AAO side.


➡️ Making custom clothing MA-compatible

How to make custom clothing MA-compatible. Regarding parameters and menus, we will work based on assets rather than the MA base. The reason for creating based on assets is that the response can be slightly slow, especially with menu-related Prefab updates.

[Components Used]

Mesh Settings (auto-assigned) / Merge Armature (auto-assigned) / MergeAnimator / Parameters / Menu Installer / BlendshapeSync / ShapeChanger

  1. [Assuming clothing ON/OFF gimmicks are already created]

  2. Move the clothing directly under the avatar

  3. [SetUpOutFit] Execute

  4. Attach [Animator (Unity)] [MergeAnimator (MA)] to the root of the clothing

  5. Set the same AnimatorController for both

  6. [MergeAnimator] of [Delete attached animator] [Match avatar's WriteDefaults setting] Check these boxes

  7. Create a new GameObject with CreateEmpty. Change the name as desired, e.g., [Menu]. (Location can be anywhere)

  8. [MA Parameters] [MA Menu Installer] Attach

  9. [MA Parameters] of [Import from asset] Set the VRC Parameter asset. (If there are changes, it is easier to initialize everything and import again)

  10. [MA Menu Installer] Set the VRC Menu asset in [Settings for Prefab Developers][Menu to be installed].

  11. Turn this Menu object into a Prefab (MenuPrefab).

  12. Place the MenuPrefab inside the outfit.

  13. Select the outfit mesh that affects the size of the chest.

  14. [MA Blendshape Sync] Set up.

  15. Set the Avatar mesh and the target Breast shape key.
    Now, when you change the Breast size on the Avatar side, it will sync and move accordingly.

  16. Select the outfit mesh that covers the body.

  17. [ShapeChanger] Set up.

  18. Select the shape key that shrinks the body in the hidden areas.
    While this mesh is displayed, the body will be shrunk to avoid clipping.

  19. Finally, turn it into a [Prefab] or [PrefabVariant].

  20. Complete.

➡️ Creating Gimmicks

Since there are basically many different gimmicks, I will omit the detailed content.
Listed below are the main components used.
[Components Used] MergeAnimator / Parameters / Menu Installer / Bone Proxy / Replace Object

From here on, I will explain the role of each component.
I will explain them by category.

[Shape Keys]

・Blendshape Sync (Shape Key Synchronization)

Maintains the same value as the specified BlendshapeKey value.
Used primarily for shape keys related to Breast size in clothing.

・Shape Changer (Shape Key Switching)

Adjusts the specified shape key based on whether the configured object is enabled or disabled.
Mainly attached to outfits and used to shrink the body to prevent clipping.

[Invert Condition]:
When clothing is displayed: Do not shrink.
When clothing is hidden: Shrink.

[Reference Value]:
Changes the range of the mesh included in the shape key (adjusts the range to be deleted during Delete).
[ Delete ]:
Deletes the shape key mesh.
If the object is animating, it will be hidden instead of deleted.
[ Set ]:
Allows setting values from 0 to 100.
The mesh will not be deleted even if it is not animating.

[Menus & Parameters]

・Merge Animator (Controller Merging)

A feature to add AnimatorController layers by specifying a PlayableLayer.
Often used in conjunction with an AnimatorComponent.
(Menu Installer / Parameters / Merge Animator are used as a set)

Notes
・When manipulating objects that already exist on the avatar (such as Body shape keys), you must prepare a separate controller (different from the clothing ON/OFF) and change the path mode to 'Absolute (use path from avatar root)', otherwise the animation clip path will be lost and will not be applied.
・'Match avatar's WriteDefaults settings' should basically be ON.
However, only uncheck this if you are using a DirectBlendTree such as for FaceTracking. That is built on the premise that
WD settings are ON.

[Animator to be merged]:
The created animator controller (ON/OFF gimmick, etc.)
[Layer type]:
Specify the destination PlayableLayer
[Delete attached animator]:
Deletes the animator component used for creating or testing the ON/OFF gimmick (if there are duplicate MAMergeAnimators, one is sufficient)
[Path mode]: *Notes apply
Specifies how to rewrite the path using MA. [ Relative (use path from this object) ]:
 Manipulating objects within the clothing model
[ Absolute (use path from avatar root) ]:
 Manipulating objects within the existing avatar

[Relative path root]:
Set this if you want the path to be from a specified position. (Use this when MA Merge Animator is
not at the top.)
[Layer merge priority]:
Specifies the order in which layers are merged. The higher the number, the later it is merged. If the numbers are the same, they are merged in the order of the objects. If you assume multiple gimmicks are used and want to apply it last, increase the number (in my case, I increase the value for the gaze fixation gimmick: the order of menu buttons is not affected)

[Merge mode]:
[ Add to animator ]: Adds to the end of the animator [ Replace existing animator ]: Replaces the Descriptor's PlayableLayer

[
1 Match avatar's writedefaults settings]:
Changes state settings to match the WD settings in the controller. If they are mixed, the animator's settings are applied as is.

・Parameters (Parameter Merging)

Specifies the parameters to add to VRCParameter.
It is also possible to automatically set unique names so that even the same animator does not cause conflicts.
Personally, rather than operating in the inspector, it is easier to create a VRCParameter asset, adjust it there, and then set it to Parameters.
(Menu Installer / Parameters / Merge Animator are used as a set)

[Blank]: Specify the parameter name
[Bool]: Specify the parameter type Bool / Float / Int /
[ Animator only ]: The parameter is not added to the Parameters list.
[ PB prefix ]: Used when the prefix is set to PhysBones.
[Initial value]: Specify the value set from the beginning
[Save]: Select whether to Save
[Sync]:
Select whether to Sync (determines parameter consumption)
[Set initial value in animator]:
Overwrites the initial value of the animator controller
[Unregistered parameters]:
Displays unregistered parameters that are not used but exist within child objects
[Import from asset]:
When you set a VRCParameter asset, the settings are automatically entered into MAParameters.

・Menu Installer (Menu Merging)

Add MenuGroup or custom Menus to the avatar's existing menu
(Menu Installer / Parameters / Merge Animator are used as a set)

[Installation Target]:
Automatically selected; if placed directly under the avatar, it will be detected automatically.
If you want to place it under a specific menu, specify it via [Select Menu].
[Display Menu Contents]:
The contents of the specified menu or MenuGroup will be displayed.
In the case of a MenuGroup, additional settings can also be configured here.
[Settings for Prefab Developers: Installed Menu]:
Specify here if you want to add a created VRCMenu asset.

・Menu Group (Menu Collection)

You can add multiple buttons (Menu Items) to the menu.
By using it in conjunction with [Menu Installer], you can automatically add them to an existing menu without creating a VRCMenu asset.(Can be operated from the MenuInstaller side)
To remove from the menu, simply delete the child object with the same name and it will disappear automatically.

It is also possible to use only [Menu Item] without using this Component.
If you use this, set it on the avatar itself, and by setting Items and Toggles on objects such as accessories, you can create menus and ON/OFF functions while maintaining the hierarchy.


・Automatically detects MenuItems under the set object and creates a Sub-menu.
・You can create MA Menu Item / MA Menu Item+ObjectToggle from the MenuGroup UI, allowing you to control ON/OFF gimmicks with just this.

[Display Name]:Menu button name
[Icon]:Icon
[ Type]:Specify the format for toggles or sub-menus
[Parameter Value]:In the case of INT, an initial value such as 1-255 can be specified.
[Parameter Name]:The name of the parameter to trigger when the button is pressed
[Set as Initial/Save/Sync]: (Can be set with MAParameter)
・Whether to change the parameter upon upload
・Maintain the saved state even when changing avatars
・Sync with other players
[Add Menu Item]:Create a menu button
[Add Toggle]:
Add an object ON/OFF function when creating the button above

・Menu Item (Menu Creation)

You can set multiple buttons in the menu.
By using it in conjunction with [Menu Installer], you can automatically add them to an existing menu without creating a VRCMenu asset.

If you select the SubMenu type, you can use it in the same way as [MenuGroup].
If you use this, you need to set it on an empty object and create a structure dedicated to the Menu.

[Display Name]:Menu button name
[Icon]:Icon
[Type]:Specify the format for toggles or sub-menus
[Parameter Value]:In the case of INT, an initial value such as 1-255 can be specified.
[Parameter Name]:The name of the parameter to trigger when the button is pressed
[Set as Initial/Save/Sync]: (Can be set with MAParameter)
・Whether to change the parameter upon upload
・Maintain the saved state even when changing avatars
・Sync with other players
[Add Menu Item]:Create a menu button
[Add Toggle]:Add an object ON/OFF function when creating the button above

[Object (Bone/Mesh)]

・Mesh Settings (Bulk settings for mesh detection)

Generally applied automatically by SetUpOutfit.
Allows for bulk configuration of Bounds/Anchor Override settings.
Fixes issues with lighting or objects disappearing at the edge of the screen.

[AnchorOverride Settings]:
Specifies the position for lighting calculations in bulk.
[Setting Mode]:
[Inherit]:
Inherits the values set in the parent's Mesh Settings
[Set]:
Assigns the specified object
[Do not set (keep mesh's original settings)]:
Keeps the settings of this mesh
[Inherit if specified by parent, otherwise set]:
Inherits if a parent is specified, otherwise allows assigning a specified object
[AnchorOverride]:
Specifies the object to set (whether there is a dedicated object, or if HumanoidBones like Hips/Neck are assigned)
[Setting Mode]:
Same as above
[Root Bone]:
Assigns the root bone (mostly Hips are assigned)
[Bounds]:
Sets the range to render when the white frame enters the field of view.
Basically, Center is 0/0/0 and Extent is 1/1/1

・
Merge Armature (Armature combination)

Generally applied automatically by SetUpOutfit.
Combines the outfit's Armature with the avatar's.

Note
Bones with different names cannot be combined, but executing "Match bone names to integration target" will unify the humanoid bone names with the avatar's. This can be used for non-compatible outfits.
Since the non-compatible outfit tool "Mochifitter" performs automatic name conversion, only use this when manually matching non-compatible items.

[Integration Target]:
Sets the integration target Armature (automatically retrieved if placed directly under the avatar)
[Prefix/Suffix]:
Adds the specified name to either the beginning or end of the combined Bone name
[Avoid name duplication]:
If a bone with the same name as another asset exists, assigns a unique name to avoid integration
[Position Follow Mode]:
[ No follow ]: Does not follow
[ Avatar => Object (One-way) ]:
The outfit moves when the avatar moves (use this by default)
[ Avatar <=> Object (Two-way) ]:
The outfit moves when the avatar moves, and the avatar moves when the outfit moves.
Since it is applied even when not playing, it can be used for display poses, thumbnail photography, etc.

[Match bone names to integration target]:
If humanoid names differ, matches them to the avatar's side.
[Reset position to match original avatar]:
Rescales the outfit size to match the avatar.
Since it is calculated based on bones, if the bone positions, rotations, or mesh widths differ, clipping will occur.

・Bone Proxy (Bone hierarchy change)

You can move an object under a specified object.
[ Target ]: Specify the bone via drag-and-drop.
There are 4 types of placement modes.
[ As Child / Place at Root ]:
It will have the same Transform as the bone.
[ As Child / Maintain World Position and Rotation ]:
Moves to be a child while maintaining the object's position.
[ As Child / Maintain World Rotation ]:
Only the position will be the same.
[ As Child / Maintain World Position ]:
Only the rotation will be the same.
= Advanced Settings Section =
[ BoneReference ]: Select a bone from the Preset.
[ SubPath ]: Saves the path of the specified bone.
For non-humanoid bones, the path is automatically saved when you place an object in the target.

・Replace Object

Completely replaces a GameObject.
By using the same name, you can add behaviors to the path as is, or manipulate shape keys.
Example 1: When swapping necks, if you set a Component on the new Body and set the default Body as the replacement destination, you do not need to fix the clip path changes.
Example 2: By preparing an object (Bone) with the same name, setting a constraint, and specifying the same-named Bone as the target, you can retroactively add constraints to an existing Bone.

・Object Toggle

You can hide a specified object based on whether the configured object is enabled or disabled.
Example: Turning off underwear when clothes are turned ON, etc.

・PhysBone Blocker (Exclude from PB)

Excludes from PhysBone swaying targets (removes PB application).
・Adds child objects to the PhysBone Ignore list.

・Move Independently (Adjustment - Position)

A component that allows position adjustment of specific bones without affecting child objects.
If you want to adjust only the Spine position while keeping the Hips and Chest positions of an incompatible outfit fixed, you can do so by attaching this component and moving it.

・Scale Adjuster (Adjustment - Size)

Intended for use when putting on incompatible outfits.
Allows scale changes without affecting child bones.
[ Adjust child object position ]:
If unchecked, child objects will not maintain their relative position.

・World Fixed Object (World Fixed - Position)

You can fix a GameObject to the world.
It will remain fixed at the world origin unless moved by constraints or similar.

・World Scale Object (World Fixed - Size)

Used to make a game object the same scale as the world, regardless of the current avatar scale.
Used when you need a game object that scales with the world.

・Remove Vertex Color

Removes vertex colors below the configured object.
Be careful when deleting, as some items are set using vertex colors.

・Mesh Cutter (Mesh Deletion)

A component that can delete or hide parts of a mesh by specifying a filter based on whether the configured object is enabled or disabled.
You can narrow down the deletion area by using multiple filters together.
At least one of the following filters is required.

・[MeshCutter] VertexFilter - By Axis (Directional)

Place a plane and mask one side.
(When creating clothing, it is useful to include this in the clothing Prefab for avatars that do not have shrink shape keys.)

・[MeshCutter] VertexFilter - By Bone

Masks based on bone weights.

・[MeshCutter] VertexFilter - By Mask (Texture)

Masks a specified range of the texture.

・[MeshCutter] VertexFilter - By Blendshape

Masks the range of a shape key.

[Materials]

・Material Setter (Material Switching)

Allows you to change the material of a specified mesh by enabling/disabling the configured object.

・Material Swap (Bulk Material Change)

Allows you to change all materials used within the avatar at once by enabling/disabling the configured object.

[Other]

・Floor Adjuster

Automatically adjusts the avatar to the height of the object during upload.

  1. Create a new object and attach this component.

  2. Align that object with the sole of the shoe.

  3. It will automatically align that position with the shoe sole during upload.

・Convert Constraints (Unity Constraint Replacement)

A component that converts Unity Constraints to VRChat Constraints.
Automatically converts constraints in the hierarchy below the component.

・Global Collider (Collider Migration)

Specify and configure the avatar's Global Collider.
It is possible to change the colliders automatically set for hands, fingers, etc.
If you specify 6 or more Global Colliders, the index finger collider will be overwritten.
[ Manual Mapping Assignment ]:
 Overwrites the specified collider
[ Root Transform ]:
 Bone destination

・Platform Filter (Exclusion by Platform)

Configure items you want to exclude on platforms other than VRChat

・Merge Motion (Blend Tree) (IdleMotion Setup)

Clips and BlendTrees configured here will play constantly.
The merge destination layer will be the top layer of the animator.
Please specify the clip to play constantly.
Also, since it cannot change over time or be toggled ON/OFF,
please use [Merge Animator] if you need those features.

・Rename VRChat Collision Tags (Contact Tag Collision Avoidance)

A RenameComponent used to avoid conflicts when Contact collision tags overlap

・Sync Parameter Sequence (Parameter Alignment)

Unifies the order of parameters shared between different platforms.
Prevents synchronization errors that occur when parameter order differs between PC and Mobile.

[Primary Platform]:
Reorders parameters based on the selected platform

・Visible Head Accessory (First-Person View Display)

Displays GameObjects under the Head in first-person view.
The difference from VRCHeadChop is that polygons will no longer pass through the View point.
If the object is not a child of the HeadBone, please move it into the Head using BoneProxy or similar.

・VRChat Settings (MMD Compatibility Settings)

Configures VRChat-specific settings.
Only one can be active for the entire avatar.
Enables special animator processing for MMD worlds.
(Includes processing to avoid issues where MMD worlds automatically disable layers 2 and 3)

[Unused]

・Menu Install Target

A component used to implement the "Select Menu" button for the MA Menu Installer component; not for user use.


同じカテゴリの記事

篠原 沙世

アニメとゲームの新作情報を担当。制作会社・配信元の公式告知と登壇情報を照合して記事化します。

おすすめの関連記事