1CDPTH2TGA(1) BSD General Commands Manual CDPTH2TGA(1)
2
4 cdpth2tga — CDPTH depth image to TGA converter
5
7 cdpth2tga [options] cdpth 2da tga
8
10 cdpth2tga converts CDPTH depth information files into common TGA images.
11 CDPTH, Compressed DePTH, are used as depth information for area back‐
12 ground images in BioWare's Nintendo DS game Sonic Chronicles: The Dark
13 Brotherhood.
14
15 Layout-wise, a CDPTH is stored similar to CBGT: cells of 64×64 pixels,
16 compressed using Nintendo's 0x10 LZSS algorithm. Unlike CBGT, though,
17 the cells themselves are not swizzled into 8×8 tiles, and the pixel value
18 in CDPTH is a 16bit integer specifying a depth.
19
20 The width and height of the final image is not stored within the CDPTH
21 file, and has to be provided from the outside, like from the dimensions
22 of the CBGT image, the dimensions of the 2DA file for the CBGT image.
23
24 The depth information is stored as 16-bit values, but only the lower 15
25 bits are used. For conversion into a grayscale image, those 15 bits of
26 grayscale information are further compressed to 8-bit.
27
29 -h
30 --help
31 Show a help text and exit.
32 --version
33 Show version information and exit.
34 cdpth
35 The name of the CDPTH file to read. The CDPTH contains the depth
36 information part of the image.
37 2da
38 The name of the 2DA file to use. The 2DA is necessary to know how
39 many cells are in the CDPTH file.
40 tga
41 The resulting TGA file will be written there.
42
44 Convert a CDPTH+2DA into a TGA:
45
46 $ cdpth2tga a.cdpth a.2da result.tga
47
49 cbgt2tga(1)
50
51 More information about the xoreos project can be found on its website:
52 https://xoreos.org/.
53
55 This program is part of the xoreos-tools package, which in turn is part
56 of the xoreos project, and was written by the xoreos team. Please see
57 the AUTHORS file for details.
58
59BSD July 23, 2015 BSD