dpic, todpic – Doom picture decoder and encoder|
dpic [ –f ] [ –p palette ] [ pic ] |
todpic [ –fw ] [ –b bgcol ] [ –p palette ] [ image ]
Dpic reads a doom picture formatted image (default standard input),
converts it to a Plan 9 image(6) and writes it to standard out.
Todpic does the opposite transformation. |
A color palette is needed for the process; its location is set to /mnt/wad/playpal by default. This may be overridden with the –p command line option. Both programs also accept an –f flag to indicate processing a doom 64x64 flat picture.
When encoding a doom picture, x and y offsets are set to the input's top left corner coordinates. The –w flag sets the offsets so as to center the picture when drawn by the doom engine, which is useful for wall patches. The –b option sets the RGB24 color to signal transparent pixels, 0x00FFFF by default.
Create a patch WAD (see wadfs(4)) replacing a sky texture. First,
create a 256x128 image, mirror it, and convert it for use with
games(1), tweak(1), wadfs(4)|
Dpic and todpic first appeared in 9front (July, 2018).|