wad2map
is a Rust program written to convert Doom maps into Scalable Vector Graphic files. Credits to jasonsperske's Python script for the inspiration.
To install, use the following set of instructions:
git clone https://github.com/sleibrock/wad2map && cd wad2map
cargo install
You need to use Rust's Cargo tool, so make sure you install Rust with Rustup.
wad2map
accepts a path to a WAD file and will render all maps in the WAD into a new folder the same name as the WAD. wad2map
also accepts multiple WADs at once for batch rendering.
If you wanted to generate all of Doom 1's maps into SVG format, simply call the following instruction:
wad2map doom.wad
To run wad2map
on a list of files, simply list each file sequentially.
wad2map doom.wad doom2.wad heretic.wad ...
wad2map
exports all levels in Scalable Vector Graphics format to preserve quality when scaling the image upwards. In order to convert the SVG to something like Portable Network Graphics (PNG), you can use the standard Linux tool convert
to convert a map to PNG format.
$ convert doom.wad.maps/E1M1.svg ./E1M1.png
Optionally you can use GIMP or Inkscape to also do similar things.
You can see examples in the examples directory which contains different wads that I've tested (all IWADs, some PWADs).
Here is a list of all the wads that I've tested wad2map
against. The list includes IWADs (id Software or otherwise created wads) and PWADs (player-made wads). In order to load PWADs like aoddoom2
or scythe2
, you need the core DOOM2.WAD
file, or you need to use the total replacement FreeDoom wad. Links are included to the store pages for purchasing the games.