diff --git a/README.md b/README.md index c61ed9b..a55a801 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,45 @@ all possible failures. | ![failure image](img/failures/obj-priority-same-x.png) | Right mole visible | Object Priority Same X Coordinate | | ![failure image](img/failures/10-obj-limit.png) | Hello World missing exclaimation mark (!) | 10 object per line limit | | ![failure image](img/failures/8x16-obj-tile-index-bit-0.png) | Half of mouth missing | Bit 0 of tile index for 8x16 objects should be ignored | +| ![failure image](img/failures/misaligned-scx.png) | Misaligned footer text | SCX (FF43) not applied | + +## Per layer decomposition + +This section decomposes (for DMG) the result displayed image per layer: Background (BG), Window (WIN) and Tiles (OBJ), this may help in creating a passing PPU layer by layer. + +### BG + +A ppu that renders only the backgound part of the image should display the following image: + + + +Notice the exclamation mark is already there as part of the background. + +### BG + WIN + +A PPU that renders both window and backgound should display the following image: + + + +The following image highlights in blue the window part: + + + +### BG + WIN + OBJ + +The following image highlights in red the OBJ part of the final targeted image: + + + +Notice that obj tiles are transparent and let below layers appear. + +Wrapping it all, the following image highlights both WIN (in blue) and OBJ (in red) for the final image: + + + +For context the following image highlights in yellow where PPU is disabled (LCDC bit 7 being reset) thus masking the hair: + + ## Credits HÃ¥kon Wium Lie and Ian Hickson for creation of the original diff --git a/img/failures/misaligned-scx.png b/img/failures/misaligned-scx.png new file mode 100644 index 0000000..04ee52e Binary files /dev/null and b/img/failures/misaligned-scx.png differ diff --git a/img/per-layer/bg+win+obj-highlighted.png b/img/per-layer/bg+win+obj-highlighted.png new file mode 100644 index 0000000..97b8c5f Binary files /dev/null and b/img/per-layer/bg+win+obj-highlighted.png differ diff --git a/img/per-layer/bg+win-highlighted+obj-highlighted+lcd-off.png b/img/per-layer/bg+win-highlighted+obj-highlighted+lcd-off.png new file mode 100644 index 0000000..2672fce Binary files /dev/null and b/img/per-layer/bg+win-highlighted+obj-highlighted+lcd-off.png differ diff --git a/img/per-layer/bg+win-highlighted+obj-highlighted.png b/img/per-layer/bg+win-highlighted+obj-highlighted.png new file mode 100644 index 0000000..9401948 Binary files /dev/null and b/img/per-layer/bg+win-highlighted+obj-highlighted.png differ diff --git a/img/per-layer/bg+win-highlighted.png b/img/per-layer/bg+win-highlighted.png new file mode 100644 index 0000000..2c5adde Binary files /dev/null and b/img/per-layer/bg+win-highlighted.png differ diff --git a/img/per-layer/bg+win.png b/img/per-layer/bg+win.png new file mode 100644 index 0000000..d7f4b91 Binary files /dev/null and b/img/per-layer/bg+win.png differ diff --git a/img/per-layer/bg-only.png b/img/per-layer/bg-only.png new file mode 100644 index 0000000..dc657ea Binary files /dev/null and b/img/per-layer/bg-only.png differ