ホーム 暮らし msToonCoordinator v1.1

msToonCoordinator v1.1

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

This is the distribution and explanation for msToonCoordinator, a toon-style post-effect for MME.

The Chinese translation can be found here. Thanks to the translator Ayane!
https://www.bilibili.com/read/cv11034495

Introduction video

na1bc7c72e511

Distribution data

Update history:

v1.1
■ Fixed an issue where MMD would crash when loading default.vmd via drag-and-drop. If it still crashes in v1.1, please try loading the vmd from the [File] menu in MMD by selecting [Load Motion Data].
■ Removed the explanation for "G Channel: Edge color visibility" from the Edge parameters. The G channel is not actually used. Sorry. If you do not want edges on only a part of the model, please change the edge magnification in PmxEditor's vertex editing for standard MMD edges, or specify a texture via EdgeStrength if using Croquis.

Acknowledgments
The distributed data was created based on Soboro's Basic Effect Set Ver.3.0. Additionally, this effect is intended to be used in conjunction with other effects. I would like to express my gratitude to Soboro and all other effect creators.


What is msToonCoordinator (hereinafter msTC)?

It is an effect that creates a toon look based on the results of other effects.

msTC itself only has the function to "change colors." It relies on other effects to tell it where to change those colors. For example, it uses ExcellentShadow for shadow locations and Croquis for edge locations.

msTC is designed to be compatible with various effects. For shadow locations, you can use SvSSAO or ImSSAO in addition to ExcellentShadow. You can also use light-based effects like PostPointLight, and you can even directly specify "shadows are likely to form here" using a texture image. Most importantly, its key feature is the ability to use all of these simultaneously to control shadows. The same applies to sub-lights and edges.

In this way, by standing between MMD and each effect, msTC provides a beautifully controlled toon visual.

However, it requires a certain level of knowledge regarding MME. It is an effect intended for intermediate users to use, and for advanced users who can modify each effect themselves to master.

For those who understand:
msTC is an effect that uses the RGB values of each render target as a mask to overwrite colors for shadows, highlights, edges, etc., based on whether they are above or below a threshold. This is the technique commonly used in CG animation and games.


msTC workflow

At a minimum, msTC is used by loading Shade.x, Edge.x, ExcellentShadow.x, and the controller (msToonCoordinatorController.pmx).

First, use various effects to draw shadows and highlights to the msTC_ShadeRT tab, sub-lights (treated like additional lights) to the msTC_SublightRT tab, and edges to the msTC_Edge_RT tab. Based on these, Shade.x and Edge.x draw the shadow colors, highlight colors, sub-light colors, and edge colors. Each color is operated via the controller.


--- Base Color ---

In the drawing order, everything before Shade.x serves as the base color (where light hits). Based on this, shadow colors and highlight colors are applied. Since the base color cannot be controlled by the controller, please adjust it using the MMD standard light color, model textures, or other effects.

Basically, this is the result of the 'Effect Mapping' main tab. I recommend either modifying the model directly or using SimplePaint_EgeOff.fx or a solid color shader to paint it flat. PostEyeAlpha and similar effects should also be placed before Shade.x.


--- Shade.x ---

Shade.x refers to the msTC_ShadeRT tab and msTC_SublightRT tab to paint shadow colors, highlight colors, sub-light 1 color, and sub-light 2 color.

First, the msTC_ShadeRT tab is used to paint shadow colors and highlight colors based on its RGB values. Blue areas are where light hits, and areas without blue become shadows. Red areas become the base color. Green areas become highlights. (The state of the tab can be checked using the 'Adjustment' morph on the controller; described later.)

Effects that add shadows, such as ExcellentShadow and SSAO-based effects, should be enabled by checking them in this msTC_ShadeRT tab. For the red areas, you can use textures or attach point light effects to bones.

Specifically, it is as follows:
msTC_ShadeRT:
R: Degree to which it becomes the base color (i.e., not painted). The closer to 1.0, the more it is forced to remain the base color.
G: Degree to which it becomes the highlight color. The closer to 1.0, the more it is forced to be painted with the highlight color.
B: Degree to which it does not become the shadow color. The closer to 0.0, the more it is forced to be painted with the shadow color.


Next, the msTC_SublightRT tab is used to paint sub-light 1 color and sub-light 2 color based on its RGB values.

Basically, you apply red or green lights as additional lights. Red areas become sub-light 1 color, and green areas become sub-light 2 color. Since it only needs to be red or green, there are no restrictions on the number or type of additional lights. Blue areas are not treated as highlights or sub-lights.

Additional lights should have their checks enabled in this mcTC_SublightRT tab.

Specifically, it is as follows:
msTC_SublightRT:
R: Degree to which it becomes sub-light 1 color. At 1.0, it is forced to be painted with sub-light 1 color.
G: Degree to which it becomes sub-light 2 color. The closer to 1.0, the more it is forced to be painted with sub-light 2 color.
B: Degree to which it does not become a highlight or sub-light. The closer to 1.0, the more it ignores highlights and sub-lights and paints with the base color or shadow color.


--- Edge.x ---

Edge.x refers to the msTC_EdgeRT tab and paints with the edge color. The Edge_ON.fx applied by default draws the MMD standard edge.

