708
edits
(→Store type: anthing else) |
No edit summary |
||
Line 82: | Line 82: | ||
:unknown | :unknown | ||
;0x04 | ;0x04 | ||
:Enabled for skyboxes | :Disable wrapping for the U coordinate of the texture. | ||
:Enabled for skyboxes, animations and pretty much anything else that does not need texture wrapping. | |||
;0x08 | ;0x08 | ||
: | :Disable wrapping for the V coordinate of the texture. See above. | ||
;0x10 | ;0x10 | ||
:This one is enabled for env-mapped textures and env maps themselves. | :This one is enabled for env-mapped textures and env maps themselves. | ||
:Also enabled for skyboxes? | :Also enabled for skyboxes? | ||
;0x20 | ;0x20 | ||
:if | :used a runtime (marks if a texture name has been allocate for this TXMP or not) | ||
;0x40 | ;0x40 | ||
:unknown | :unknown - animation related | ||
;0x80 | ;0x80 | ||
:unknown | :unknown - animation related, only used by an "electric arc" texture, could mean to play frames of the animation in random order | ||
;Anything else? | ;Anything else? | ||
:There aren't so many values: 0, 1, 17, 28. It's hard to decide against an ID. | :There aren't so many values: 0, 1, 17, 28. It's hard to decide against an ID. | ||
Line 114: | Line 115: | ||
;0x10 | ;0x10 | ||
:On if there are 16 bits per uncompressed pixel (color depth etc may vary) ==> no changes ==> Oni reads it directly from the raw file | :On if there are 16 bits per uncompressed pixel (color depth etc may vary) ==> no changes ==> Oni reads it directly from the raw file | ||
:It appears to me that this bit means that the byte order of texture raw data must be swaped, it does not have anything to do with the number of bits which is encoded in the texture format anyway. [[User:Neo|Neo]] | |||
;0x20 | ;0x20 | ||
:On if there are 32 bits per uncompressed pixel (color depth etc may vary) (or may they?) | :On if there are 32 bits per uncompressed pixel (color depth etc may vary) (or may they?) | ||
:IIRC, that bit is never used in Oni. If you use it, Oni chrashes. | :IIRC, that bit is never used in Oni. If you use it, Oni chrashes. | ||
:This one appears to be used only at runtime to mark if the texture has been loaded or not (loading basically means to convert the offset to texture data in the raw file to a memory address, that's why Oni crashes if you set this bit, it thinks that the texture is already loaded and it uses the file offset as a memory pointer which is not valid) [[User:Neo|Neo]] | |||
;0x40 | ;0x40 | ||
:Looks like TXAN looping ON/OFF. Somebody please check somehow ^^ | :Looks like TXAN looping ON/OFF. Somebody please check somehow ^^ | ||
Line 132: | Line 135: | ||
Data per pixel, uncompressed unless mentioned otherwise | Data per pixel, uncompressed unless mentioned otherwise | ||
;0 | ;0 | ||
:(4,4,4) RGB, 4 bits extra (interpreted as alpha or env map blending) | :(4,4,4) RGB, 4 bits extra (interpreted as alpha or env map blending), equivalent to GL_RGBA4 OpenGL image format | ||
;1 | ;1 | ||
:(5,5,5) RGB and 1 bit extra, | :(5,5,5) RGB and 1 bit extra, the extra bit is simply ignored, equivalent to GL_RGB5 OpenGL image format | ||
;2 | ;2 | ||
:(5,5,5) RGB, 1 bit extra | :(5,5,5) RGB, 1 bit extra (interpreted as alpha or env map blending), equivalent to GL_RGB5_A1 OpenGL image format | ||
;8 | ;8 | ||
:(8,8,8) RGB | :(8,8,8) RGB, 8 bits extra that are ignored, equivalent to GL_RGB OpenGL image format | ||
;9 | ;9 | ||
:compressed (four times) (algorithm detailed elsewhere) | :compressed (four times) (algorithm detailed elsewhere), equivalent to GL_COMPRESSED_RGB_S3TC_DXT1_EXT OpenGL compressed image format | ||
;Anything else? | ;Anything else? | ||
:<S>No</S>. Uups... I mean, yes. | :<S>No</S>. Uups... I mean, yes. |
edits