Star Trek Judgment Rites BGD: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>DenizOezmen
(added format description)
imported>Ikskoks
No edit summary
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]]

Revision as of 14:54, 21 January 2021

BGD


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.