Paints the black areas (actually the R-value) with the edge color.

For Croquis, etc., turn on the check in this msTC_EdgeRT tab.


--- Controller ---

Use msToonCoordinatorController.pmx to manipulate each color, etc. A vmd file for initial settings is also included.

Basically, you determine the range of shadow areas, etc., using each threshold, and then decide how much to change the hue, lightness, and saturation from the base color.

Specifically, it is as follows.
Shadow/Highlight:
Shadow 1 Threshold: The range to be shadowed.
Shadow 1 Hue Application: The degree to which the shadow color approaches the hue specified by "Shadow 1 Hue".
Shadow 1 Hue: The hue of the shadow color. If Shadow 1 Hue Application is 0.0, it will not change.
Shadow 1 Saturation: The saturation of the shadow color. 0.0 is achromatic, 0.5 is no change, 1.0 is pure color.
Shadow 1 Lightness: Theluminanceof the shadow color. 0.0 is black, 0.5 is no change, 1.0 is white.
Highlight 1 Ignore Shadow: Maintains the highlight color even if the highlight enters a shadow.
Sublight:
Sub 1 Hue: The hue of the sublight 1 color. Unlike the above, it becomes this hue.
Saturation and lightness have the same specifications as Shadow/Highlight.
Edge:
Same specifications as Shadow/Highlight. There is no color tracing.
For Adjustment:
Moving the sliders will display "Base Color (before Shade.x)", "msTC_ShadeRT", "msTC_SublightRT", and "msTC_EdgeRT" in order. I think it's good to use this when you want to adjust while looking at the contents of each tab.
Also, if you are using advanced video editing software like After Effects, you can output the video for each tab using these morphs and use them as masks in AE.


Minimum Usage

1) Preparation in MMD

・Load Shade.x, Edge.x, and ExcellentShadow.x

・Load msToonCoordinatorController.pmx and default.vmd

2) Preparation in MME "Effect Mapping"

・Assign SimplePaint_EgeOff.fx to (default) and the PMX model in the main tab

・Turn off the check for ExcellentShadow.x in the main tab

・Turn on the check for ExcellentShadow.x in the msTC_Shade tab

→ Preparation is complete! You can tweak various things with the controller.


Advanced usage

Applying fx files in each msTC_〇〇 tab

There are fx files in the Shade, Sublight, and Edge folders that allow you to tweak parameters. You can force shadow colors or highlight colors, or specify RGB values using textures.

Since it simply draws the specified texture according to the model's UV, the roles of RGB are basically the same as the RGB in each tab. However, only the B channel in Shade is inverted, so areas painted blue in the texture will be forced to the shadow color.

In the msTC_Shade tab, the shadows from ExcellentShadow and the B value of the texture are multiplied. Furthermore, the R value of the texture is added to determine the final amount of shadow, so you can control how easily shadows appear by adjusting the B and R values.

Adding various effects

Basically, turn off the check for effects loaded for msTC in the main tab, and turn on the check in the corresponding msTC_〇〇 tab.

Most effects, especially those that can be operated via RGB, should be usable. This includes SSAO-based effects, additional light-based effects, and edge-drawing effects, as well as ideas like using rim light-based effects to cancel shadow colors in rim areas, or trying out WorkingFloor-based effects (for ground shadows). For effects that multiply all RGB channels like SSAO, it is better to modify them to multiply only the B channel.


That is the general overview.

It was a rough explanation, but the point is to manipulate the RGB of each tab.

Please enjoy playing with msToonCoordinator.


Usage for perfectionists

This is more of a tips section. I hope those interested will read it.

Turn off MMD anti-aliasing and output at double size

This effect was created with the assumption that anti-aliasing is turned off because it uses thresholds. There is no major problem even if anti-aliasing is ON, but the processing around the edges might become slightly questionable. If you turn it ON, there are parameters at the beginning of Shade.fx and Edge.fx that support anti-aliasing, so please change them.

If it is OFF, it will naturally become jagged, so to apply smoothing, output at twice the vertical and horizontal size and reduce it to half the size in video editing software (it is even better to apply some kind of smoothing effect). If you are making a Full HD (1920x1080) video, output from MMD at 4K (3840x2160).

Outputting at double size is recommended because edge-based effects will also be rendered beautifully. However, please be careful when adjusting each effect, as the thickness of Croquis will change and the spread range of Diffusion will become narrower.

Do not use achromatic colors, and do not mix them with chromatic colors

For morphs that change saturation, I have set it so that if the original color is achromatic, the saturation will not be changed. The hue value is undefined, and achromatic colors are rarely used in anime or similar media.

However, achromatic colors are often used in MMD models. Especially when achromatic and chromatic colors are mixed in a continuous area—for example, a white shirt where the shadow parts have a slight hint of light blue—adjusting the saturation can cause a sharp, unnatural separation between the achromatic and chromatic parts.

Even with a single color, if the base color is achromatic, the shadow color will also be achromatic, which can make it look dull. It is a good idea to take measures such as shifting even a white shirt slightly toward blue.


Conclusion

Thank you for reading to the end. I hope this helps you in your creative work.

同じカテゴリの記事

藤崎 健人

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

おすすめの関連記事