MME Implementation Planning
Overview
Turn an approved effect route into an implementable MME plan. The plan must be specific enough that mme-authoring can write files without guessing pass order or resource names.
Plan Checklist
- File layout:
- Main
.fx, helper .fxsub, textures, controller .pmx/.x, readme notes if needed.
- Attachment model:
- Which object/accessory loads the effect and which MME tab assignments are required.
- Render targets:
- Name, semantic, format, size, clear color/depth, antialias, mip levels, and
DefaultEffect.
- Technique/pass graph:
ScriptClass, ScriptOrder, technique Script, pass Script, MMDPass variants.
- Data flow:
- Inputs, intermediate buffers, final output, framework buffers.
- Controls:
- UI annotations,
CONTROLOBJECT names/items, defaults and ranges.
- Examples:
- Local files to mirror or adapt.
- Verification:
- Static review items and runtime debug checkpoints.
Output Template
Implementation plan:
- Files:
- Load/assignment steps:
- Render targets:
- Techniques and passes:
- Controller/UI parameters:
- Example sources:
- Compatibility notes:
- Debug checkpoints:
Required Reference Use
Before finalizing a plan touching MME scripts or target semantics, verify with:
../mmd-mme-workflow/references/mme-core-reference.md
For framework work, also verify:
../mmd-mme-workflow/references/framework-notes.md
For examples, use:
../mmd-mme-workflow/references/example-index.md
Planning Rules
- Put
Draw=Buffer or Draw=Geometry on pass Script, not just in the technique script.
- Include all necessary
object and object_ss variants for model shaders.
- Preserve
MMDSamp0..2 register declarations when adapting full shaders that rely on MMD samplers.
- Plan a temporary "draw intermediate buffer to screen" pass for complex post effects.
- For ray-mmd and sdPBR, prefer adding a material/preset/config-level extension over editing core buffers unless core editing is truly required.
1---2name: mme-implementation-planning3description: Use when Codex needs to plan MMD/MME .fx/.fxsub implementation details such as file layout, render targets, MMDPass techniques, postprocess scripts, DefaultEffect routing, controller parameters, examples, and debug checkpoints before writing code.4---56# MME Implementation Planning78## Overview910Turn an approved effect route into an implementable MME plan. The plan must be specific enough that `mme-authoring` can write files without guessing pass order or resource names.1112## Plan Checklist13141. File layout:15 - Main `.fx`, helper `.fxsub`, textures, controller `.pmx/.x`, readme notes if needed.162. Attachment model:17 - Which object/accessory loads the effect and which MME tab assignments are required.183. Render targets:19 - Name, semantic, format, size, clear color/depth, antialias, mip levels, and `DefaultEffect`.204. Technique/pass graph:21 - `ScriptClass`, `ScriptOrder`, technique `Script`, pass `Script`, `MMDPass` variants.225. Data flow:23 - Inputs, intermediate buffers, final output, framework buffers.246. Controls:25 - UI annotations, `CONTROLOBJECT` names/items, defaults and ranges.267. Examples:27 - Local files to mirror or adapt.288. Verification:29 - Static review items and runtime debug checkpoints.3031## Output Template3233```markdown34Implementation plan:35- Files:36- Load/assignment steps:37- Render targets:38- Techniques and passes:39- Controller/UI parameters:40- Example sources:41- Compatibility notes:42- Debug checkpoints:43```4445## Required Reference Use4647Before finalizing a plan touching MME scripts or target semantics, verify with:4849- `../mmd-mme-workflow/references/mme-core-reference.md`5051For framework work, also verify:5253- `../mmd-mme-workflow/references/framework-notes.md`5455For examples, use:5657- `../mmd-mme-workflow/references/example-index.md`5859## Planning Rules6061- Put `Draw=Buffer` or `Draw=Geometry` on pass `Script`, not just in the technique script.62- Include all necessary `object` and `object_ss` variants for model shaders.63- Preserve `MMDSamp0..2` register declarations when adapting full shaders that rely on MMD samplers.64- Plan a temporary "draw intermediate buffer to screen" pass for complex post effects.65- For ray-mmd and sdPBR, prefer adding a material/preset/config-level extension over editing core buffers unless core editing is truly required.