KTX Image: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 5: Line 5:




=== Format Specifications ===  
=== Format Specifications (KTX v1.1) ===  


<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
Line 51: Line 51:


Full file format description can be found in official documentation [https://web.archive.org/web/20140219231709/https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/ here].
Full file format description can be found in official documentation [https://web.archive.org/web/20140219231709/https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/ here].
=== Format Specifications (KTX v2.0) ===
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
</pre>
</div>


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  

Revision as of 00:15, 15 January 2021

KTX

  • Format Type : Image
  • Endian Order : Little Endian or Big Endian


Format Specifications (KTX v1.1)

// KTX 1.1 texture 
// Khronos Texture file format


// header (64 bytes)
12 bytes - magic  // "AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A"  (KTX 11)
4 bytes (uint32) - endianess  // "01 02 03 04" - little endian
                              // "04 03 02 01" - big endian
4 bytes (uint32) - gl type  // can be "0"
4 bytes (uint32) - type size  // "1"
4 bytes (uint32) - gl format  // "0"
4 bytes (uint32) - gl internal format
4 bytes (uint32) - gl base internal format
4 bytes (uint32) - pixel width
4 bytes (uint32) - pixel height
4 bytes (uint32) - pixel depth
4 bytes (uint32) - number of array elements
4 bytes (uint32) - number of faces
4 bytes (uint32) - number of mipmap levels
4 bytes (uint32) - size of key value data


// key and value data
num_of_key_value_entries *
{
   4 bytes (uint32) - size of key value entry
   x bytes - key value entry  // e.g. "KTXorientation.S=r,T=d,R=i"
   x bytes - padding
}


num_of_mipmap_levels *
{
   4 bytes (uint32) - image data size
   x bytes - image data
}

x bytes - padding

Full file format description can be found in official documentation here.


Format Specifications (KTX v2.0)


MultiEx BMS Script

Not written yet.

Notes and Comments

  • This is KTX image file format.

Compatible Programs