Star Trek Judgment Rites BGD: Difference between revisions
Jump to navigation
Jump to search
imported>DenizOezmen (added format description) |
imported>Ikskoks No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 35: | Line 35: | ||
* The image data, which is expressed as palette lookup values, is ordered from the top left to the bottom right, line-wise.<br> | * The image data, which is expressed as palette lookup values, is ordered from the top left to the bottom right, line-wise.<br> | ||
[[Category:File Format]] | |||
Latest revision as of 14:54, 21 January 2021
BGD
- Format Type : Bitmap image
- Endian Order : Little Endian
General conventions
First, let the following be a convention throughout this document:
uint8 {1} - Red
uint8 {1} - Green
uint8 {1} - Blue
shall be called the RGB type.
Format Specifications
The BGD format used in Judgment Rites is quite similar to the BMP format found in the 25th Anniversary game. Actually, BGD files are just BMP files with prepended palette data:
// BGD header
- RGB {768} - 256 RGB values as palette
- uint16 {2} - X coordinate offset
- uint16 {2} - Y coordinate offset
- uint16 {2} - Image width
- uint16 {2} - Image height
- byte {X} - Image data
Notes and Comments
- The image data, which is expressed as palette lookup values, is ordered from the top left to the bottom right, line-wise.