Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x323 fade-polygon-color

Opcode 0x323 (803), draw. Investigated by OME, with high confidence (from investigation).

(handle)(delay_ms)(duration_ms)(alpha)(rgb) — fade a polygon's colour to a target after a delay, over a duration. The target is built as set-polygon-color builds its colour. A duration below 1 does nothing.

Operands

#RoleTypes seenAccess
1handleimm, l-intread
2delay in msimmread
3duration in msimm, l-intread
4target alpha, or negative to keepimm, g-int, l-intread
5target RGB, or negative to keepimm, g-int, l-intread

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 instruction

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.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisterno—
4.33G (SYS4433)Kamidori Alchemy Meisterno—
4.38D (SYS4438)Soukoku no Arterialyes1

Evidence

  • native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (vm-map/opcodes.toml opcode 0x323): op_0x323_fade_polygon_color@0x4251d0 calls gfx_polygon_fade_color@0x496910, which sets flag 2, clears the start time and stores the delay (+0x2c), the duration (+0x30) and the target (+0x38). gfx_render_polygon@0x496d10 runs the fade at each draw: the start is the frame time of the first draw; a duration below 1 only clears the flag; between the delay and the end the colour drawn is the two mixed by (now - start - delay) / duration, each channel truncated; at the end, or when manager +0xb590 is set, the colour becomes the target. LOGO@0xbe fades its first quad to alpha 0 over 500 ms, and LOGO@0xe0 its second to alpha 0xff after 4,500 ms, before op 0x21c waits.

Details

OME’s notes on it, as the registry keeps them.

The port keeps the fade in the graphics state (GfxState.FadePolygonColor) and samples it when a frame is lowered; a running fade keeps an effect wait waiting and a forced completion ends it, as the one-shot channels. 創刻のアテリアル has 9,793 sites.