Material data (PBR)

Ray-MMD material files (.emd) and the PBR maps of glTF, GLB and FBX models shade materials with real depth. Where to turn it on, the look policy, and the command line.

Many MMD models ship with Ray-MMD material files (.emd → .fx) that carry the texture the creator intended. They hold maps like albedo (color), normal (surface detail), smoothness (roughness), metalness, AO (ambient occlusion) and emissive (glow), plus a shading model per material: skin, hair anisotropy, cloth and so on.

MMDX12 2.0.0 reads that data and shades it with PBR (physically based) rendering in raster, ray tracing, path tracing and offline GI alike. The lighting is MMDX12’s own. It does not reproduce Ray-MMD’s own post-processing and IBL, so the picture is not identical to a Ray-MMD render: it is MMDX12’s look, on purpose.

What it looks like when it’s on

  • Clothes, metal, accessories and stages reflect and absorb light properly, so their material character comes through.
  • Skin and faces stay anime-like, matte and close to cel shading. They do not turn glossy or realistically pore-detail.

Where to switch it

Material data is chosen per character and per stage. Stages use Stage material data in the same Shaders tab; in the Studio the inspector offers it for characters, stages and props. Under Material data, pick Default or Ray-MMD.

ScreenWhere
LibraryRight panel, Shaders tab
While playingScreen effects panel > Shaders tab on the playback screen
StudioThe inspector
  • Default: the MMD surface as before.
  • Ray-MMD: finds the Ray-MMD material data that fits the model and shades it with PBR.

A separate global switch, Use Ray-MMD materials (in the MME tab), turns every model back to the default material (see MME effects for details).

Screen effects panel Shaders tab
Material data row in the shader tab

MMDX12 finds the .emd by its content, never by its file name: among the .emd files in the model folder, it picks one whose material count matches the model and whose .fx files are Ray-MMD materials. If the automatically chosen .emd isn’t what you want, pick another candidate from the list or set one yourself with Choose file….

When a character has Ray-MMD material data, the app shows a one-time toast. It is never turned on automatically. Your choice is saved per character, and inside Studio it is saved with the project.

Imported models (glTF, GLB, FBX)

Models imported from glTF, GLB or FBX fill the same material data from their own PBR maps (metal-rough, normal, occlusion, emissive). For these the selector shows Default / PBR. Materials without PBR maps, such as VRM, MToon and unlit, stay cel-shaded.

MMDX Effects win

A material shaded by MMDX Effects keeps the pack’s look. When material data and a pack cover the same material, the pack wins.

Command line (power users)

Use these to force the material source for a whole run, or to inspect the PBR inputs one channel at a time.

OptionValues
--material-sourcedefault or ray
--pbr-debugnone, albedo, normal, roughness, metalness, ao, emissive, model