ホーム 暮らし How to make your avatar as light as possible [VRChat]

How to make your avatar as light as possible [VRChat]

藤崎 健人 藤崎 健人 • 更新: • 公開: • 読了約 39 分
目次

■ Overview

n30201d0e4541

 This article introduces techniques for making your VRChat avatar as lightweight as possible.
 As a specific target example, we will aim to reduce the original 3D model 'Luchika' to Performance Rank: Good.
 Also, this article uses ALCOM, described later, to create and manage the Unity project.

※ Since this has become a long article exceeding 8000 characters, if you are in a hurry, please jump to
Summary for busy people from the table of contents.

■ What to prepare

 An existing Unity project for a VRChat avatar, or a newly created Unity project.
※ Please
always back up your project.

■ What to add to the project

Please install the latest stable version of each.

《Required》

AAO: Avatar Optimizer
TexTransTool
(Automatic installation: TexTransCore)
MaskTextureEditor
Non-Destructive Modular Framework

《Useful to have》

lilToon
ALCOM
lilAvatarUtils
ModularAvatar

lilToon https://booth.pm/ja/items/3087170
A general-purpose shader for avatars.
Not required if you do not plan to use it.

AAO: Avatar Optimizer https://vpm.anatawa12.com/vpm.json
 The main avatar optimization tool.
 Various toolsets are bundled here.

TexTransTool https://vpm.rs64.net/vpm.json
 An avatar optimization tool specialized for texture manipulation.
 Handles simple texture atlas creation.

MaskTextureEditor https://vpm.nekobako.net/index.json
 Used to create texture masks within Unity.
 The created masks can be used with AAO's Remove Mesh By Mask, allowing you to reduce polygons in unnecessary areas without destroying the original data.

ALCOM https://vrc-get.anatawa12.com/ja/alcom/
 Compared to creating projects with the VRChat Creator Companion (VCC), creating them with ALCOM can sometimes be faster.
 It has almost no effect on Unity startup speed.

lilAvatarUtils https://lilxyzw.github.io/vpm-repos/vpm.json
 Allows you to list the dependent materials used in avatar objects.
 Useful for finding textures, materials, and objects used during optimization work.

ModularAvatar https://vpm.nadena.dev/vpm.json
 A tool that allows you to add clothing and items without worrying about the traditional hierarchical structure.

Non-Destructive Modular Framework https://vpm.nadena.dev/vpm.json
 A framework for running non-destructive build plugins.


■ ALCOM installation procedure

 Download it in your preferred format from the Download section of the official ALCOM website.

■ Procedure for installing various packages

If you do not know the repository URL, please search for it in your browser.
Alternatively, please refer to Summary for busy people.

For VCC

 Settings > Packages > Add Repository. Add the repository URL here.

 Projects > Manage Project > Manage Packages. If the repository was added successfully, searching here will display the target.

For ALCOM

 Packages & Templates > VPM Repositories > Add VPM Repository. Add the repository URL here.

 Project > Manage Packages. If the repository was added successfully, searching here will display the target.

■ Trying to upload Luchika

 If you are working on an existing project, please view these steps as a reference only.

BackUpYourProject!
 Once you have finished adding the necessary packages to your Unity project (hereinafter referred to as PJ), create a backup using ALCOM's features before launching it.
 Click Project > Backup to create a backup.


Since backups are created in zip format, they are more lightweight than copying the entire project folder.
Since the backup creation date and time are used as the file name by default, it is possible to roll back to a specific date and time from multiple backups.
It is recommended to create a backup whenever you make changes to your avatar. If you cannot tell what changes were made just by the date and time,
it is a good idea to write them directly in the file name or create a separate UpdateHistory.txt file.

Avatar Upload

Add Luchika to your project.
Add KOYORI LABO > Avatar_Luchika > Luchika to the hierarchy using drag and drop.
For now, name it L2604 and upload it.
When you check the avatar's properties in VRChat, they will look like this.
Use this as a benchmark for weight reduction.
Also, create a backup using ALCOM at this timing.

■ How to use lilAvatarUtils

Click lilAvatarUtils from Tools in the Unity toolbar to display the lilAvatarUtils window.

Drag and drop the uploaded avatar object into the GameObject field of the lilAvatarUtils window.
Then, a list of materials, textures, PhysBones, PB colliders, etc., used by that avatar will be displayed as follows.


As an operation, if you change the maximum resolution of Luchika_Texture_Costume to 1024 and the compression quality to Normal, and then apply it from the top left of lilUtils, you can reduce it from 21MB to 0.7MB.

This significantly reduces the hassle of searching for meshes assigned with materials in the hierarchy or looking for heavy textures in the texture folder.

If you upload and check in this state, you can see that it has become visibly lighter as shown below.

DownloadSize     25.77 →19.83 MB
UncompressedSize 90.33 →69.66 MB
TextureMemory    55.69 →35.02 MB

However, be careful, as continuing to lower the resolution will cause the textures to break down and fine patterns to blur.

