mirror of
https://github.com/TheBozos/Steambot_Chronicles_Recomp.git
synced 2026-11-30 14:22:23 -10:00
On M_19_03 (the seafront) the camera at (120.5, -4.5, 10) sits inside one of the level's untextured boxes (prim 0x6792b0 at (120, 0, -30), 100 x 10 x 90). The IMD programs cull back faces in the object's space (L_2250 / L_1250), so the PS2 draws nothing of it from inside. The port compared screen areas and kept every triangle with a corner behind the camera, so the box's inside faces covered everything below the horizon, the player too. The cull (and the outline pass's back-face pick) now takes the determinant of the corners' (x, y, w): the screen area times the three w, whose sign holds behind the camera. Triangles wholly in front of the camera are judged as before. Compared with PCSX2 from the same start: tools/pcsx2/warp_opening.pnach makes New Game load 19:3:0, and SBC_WARP_OPENING does the same in the port. Still different there: the platform top's tint and a paved surface past its edge (docs/RECOMP_NOTES.md). Diagnostics: SBC_3D_PICK=<kick>:<x>:<y> (meshes over a pixel, with w), SBC_TRACE_OBJECTS now prints the camera and the matrices, SBC_TRACE_VERTS, SBC_TRACE_TEXTURE_FAILS, FRAME in the untextured trace. README screenshot. Co-authored-by: Thomas Martin <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>