Crimson
Desert
Game of Thrones dragons rebuilt inside a game that never had them, by reverse engineering a mesh format nobody had documented.
The problem
The files I pulled apart hold no vertex positions.
Six quantised bytes per vertex and a bounding box per submesh are all there is; the shader rebuilds the rest at runtime. I found that by tracing one draw in PIX.
I wanted the dragons from Game of Thrones in the game, which meant understanding the format first.
What I built
A codec, and the patchers around it.
From the finding came a codec that decodes and re-encodes the format, and patchers that redirect assets to a staging directory so the game's own files are never touched.
The repo also keeps the approaches that looked right and were wrong, so nobody repeats them. The C++ loader that swaps the assets in is a separate project.
A bounding box and a grid.


Let's see how we applied agile methodology to a dragon.
We did not. We traced one draw call for eleven hours.
Underneath
Read the shader, rebuild the maths.
The shader rebuilds each position at runtime from six quantised bytes per vertex and a bounding box per submesh. The codec is written to match what the trace showed.
CPU replays of the shader stages, checked against the capture until the residual was explained, are what the codec stands on.
What the game shows
A dragon in flight, drawn by the game renderer
What the shader rebuilds
Positions, from six quantised bytes and a bounding box
What the file holds
Quantised coordinates and a box per submesh, no positions
What the loader swaps
Assets redirected to a staging directory, the game files untouched