As a guideline for weight reduction, the following ideas can be mentioned.
1. Keep it below the HMD resolution
2. Trim parts that cannot be seen

[1] Keep it below the HMD resolution

The per-eye resolution of HMDs currently in general use is as follows.
・RiftS     1280x1440
・MetaQuest2 1832x1920
・MetaQuest3 2064x2208
・Pico4    2160x2160
・Pico4Ultra  2160x2160
・
Pimax8KX  3840x2160 (exceptional case)
For this reason, even if you make the texture size larger than the HMD resolution, in many cases it tends to be excessive.
Since the typical social distance in VRC is to converse at an interval about the height of an avatar, it is recommended to keep it below an appropriate resolution.
In this example, only face-related textures, which are highly likely to be seen up close or in photos, are set to 2048, and everything else is set to 1024 or less.
Also, since a smaller DL size can shorten avatar loading times, this is also effective.
If you specify resolution 1024 maximum resolution 2048 in lilAvatarUtils, it will highlight targets above that threshold in red text.

The appearance after uploading with the above settings and taking a photo is as follows.
You can see that even with quite low resolution and crunch compression applied, there is little sense of discomfort.
Also, compared to the raw upload, there are parts where the capacity has been reduced by up to 80%.

DownloadSize     25.77 → 7.28 MB 72%減
UncompressedSize 90.33 →36.60 MB 40%減
TextureMemory    55.69 → 9.52 MB 83%減
[2] Remove parts that are not visible

Recent avatars, including Luchika, have various parts of their outfits subdivided to make them easier to customize. We will remove unnecessary parts while maintaining the Luchika-like appearance.

Unnecessary parts
To define what is unnecessary, a premise is required.
In this case, the purpose is to interact through conversation and photography in crowded places such as events and game worlds.
Based on this premise, the following can be considered unnecessary parts:
・Parts that are not noticeable
・Elements that don't make much difference even if removed
・Elements that are not practically necessary for the representation

■ Trying to reduce weight with AAO

~How to use AAO: Avatar Optimizer~
Right-click the avatar object in the hierarchy and add
Avatar Optimizer > Add Trace and Optimize.


Also, display the window from the Tool tab by selecting NDMF Framework > Show NDMF Console.

When you enter play mode in Unity, the avatar is temporarily built, and the processing of AAO, MA, and other NDMF tools is applied.
In this state, if you look at the NDMF Console, the processing results applied to the avatar will be displayed.
*Only the processing results by NDMF-related tools are displayed.

At this point, there are 19 material slots and 11 meshes, so I will add
AAO MergeSkinnedMesh to the avatar to attempt integration.

Expand the Skinned Mesh Renderer and Mesh Renderer tabs, and assign the meshes that you do not plan to operate with gimmicks here.
At this time, let's set the avatar's Hips to the RootBone and AnchorOverride items of the MergeSkinnedMesh's SkinnedMeshRenderer.

If you enter play mode and build in this state, a warning will be displayed stating that the animation to operate the integrated mesh will be disabled.

The cause is that the ON/OFF of outfit parts is implemented in the FX layer, etc., so it is necessary to exclude unnecessary Animators from the VRC Avatar Descriptor or delete unnecessary layers from the FX layer.
Since only the facial expression operation layer is sufficient, I will duplicate the FX layer and delete the unnecessary Toggle operation layers.

 After cleaning up the Animator and building, the warnings will disappear as shown below.

 19→10 material slots, 11→1 mesh You can see that it has been reduced to this.
 General-purpose optimization ends here so I will upload it once and check how it looks inside VRChat.


 It is still VeryPoor, but compared to the initial state, there is a significant difference as shown below.

DownloadSize     25.77 → 5.96 MB 77%減
UncompressedSize 90.33 →20.66 MB 77%減 lilAvatarUtils比さらに-37%
TextureMemory    55.69 → 9.52 MB 83%減
SkinnedMeshes    17/16 → 1/16    94%減
MaterialSlots    23/32 → 10/32   57%減

■Trying to optimize with TTT

~How to use TexTransTool AtlasTexture~
 Right-click the avatar object in the hierarchy and add TexTransTool > TTT AtlasTexture.

 In the AtlasTexture inspector, select the materials you want to atlas (combine) under the Selected Materials item.
 Also, if there are parts where you want to increase the resolution during atlassing, specify them in the Island Size Priority Adjustment. Mainly specify materials for facial expressions.
 If the overall color of the avatar changes significantly after atlassing, the color gamut change settings or MatCap settings of the original material may be having a negative effect, in which case you need to explicitly separate them from the material combination group column.


Regarding the impact on texture memory, in this work example, sufficient weight reduction was achieved even without using TTT.

なし  9.33MB lilAvatarUtilsだけで削減 
TTT2K 13.00MB TTT AtlasTextureの追加で逆に肥大化
TTT1K  5.00MB 更なる軽量化となるが模様消失の問題

■Trying to further optimize with Remove Mesh By Mask

 PerformanceRank: Good If you are aiming for
optimization, use Remove Mesh By Mask to perform further reductions.
 Since the number of material slots and meshes are within the specified limits,
