I'm Yu. I'm in VRChat.
In my previous article, I touched on avatar optimization. This time, as mentioned in that article, I will summarize the steps I take for making avatars Quest-compatible by tracing my own workflow.
PrerequisitesThis is just my personal understanding, and it may contain incorrect information.
I will touch on Performance Rank, but my policy is basically not to worry about it. It is just one metric, and improving the Rank is not quite the same as making it lighter.
Rather than performing optimal optimization, my policy is to aim for a workflow that is as easy as possible while keeping the appearance intact.
The optimal method will vary depending on the material and mesh configuration of the avatar and clothing. Please use this only as a reference for one possible procedure.
Let's get started.
Software and Tools UsedUnity 2022.3.22f1
VCC (VRChat Creator Companion)
Modular Avatar
lilAvatarUtils
AAO: Avatar Optimizer
VRCQuestTools
TexTransTool
I imported the last five via VCC, but you can import them using your preferred method, such as directly from a unitypackage or using ALCOM.
Also, as a subtle pitfall, you may get errors if you don't have the Unity Android SDK. In that case, please use Unity Hub or similar to install the SDK.
Mechanism of Quest CompatibilityFirst, I will briefly explain how Quest-compatible avatars are displayed.
You can skip this part if you like, but I think having a rough understanding of it will make the subsequent steps easier to grasp.
Now, actually, the component attached to the avatar object in the Hierarchy window displays something called a Blueprint ID, which is how VRChat identifies avatars.
By uploading both the PC version and the Quest version with the same Blueprint ID, the system is set up so that PC users see the avatar uploaded as the PC version, and Quest users see the avatar uploaded as the Quest version.
In an extreme case, it is possible to make them look completely different depending on the platform, such as a beautiful girl avatar when viewed from a PC, but a bipedal dog when viewed from a Quest. I wouldn't recommend doing this for everyday use, unless you're doing it as a joke...
What is Quest compatibility?Now, before moving on to the actual steps, I will briefly organize what Quest compatibility actually is in the first place.
To begin with, even when people generally talk about Quest compatibility for avatars, the interpretation often varies depending on the context, roughly as follows:
Without worrying about the avatar's weight, just set the platform setting to "Android" when uploading.
After performing some degree of optimization, set the platform setting to "Android" when uploading, without worrying about the Performance Rank.
Perform optimization until the Performance Rank is better than "Poor" by Quest standards, and set the platform setting to "Android" when uploading.
* When uploading for the Quest version, the platform setting at the time of upload will be "Android".
Since the Meta Quest OS is Android-based, it seems the term has been unified to "Android" with the development of the smartphone version of VRChat, but on the other hand, terms like "Quest version" and "Quest compatibility" continue to be used among users.
In this article as well, I will use the terms "Quest version" and "Quest compatibility" for clarity, and only use the word "Android" when referring to words exactly as they appear in the menu.
Basically, Quest compatibility usually refers to 1 or 2, and there seems to be a gradient in how individuals interpret it based on how much optimization they perform.
By the way, regarding 3, "Poor or better," this is because there are restrictions on displaying Very Poor avatars on standalone Quest and the smartphone version of VRChat.
* On standalone Quest, they are not visible by default, but there is a setting to make them visible by selecting "Show Avatar." Also, on the smartphone version, only up to 4 Very Poor avatars can be displayed.
Also, to get into the details, if it is in a better state than Medium, it will be visible from a standalone Quest by default, so there is also a standard of aiming for this.
However, this is difficult to achieve, and especially if you are doing it by modifying a purchased avatar, you will need to sacrifice various things like appearance, so I think you basically don't need to worry about it.
If anything, it's more like something to aim for as a selling point when selling your own avatars.
This time, we will aim for 2: "Optimize to some extent and upload as Very Poor."
Minimum requirements for Quest version avatarsNow, our goal is to "optimize to some extent and upload as Very Poor," but the question is, what are the actual requirements for uploading a Quest version?
Referring to the official documentation, it is as follows:
Number of PhysBone components: 8 or less
Number of PhysBone transforms: 64 or less
Number of PhysBone colliders: 16 or less
Number of PhysBone collision checks: 64 or less
Number of contacts: 16 or less
Number of constraints: 150 or less
Constraint depth: 50 or less
Furthermore, there are elements that cannot be used at all, such as Lights and Audio Sources. Please check the citation link above for details.
Also, apart from the above, the avatar size limit also changes.
Download size: 10MB or less
Uncompressed size: 40MB or less
Since it is necessary to keep the download size to 10MB or less, a fair amount of optimization is required. I will explain that as well in this article.
And there are also restrictions on the materials (strictly speaking, shaders) that can be used. In short, major shaders like lilToon and poiyomi cannot be used at all.
I will refer you to the documentation for details, but this time I will use the following two.
Toon Lit
Matcap Lit
Modify as needed for now
Complete basic optimization
Upload for PC version (optional)
Reduce PhysBones
Modify expressions and materials to avoid transparency
Prepare and apply Quest-compatible materials
Atlas the textures
Merge materials
Upload for Quest version (if you did not upload the PC version in step 3, upload the PC version here as well)
There are many steps, but the core parts of Quest compatibility start from step 4.
1. Modify as needed for nowHere is what I have already finished.
This is what I modified in the previous article. Please refer to the previous article for details.
2. Complete basic optimizationThis is also covered in the previous article.
Download size: 26.42MB
Texture memory: 65.29MB
Triangle polygon count: 196,307
Number of skinned meshes: 2
Number of material slots: 13
It looks something like this. It's an avatar with a high polygon count, so it's a bit on the heavy side.
Honestly, personally, I would like to keep the polygon count low when making it Quest-compatible, but on the other hand, I don't have a good feel for exactly where the line should be drawn for reduction, so I'll proceed as is for now.
At this point, the download size exceeds the limit, but I'll ignore that for now.
3. Uploading from the PC version (optional)As I wrote at the beginning, by uploading both the PC version and the Quest version, the avatar will be visible from both platforms.
If you want to use shaders like lilToon on the PC version but can't use them on the Quest version, you should upload the PC version of the avatar at this point.
Since the way world lighting hits the avatar changes quite a bit due to shader differences, I upload and use avatars converted to Quest-compatible shaders for both PC and Quest in order to reduce the difference in appearance between platforms.
4. Reducing PhysBonesNow, since the PhysBone limits for Quest avatars are basically strict, most avatars cannot be uploaded as they are.
Avatar Optimizer has features like merging PhysBones with the same settings, and you can use those to reduce weight without sacrificing expression.
...but basically, I don't do that. The reasons are that I don't have a strong preference for swaying objects to the point of putting effort into a Quest avatar, and since real-time processing is heavy anyway, I think it's better to just delete them from the Quest version of the avatar.
Therefore, this time I will proceed with a policy of roughly deleting PhysBones. There are three points: the avatar's original PhysBones, the outfit's PhysBones, and the hair's PhysBones.
First, regarding the PhysBones originally included in Chocola-chan, I will delete them all. If there is anything you want to keep swaying, leave some of them.
Next, looking at the outfit, the PhysBone-related items are neatly separated, and it seems possible to delete everything by just deleting one object. I'll delete it.
Finally, for the hair, it seems that PhysBone-related components are included within the Armature, making it quite difficult to see. Let's use the power of a tool here.
From the Unity menu, select Tools -> VRCQuestTools -> Remove PhysBone.
A list of components with PhysBones applied will appear like this, so leave the checkboxes for only the ones you absolutely want to keep, and then press "Delete unselected components" at the bottom.
This time, I deleted them while keeping only the swaying of the back hair.
Since the estimated performance rank displayed at this time is based on the Quest version's standards, if the upload is not blocked by this display, you can at least meet the upload requirements.
5. Modify expressions and materials to avoid using transparencyNow, let's proceed with modifying the expressions and materials.
For those who might not be familiar with this, generally, expressions like blushing or looking pale from shock often use transparent textures layered on top of regular textures.
However, Quest-compatible shaders cannot use transparent textures, and if you convert them carelessly, you might end up with large pink bars appearing across the cheeks during blushing expressions (the so-called "nori" or seaweed effect).
Therefore, you will have to give up on expressions that use transparent textures.
In cases like blushing, it is possible to solve it through brute force using tools like Blender, but I have no experience with that, and my policy is not to use high-hurdle methods, so I will proceed without using them, including blushing.
Now, regarding the method, basically, you just use a tool that makes it easier to modify expressions, such as Face Emo, and set it so that you don't use Blendshapes that require transparency.
For Chocola-chan, these would be "Option_shy_1 / 2 / 3", "Option_pale", etc.
In the case of Face Emo, since you can save expression menus, I recommend creating separate expression menus for the Quest version and the PC version and switching between them.
This is also a side note, but it seems that transparency can be expressed if you use a Particle shader. However, it seems to be discouraged by the official guidelines for avatar use, so I won't explain it here. I've never done it either.
6. Prepare and apply Quest-compatible materialsNow, continuing with the topic of materials, as I wrote in the Quest compatibility requirements, major shaders like lilToon or poiyomi cannot be used.
Therefore, you need to prepare materials that use Quest-compatible shaders, either by creating new materials or by converting existing lilToon materials.
I am using VRC Quest Tools this time, and it does have an automatic material conversion function, but...
This time, after converting the materials, I will also be performing tasks such as atlas creation for textures and merging material slots, and I plan to use different shaders for metallic and non-metallic parts, so I will not be using this function.
Now, let's get started.
First, open the folder where the materials are saved.
It is easiest to select the object using the material from the Hierarchy window and follow the path from the Materials section of the Skinned Mesh Renderer component.
Now, copy the material to create a new one, and set the Shader in the Inspector window to Toon Lit.
Basically, this creates a Toon Lit material with the same texture as the one originally set. *The term 'Toon Lit material' might not be technically accurate, but I will use this notation for readability.
However, I ran into a small problem this time.
The shirt turned white. The material preview and the texture color are also white.
This is because the original lilToon material settings were using multiplication or color correction on a white texture to achieve the wine red color, so these settings were lost when the shader was changed, causing the color to revert to the original texture color.
To generate a texture with the multiplication and color correction applied, press the bake button and save it with a name. This time, since the original texture name was 'UV1_ivoly', I named it 'UV1_wine'.
Once the texture is saved, set it to the texture slot of the ToonLit material from earlier. The shirt is now successfully wine red.
Since it seems that many materials for this outfit use multiplication or color correction, it seems better to proceed with the steps of copying the material -> baking the texture -> changing the shader to avoid double work.
By the way, you can also bake shadow colors into the texture using lilToon's features. Depending on the outfit, the texture color might end up looking a bit strange, so I often don't use it. It's up to your preference.
Also, for metallic materials, change the shader to 'Matcap Lit', and if a Matcap is set in the original material, set the same texture to the Matcap slot in the Matcap Lit shader as well.
Additionally, for the sake of later material merging, if there is no texture, I set a solid white image.
Now, once the same work is done for all materials, let's check from the material menu of lilAvatarUtils that all materials are set to Quest-compatible shaders.
All materials have been successfully changed to Quest-compatible shaders.
By the way, changing the shader this time changed the appearance like this.
It looks a bit flatter because the wrinkles expressed by the normal map and the outlines are gone, but I think it's safe to say that the appearance is generally not spoiled.
7. Perform texture atlas creationNow, next is the texture atlas creation. I think many people might not be familiar with the term 'atlas creation'...
To explain it roughly, it refers to the process or work of combining multiple textures into a single texture placed side by side.
This time, I will use 'TexTransTool' for texture atlas creation.
First, for the
“AAO Trace and Optimize” attached to the avatar object used in the previous article
the object with the newly created “AAO Merge Skinned Mesh” attached
, perform Remove Component and Delete.
Both TexTransTool and AvatarOptimizer are tools that use a framework called “NDMF (Nadomofu)”, but since new materials seem to be created when performing atlas generation with TexTransTool, material integration such as AAO Merge Skinned Mesh does not work well. Therefore, I proceed with weight reduction in the following order:
Use TexTransTool to atlas textures & convert to materials using the atlassed textures
Manual Bake
Integrate and optimize materials using Avatar Optimizer-related components
.
Once you have deleted the Avatar Optimizer-related components, first create a new object within the avatar object. You can name the object whatever you like as long as you can identify it.
After creating the object, press the Add Component button from the Inspector window and attach “TTT Atlas Texture”.
Once attached, it will look like this, so first, check only the ToonLit materials that are not the face.
When you check them, you will be able to set the values from 0 to 1, which represents how large the textures will be arranged when they are atlassed.
The more you lower the resolution for parts that can afford to have it reduced, the higher the relative resolution of other parts will be, so if you are particular about it, try setting it in detail.
I set the size to half (0.5) only for the inner color part of the hair and the parts used for the tie and pants pockets.
Next, regarding the AtlasSettings below, I think it is basically fine to leave AtlasTextureSize at 2048. If you carelessly set it to 4096 or something, you might not be able to upload it due to the avatar capacity limit.
The items to change from the default settings are:
MaterialMerge -> Turn the checkbox on
PropertyBakeSetting -> “Bake” when uploading for the Quest version, “Not Bake” when uploading for the PC version
Regarding MergeReferenceMaterial, you can select which material to consolidate into after performing the atlas process, but since it seems to choose an appropriate material even if you don't set it, I don't think there is any problem even if you don't configure it specifically.
This time, since I am using Matcap Lit for the metal parts, I will create an additional object and separately atlas the textures only for the materials that have Matcap Lit set.
I set the AtlasTextureSize to 64. Since I am only using solid color textures, it would probably be fine even if it were smaller. Besides, lining up white images just results in white anyway...
Now, once you have finished this, perform a Manual Bake.
I hadn't explained Manual Bake up to this point, though...
To explain it roughly, it's like creating a separate object that has undergone the optimization work that non-destructive components like AvatarOptimizer perform when uploading to VRChat.
Right-click the avatar object -> click Modular Avatar -> Manual Bake Avatar, and the Manual Bake will be performed, and a new avatar object with the NDMF-based non-destructive component processing applied will be added to the Hierarchy window.
The object created by Manual Bake has its Z-coordinate set to 2, so I will return it to 0 and temporarily hide the original avatar.
Now, if you check the texture as a test, it looks like this.
You can see that the textures for the clothing and hair are lined up side-by-side and combined into one. This is the result of the atlas process.
However, since only the texture integration has been performed and the material slots have not been integrated, I will proceed with material integration from here.
8. Integrate materialsThat said, the work is just using AvatarOptimizer to integrate Skinned Meshes and materials, as I did in the previous article.
First, delete the object that had the TTT Atlas Texture attached, and add an object to use AAO Merge Skinned Mesh.
Do it the same way as in the previous article, and if it goes well, you should be able to integrate them into two types of materials: ToonLit materials and MatcapLit materials, as shown in the material integration section.
After that, just Add Component the AAO Trace and Optimize to the avatar's main object and upload it.
Since my policy is to upload two separate versions—'an avatar compatible only with the PC version (using lilToon)' and 'an avatar compatible with both PC and Quest (using only Quest-compatible shaders)'—I detach the Pipeline Manager's Blueprint ID and upload it as a new avatar. This part is up to your preference.
9. Upload as the Quest versionNow, finally, I will upload the avatar as the Quest version.
It's not just a matter of switching the platform settings to Android and uploading! ...That's not how it works.
The suite of NDMF framework tools I'm using works by "executing during the build process before upload to perform tasks like avatar optimization."
Because of this, with Quest avatars that have strict upload limits, you often end up in a situation where you can't even press the upload button because the avatar hasn't been optimized yet, making it impossible to upload.
There are two main ways to avoid this:
Perform a Manual Bake again and then upload
Upload via VRCQuestTools
These are the two methods.
For Manual Bake, you just need to redo what you did when creating the texture atlas.
This time, I'll try uploading via VRCQuestTools as a way to explain the process.
From the Unity menu, select Tools -> VRCQuestTools -> Convert Avatar for Android.
First, the window on the far left will appear; drag your avatar object into the avatar field, then click "Open Avatar Builder" at the bottom.
Next, the middle window (Avatar Builder) will appear. You will likely see an alert saying "You need to open the VRChat SDK Control Panel to build the avatar," so click Open.
The usual upload screen will appear; select your avatar and then return to the Avatar Builder, and it should look like the screen shown above.
After that, enter the avatar name and thumbnail in the VRC SDK Control Panel as usual, then change the Selected Platform to Android.
A confirmation window will appear asking if you want to change the build target; click "Confirm."
Changing the build target takes some time, so let's wait a bit.
Once the platform has been changed, it should look like this.
You can see that "Build & Publish for Android" in the VRCQuestTools upload section is now clickable.
As the description notes, this allows you to upload while skipping the upload condition checks. Let's click it and upload.
With this, the Quest avatar upload is complete.
Let's check how it looks by launching VRChat on a standalone Quest or by having a friend on Quest take a look!
Also, if you haven't uploaded the PC version yet, make sure to switch the platform settings back to Windows before uploading the avatar again.
At that time, you will need to change the settings you made when atlasing the textures, so go back to the texture atlasing section, change the PropertyBakeSetting, and then proceed with Manual Bake -> adding Avatar Optimizer components -> uploading again.
Be careful, as skipping this step can result in a pretty horrific appearance.
AfterwordI got a bit tired toward the end and wrote this in a rush, but how was it?
Quest compatibility might feel like a high hurdle, and in reality, it is significantly more involved than just uploading.
However, you will gain more knowledge about optimization, and above all, you can show your favorite modifications to standalone Quest users, so why not give it a try if you feel up to it?
If there is anything in this article you don't understand or if you find any errors, please let me know in the article's comment section or via X, which is linked in my note profile.
See you later.