0x329 load-mesh
Opcode 0x329 (809), draw. Investigated by OME, with high confidence (from investigation).
(file_id)(mesh_slot) — load a catalog file as a Direct3D .X mesh into one of 1,000 mesh slots.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | file id | imm | read |
| 2 | mesh slot (an index into mesh slot, 1000 entries, not bounds-checked) | imm | read |
In the port
OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:
falls: it returns to the next instructionjumps: it continues at another instruction of its frame
OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.
By build
Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | no | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | no | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | 1 |
Evidence
- native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (
vm-map/opcodes.toml opcode 0x329): op_0x329_load_mesh@0x425390 opens the catalog entry of operand 1 and calls gfx_mesh_slot_load@0x48b5d0, which releases the slot's mesh, loads the file with D3DX (mesh_load_from_x_memory@0x472630: the materials are kept, each one's ambient set to its diffuse, and no texture is loaded) and stores the mesh at manager +0xc5f4 + slot * 4, unchecked. When the load fails the handler throws 「メッシュファイル %s の読み込みに失敗しました」 with flags 0x10007. TITLE@0x683 and @0x688 load the two leaf meshes.
Details
OME’s notes on it, as the registry keeps them.
The port keeps the state in the graphics native (Graphics.Scene3D.cs), and the frame lowering draws the rain, the snow and the leaves with it where native's frame render and range present draw them, on the screen or into a render target (Graphics.Scene3DLowering.cs; docs/superpowers/specs/2026-11-20-title-leaves-design.md; docs/engine-re.md, 'The 3D scene'). Point and spot lights, a screen transition's source and a movie mask's capture keep their state and draw nothing (docs/backlog.md, 'The 3D scene's other cases are not drawn').