reducing the polygon count is the main challenge.
 If you aim for Good status while maintaining Luchika's appearance as much as possible, everything other than the appearance will be subject to reduction.
 As a result of setting the meshes that can be roughly reduced to EditorOnly,
 146,568 → 113,926△ it was reduced to this.

Next, add the Remove Mesh By Mask component from Add Component to the mesh whose polygon count you want to reduce.
Check [✓] the material slots to apply and create a mask texture.

Paint the parts you want to hide black and paint the parts you want to display white.

Perform this reduction work until it is 70,000△ or less.
Depending on the combination of avatar and costume, you may reach the limit of weight reduction here.
Also, to keep the number of PhysBones within the allowable range, reference all PBs from lilUtils and disable them.


Only after performing the measures up to this point can you reach PerformanceRank: Good.
※There are cases where you cannot reach it.


Comparing the original state with the Good-optimized state looks like this.

PerformanceRank VeryPoor → Good
△Triangles     146,568 → 68,934  53%減
DownloadSize     25.77 → 4.95 MB 81%減
UncompressedSize 90.33 →24.18 MB 73%減
TextureMemory    55.69 →12.83 MB 77%減
SkinnedMeshes    17/16 → 1/16    94%減
MaterialSlots    23/32 → 5/32    78%減

The following items were lost during the reduction process:
・AFK motion
・Outfit part ON/OFF
・Detailed outfit parts
・Meshes for hidden parts like socks/underwear
・Sideburns
・Choker/earrings/pendant
・Skirt/hair sway
※The chest will still sway

■ Summary for busy people

 Please back up your current Unity project before adding the following:
・Non-Destructive Modular Framework
  https://vpm.nadena.dev/vpm.json
・Modular Avatar
  https://vpm.nadena.dev/vpm.json
・lilAvatarUtils
  https://lilxyzw.github.io/vpm-repos/vpm.json
・AAO:Avatar Optimizer
  https://vpm.anatawa12.com/vpm.json
・TexTransTool
  https://vpm.rs64.net/vpm.json
・MaskTextureEditor
  https://vpm.nekobako.net/index.json

Launch Unity and add the following components to the avatar you want to optimize:
・Right-click the avatar object and add Avatar Optimizer > Add Trace and Optimize.
・From the same right-click menu, add TexTransTool > TTT AtlasTexture.
・Click lilAvatarUtils from the Unity toolbar to open the lilAvatarUtils window, then drag and drop your avatar into the GameObject field.

Optimization Steps

1. From the Texture tab in lilAvatarUtils, set the resolution of all textures except for facial expressions to 1024 or lower.Facial expressions only up to 2048.
2. Enable Crunch compression for all textures from the same tab.
Normal compression quality is fine.
3. In the hierarchy, set meshes that have little impact on appearance to inactive & EditorOnly.
4. Specify the avatar's Hips in the RootBone/AnchorOverride of MergeSkinnedMesh.
5. Drag and drop the avatar's meshes into the Skinned Mesh Renderer/Mesh Renderer of MergeSkinnedMesh.
6. Check [✓] the materials you want to merge from the selected materials in AtlasTexture.
 Enter play mode at this point to check the avatar's optimization status.
 If the optimization is insufficient, proceed with the following steps.
7. Add the AAO Remove Mesh By Mask component to the avatar's mesh using AddComponent.
8. Create/edit a mask texture and paint parts that have little impact on overall detail black to hide them.
9. Save the mask texture after editing is complete.
10. Reference the PhysBones set on the avatar via lilUtils and disable them.
 Enter play mode at this point to check the avatar's optimization status.
 Further optimization beyond this point falls into other areas such as paid tools or Blender work.

■ Conclusion

 Thank you for reading until the end.
 I created this document because there was a need for a guide that explains multiple tools across the board for avatar optimization.
 I hope this helps with your avatar optimization.
 Please note that if better methods emerge in the future, these steps may become inefficient, so please keep up with the latest information accordingly.

■ Further optimization methods

 I have received additional information regarding effective methods for further optimization, which I will introduce here.
 However, since my own verification and understanding are not yet sufficient, I will cover detailed explanations in future articles.
AAO
 AAO Max Texture Size
 AAO Remove Mesh By BlendShape
 AAO Remove Mesh By Box
 AAO Merge Material
NDMF-based tools
 Meshia Mesh Simplification
 LAC: Avatar Compressor
 Paid NDMF RemoveFX
Others
 VRCHierarchyHighlighter

【Update History】

2026年4月14日 情報提供分を加筆
2026年4月13日 公開
2026年4月12日 NOTEに下書き
2026年4月12日  ChatGPTによる校正誤字脱字指摘
2026年4月12日  原稿完成
2026年4月1日 原稿書き始め


同じカテゴリの記事

藤崎 健人

芸能取材歴10年のデスク。所属事務所の公式リリース、番組公式サイト、配信サービスの告知を一次情報として採用し、裏付けの取れない内容は記事にしていません。

おすすめの関連記事