Specification(仕様) Edit

Ver1との違い Edit

  • Mip Map対応
  • UserDataの対応
  • 拡張領域のデータルールを大幅変更

Tag Rule Edit

English日本語
There is consecutive data whitch is set of tag name, attribute name, and data coressponding to attribute&.タグ名、属性、属性に対応するデータが順番に連続して並んでいる。
All data is included with section named "TEX_TARGA".全ては"TEX_TARGA"というタグ名のセクションで囲まれている。
Tag is unique in a secction.セクションの中でタグ名が重複することはありません

Example(例)

"TEX_TARGA""begin""VERSION""u8"2"PIXEL_FORMAT""string""RGB565""TEX_TARGA""end"
attribute of tag list(タグの属性一覧)
attribute namecommentコメント
beginBegin of section.セクションの始まりを表す。
endEnd of section.セクションの終わりを表す。
u8Unsigned char data.unsigned charデータ。
u16Unsigned short data.unsigned shortデータ。
u32Unsigned long data.unsigned longデータ。
s8Signed char data.Signed charデータ。
s16Signed short data.Signed shortデータ。
s32Signed long data.Signed longデータ。
stringCharacter string. End of string is must NULL.文字列。終端に¥0が存在する。
bytesBinary data.
After attribute name'bytes¥0',There is u32 data that binary data length.
After this, exist binary data array.
バイナリデータの配列。
'bytes¥0'の後にバイナリデータの長さを表すu32のデータが存在する。
その後にバイナリデータの配列が存在する。

Tag Reference(タグリファレンス) Edit

ROOT
name of tag
(タグ名)
must
(必須)
attributecommentコメント
TEX_TARGAYes(section)Root section.ルートとなるSection。
ROOT/TEX_TARGA
name of tag
(タグ名)
must
(必須)
attributecommentコメント
VERSIONYesu8Format version number.Must be 2.フォーマットのバージョン番号。2が入る。
PIXEL_FORMATYesstringRequired pixel format type.
(see Pixel format list)
ピクセルフォーマットを示す文字列。
(詳しくはPixel format list
SRC_DATANobytesBefore converted pixel data.減色前のピクセルデータ。
MIP_MAPNo(section)Mip map data section.ミップマップのデータセクション。
USER_DATANo(section)User data section. ※1ユーザーデータセクション。※1
※1 Format is free.(フォーマットは決まっていません。自由に使用していただけます。)
ROOT/TEX_TARGA/MIP_MAP
name of tag
(タグ名)
must
(必須)
attributecommentコメント
MAX_LEVELYesu8Mip map max level.Grater equal 1.ミップマップ最大レベル。1以上。
LEVEL_*Yes(section)Mip map level section.
Ex. level1 is "LEVEL_1"
ミップマップの1つのレベルのセクション。
例:レベル1なら"LEVEL_1"
Mip map image size must be involution of 2。(MipMapのイメージサイズは2のべき乗である必要がある)
ROOT/TEX_TARGA/MIP_MAP/LEVEL_*
name of tag
(タグ名)
must
(必須)
attributecommentコメント
TEX_DATAYesbytesMip map image data.ミップマップイメージデータ。
SRC_DATANobytesMip map image data.
(Before color reduction image data)
ミップマップデータ。減色前のデータが並んでいる。

Pixel format list

namebits of elementsbits per pixel
RGBALI
Alpha (1,1,1,A) [tga bpp = 32]
A10001001
A20002002
A40004004
A80008008
Luminance (L,L,L,1) [tga bpp = 24]
L1LLL0101
L2LLL0202
L4LLL0404
L8LLL0808
LuminanceAlpha (L,L,L,A) [tga bpp = 32]
LA1LLL1102
LA2LLL2204
LA4LLL4408
LA8LLL88016
Intensity (I,I,I,I) [tga bpp = 32]
I1IIII011
I2IIII022
I4IIII044
I8IIII088
RGB (R,G,B,1) [tga bpp = 24]
RGB56556500016
RGB888800024
RGBA (R,G,B,A) [tga bpp = 32]
RGBA11111004
RGBA22222008
RGBA444440016
RGBA666660024
RGBA888880032
RGBA_S3TC [tga bpp = 32]
RGBA_S3TC_DXT1????004
RGBA_S3TC_DXT3????008
RGBA_S3TC_DXT5????008

リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Tue, 25 May 2010 09:55:00 JST (5078d)