This is the working model from the video "How does Wolfenstein 3D turn a flat map into 3D?".
What it does: for each column of the screen, it sends one line across the map, measures the distance to the wall, and draws a vertical line that is taller when the wall is near and shorter when it is far (ray casting).
With "Correction off", the slanted length is used as is, so straight walls look curved. The line hops from one grid line to the next like stepping stones, so only a few checks are needed.
AI was used to make the diagrams and code. No game footage is used. Sources are in the video description.
This is our own model, used in the video "How does Wolfenstein 3D turn a flat map into 3D?" on the YouTube channel "How Games Are Made" (ゲームのつくり方の歴史). AI was used to make the diagrams and code, and the facts were checked against sources by the creator. No game footage or official assets are used.
Click squares on the map to place walls, then walk around with the arrow keys. "Show one column" shows which line on the map one column of the screen comes from. Widening the field of view draws the same wall smaller, and switching "Correction on / off" shows the failure where straight walls look curved, and how to fix it.
You do not need a 3D map. Just "measure the distance to the wall for each column and draw a line whose height depends on that distance", and a flat map becomes a screen that looks 3D. Try placing walls differently and compare how the screen changes.