1CBGT2TGA(1)               BSD General Commands Manual              CBGT2TGA(1)
2

NAME

4     cbgt2tga — CBGT image to TGA converter
5

SYNOPSIS

7     cbgt2tga [options] cbgt pal 2da tga
8

DESCRIPTION

10     cbgt2tga converts CBGT image files into common TGA images.  CBGT, Com‐
11     pressed BackGround Tiles, are used as area background images in BioWare's
12     Nintendo DS game Sonic Chronicles: The Dark Brotherhood.
13
14     Internally, a CBGT consists of a collection of 64×64 pixel cells, divided
15     into tiles of 8×8 pixels.  Each cell is compressed using Nintendo's 0x10
16     LZSS algorithm.  Moreover, PAL files with the same name as the CBGT file
17     contain the palette data, and 2DA files with the same name yet again con‐
18     tain the mapping of palette indices onto cells.
19
20     The width and height of the final image is not stored within the CBGT
21     file, but the palette mapping 2DA does contain the number cells in X and
22     Y direction, since it stores the palette indices in a two-dimensional
23     array of those dimensions.  Therefore, multiplying the number of columns
24     and rows in said 2DA by 64 yields the width and height, respectively, of
25     the final image.
26

OPTIONS

28     -h
29     --help
30         Show a help text and exit.
31     --version
32         Show version information and exit.
33     cbgt
34         The name of the CBGT file to read.  The CBGT contains the pixel
35         graphics part of the image.
36     pal
37         The name of the PAL file to use.  The PAL file contains the palette
38         part of the image.
39     2da
40         The name of the 2DA file to use.  The 2DA file contains information
41         on which palette to use for each part of the CBGT, and on how many
42         parts are in the CBGT in the first place.
43     tga
44         The resulting TGA file will be written there.
45

EXAMPLE

47     Convert a CBGT+PAL+2DA into a TGA:
48
49           $ cbgt2tga a.cbgt a.pal a.2da result.tga
50

SEE ALSO

52     cdpth2tga(1), ncgr2tga(1)
53
54     More information about the xoreos project can be found on its website:
55     https://xoreos.org/.
56

AUTHORS

58     This program is part of the xoreos-tools package, which in turn is part
59     of the xoreos project, and was written by the xoreos team.  Please see
60     the AUTHORS file for details.
61
62BSD                              July 23, 2015                             BSD
Impressum