Skip to content

[Practical / Unity] Procedure for Porting Animation Shader Materials for VRChat to Vket Cloud

Issue

The animation shader material "FX/FlareSC" for VRChat is not compatible with Vket Cloud. To reproduce the effect using shaders supported by Vket Cloud, a series of steps is required.

VRChatAnimationForVKC

VRChatAnimationForVKC

On the left, the top part shows a cyan display, but when the object is implemented as is, the cyan display disappears. The cyan display rotates continuously.

Environment

SDK Version: 4.1.1
OS: Windows 10
Unity: 2019.4.31.f1
Browser: Google Chrome

Procedure

① Download GIMP

The images used in FlareSC have black set as the transparent color.
Download GIMP from 窓の杜 and set black as the transparent color.

If you have another image editing tool with similar functionality, this step is unnecessary.

② Load the Image

Launch GIMP and drag & drop the image to open it.

VRChatAnimationForVKC

If this dialog appears, select "Convert."

VRChatAnimationForVKC

The image will now be displayed in GIMP.

③ Set "Color to Alpha"

VRChatAnimationForVKC

From the "Colors" tab, select "Color to Alpha."

VRChatAnimationForVKC

In the Color window, set the color to black (RGB#000000) and click "OK."

VRChatAnimationForVKC

The image will become transparent.

④ Export the Image

VRChatAnimationForVKC

From the File tab, select "Export As."

VRChatAnimationForVKC

Rename the file as needed and select "Export."

VRChatAnimationForVKC

No additional settings need to be changed on this screen; simply select "Export."

⑤ Prepare MToon

The following steps will be performed in Unity.
For shaders compatible with Vket Cloud, use "VRM/MToon."

You can install this from the Extensions tab in the Vket Cloud SDK settings.

VRChatAnimationForVKC

⑥ Configure MToon

VRChatAnimationForVKC

Change the Shader setting for the material to "VRM/MToon."
You can find it by searching for "MT."

VRChatAnimationForVKC

Adjust the settings as shown in the image.

Important Points

  • Mode: Change to TransparentWithZWrite
  • Color Emission: Replace textures with those created in GIMP

VRChatAnimationForVKC

The animation settings are the most crucial part.
Adjust the horizontal and vertical scrolling speeds with Scroll X and Scroll Y.

VRChatAnimationForVKC

You can check the animation by entering Play mode.
Depending on the SDK version, logging into Vket Cloud may be required when entering Play mode.

VRChatAnimationForVKC

Finally, build the project and verify that it works.

Conclusion

By using MToon, it is possible to partially replicate animation shaders designed for VRChat!

Additional Notes

It also works when exported as HEOObject.

Related Links

Official GIMP Page: GIMP
Official MToon Page: Releases · Santarh/MToon