Cite as
psx-spx
Original
https://psx-spx.consoledev.net/
Pinned
psx-spx/psx-spx.github.io @ 6d7d1bc106a7e0b616b0330fe58401ab1ba57f0f
Accessed
2026-11-19
Licence
None. The repository has no license file, and its home page (docs/index.md) says "no copyright or license have been properly acquired to republish and alter this document". Quoted briefly.
Credit
Martin "nocash" Korth, who wrote the original psx-spx document (problemkaputt.de/psx-spx.htm), built on the earlier GPU.TXT and GTE.TXT by doomed and others listed in docs/aboutcredits.md; and the contributors to psx-spx/psx-spx.github.io, who converted it to Markdown and keep correcting it.
Notes
The standard reference for the PlayStation's hardware, kept as Markdown on the `stable` branch and published at psx-spx.consoledev.net. Its home page says the document "isn't a clean room reverse engineering project". Used for the GTE's depth-cue instructions and far color (the GTE chapter), and for the GPU's dithering and its lack of perspective-correct texturing (the GPU chapter).

Cited on

Claims (4)

In the US build, the routine that draws map chunks and character meshes, with fog on, skips a face whose farthest corner is deeper than the far distance (the fog distance plus one unit) or not in front of the camera. In the draw mode without directional lighting, it also skips a face that the GTE's normal-clip test finds facing away (tested on the first three corners, then again after loading the fourth), and keeps a face only if at least one corner's screen x is below half the screen width; there is no matching test on the other edges. Each face kept is drawn twice on the same four screen corners: an untextured, Gouraud-shaded quad whose corner colors are the fog color scaled by each corner's fog amount, and the textured face, whose corner colors are its lighting scaled by what the fog leaves. Usually the textured face is marked semi-transparent and linked so that it draws after the fog quad; a face with bit 15 of its flags set is linked the other way round, with the fog quad semi-transparent over it. In the lit draw modes with a black fog, the routine builds only the textured face, its color darkened by the fog amount. Which semi-transparency mode a face uses comes from its own texture-page bits, which the routine copies from the mesh data.docs/geometrytransformationenginegte.md L557–558Code
The PlayStation's geometry coprocessor (GTE) has depth-cue instructions that move a color toward a far color (FC) by an interpolation value IR0 (0 to 1): DPCS for a single color, and DCPL for a color first multiplied by a light value. Its perspective transform (RTPS, RTPT) sets IR0 from each vertex's screen depth through two registers, DQA (a coefficient) and DQB (an offset).docs/geometrytransformationenginegte.md L90–94docs/geometrytransformationenginegte.md L418–421docs/geometrytransformationenginegte.md L548–558Wiki
The PlayStation's GPU draws in 15-bit color (5 bits per channel). With its dither flag on, it adds an offset from −4 to +3, set by the pixel's place in a 4×4 block, to each 8-bit color before cutting it to 5 bits, and only on polygons that are Gouraud-shaded or have their texture modulated by a color.docs/graphicsprocessingunitgpu.md L382docs/graphicsprocessingunitgpu.md L1401–1409docs/graphicsprocessingunitgpu.md L220–221Wiki
The PlayStation's GPU interpolates texture coordinates and Gouraud colors linearly across a polygon's screen area, with no perspective correction, because it gets no depth for the corners: textures on polygons seen at an angle look distorted, most of all those with straight lines, and most in the middle of large polygons. Splitting large polygons into smaller ones reduces the error.docs/graphicsprocessingunitgpu.md L1368–1387docs/graphicsprocessingunitgpu.md L1388–1390Wiki