OBD:TXMP: Difference between revisions
Jump to navigation
Jump to search
<== TXMP : Texture Map ==>
General file
<== TXMP : Texture Map ==>
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File | [[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> TXMP | ||
<CENTER>[[OBD:TXMB|<==]] <FONT SIZE=5>TXMP | <CENTER>[[OBD:TXMB|<==]] <FONT SIZE=5>TXMP : Texture Map</FONT> [[OBD:TxtC|==>]]<BR> | ||
<FONT SIZE=2> | <FONT SIZE=2>[[OBD:File types/General|General]] file</FONT></CENTER> | ||
Line 11: | Line 11: | ||
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | {| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | ||
|- ALIGN=CENTER BGCOLOR="#FFDDBB" | |- ALIGN=CENTER BGCOLOR="#FFDDBB" | ||
| WIDTH=15% | <B> | | WIDTH=15% | <B>Raw hex</B> | ||
| WIDTH=15% | <B>Translation</B> | | WIDTH=15% | <B>Translation</B> | ||
| WIDTH=70% | <B>Meaning</B> | | WIDTH=70% | <B>Meaning</B> | ||
Line 33: | Line 33: | ||
| BGCOLOR="#FF00FF" | 10 | | BGCOLOR="#FF00FF" | 10 | ||
| 16 | | 16 | ||
| ALIGN=LEFT | color depth (= 16 | | ALIGN=LEFT | color depth (= 16 bits) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8C8" | 00 00 | | BGCOLOR="#FFC8C8" | 00 00 | ||
Line 41: | Line 41: | ||
| BGCOLOR="#FFFFC8" | 80 00 | | BGCOLOR="#FFFFC8" | 80 00 | ||
| 128 | | 128 | ||
| ALIGN=LEFT | width (= 128 | | ALIGN=LEFT | width (= 128 pixels) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFFFC8" | 80 00 | | BGCOLOR="#FFFFC8" | 80 00 | ||
| 128 | | 128 | ||
| ALIGN=LEFT | height (= 128 | | ALIGN=LEFT | height (= 128 pixels) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFC8" | 01 00 00 00 | | BGCOLOR="#C8FFC8" | 01 00 00 00 | ||
| 1 | | 1 | ||
| ALIGN=LEFT | store type = 1 (uncompressed, without alpha) | | ALIGN=LEFT | store type = 1 (uncompressed, without alpha blending) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 00 00 00 00 | | BGCOLOR="#C8FFFF" | 00 00 00 00 | ||
| not used | | not used | ||
| ALIGN=LEFT | link to a [[OBD:TXAN|TXAN]] file; only used if the texture is the first pic of | | ALIGN=LEFT | link to a [[OBD:TXAN|TXAN]] file; only used if the texture is the first pic of a texture animation | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| not used | | not used | ||
| ALIGN=LEFT | link to a TXMP file; only used in connection with | | ALIGN=LEFT | link to a TXMP file; only used in connection with vertex shading effects | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FFC800" | 20 00 00 00 | | BGCOLOR="#FFC800" | 20 00 00 00 | ||
| 32 | | 32 | ||
| ALIGN=LEFT | at | | ALIGN=LEFT | address at which the texture is stored in the raw file (on PC; null on Mac and PC demo) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C800C8" | 00 00 00 00 | | BGCOLOR="#C800C8" | 00 00 00 00 | ||
| 0 | | 0 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | address at which the texture is stored in the sep file (on Mac and PC demo; null on PC) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C87C64" | AD DE | | BGCOLOR="#C87C64" | AD DE | ||
Line 71: | Line 71: | ||
| ALIGN=LEFT | not used | | ALIGN=LEFT | not used | ||
|} | |} | ||
;[http://www.answers.com/topic/mipmap MIP mapping] (MIP stands for "multum in parvo") | |||
:A texture mapping technique that uses multiple texture maps, or MIP maps. Each MIP map is half the size of the first one, providing several texture maps for various levels of depth. | |||
;[http://www.answers.com/topic/alpha-blending?method=22 Alpha blending] | |||
:In computer graphics, the combining of the alpha channel with other layers in an image in order to show translucency. | |||
:The alpha channel is an additional eight bits used with each pixel in a 32-bit graphics system that can represent 256 levels of translucency. | |||
:(here, the base color depth is 16 bits; and there are only 4 bits for the alpha channel, so only 16 levels of transparency. [[User:Geyser|geyser]]) | |||
You can edit the raw/sep file manually (although we recommend [[OBD:OUP| Oni Un/Packer]]) : there's a tutorial [http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/texture/texture.htm here] | |||
Line 90: | Line 98: | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#00FFFF" | 1C | | BGCOLOR="#00FFFF" | 1C | ||
| unknown ( | | unknown (used for skyboxes, works with 00 too) | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| ROWSPAN=4 | Color depths | | ROWSPAN=4 | Color depths | ||
Line 100: | Line 108: | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FF00FF" | 14 | | BGCOLOR="#FF00FF" | 14 | ||
| 16 bit + | | 16 bit + 4 bits for the alpha channel | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#FF00FF" | 20 | | BGCOLOR="#FF00FF" | 20 | ||
Line 107: | Line 115: | ||
| ROWSPAN=8 | Store types | | ROWSPAN=8 | Store types | ||
| BGCOLOR="#C8FFFF" | 00 | | BGCOLOR="#C8FFFF" | 00 | ||
| | | uncompressed, with alpha blending | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 01 | | BGCOLOR="#C8FFFF" | 01 | ||
| | | uncompressed, without alpha blending | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 02 | | BGCOLOR="#C8FFFF" | 02 | ||
Line 119: | Line 127: | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 08 | | BGCOLOR="#C8FFFF" | 08 | ||
| 32 bit uncompressed ( | | 32 bit uncompressed (used for skyboxes) | ||
|- VALIGN=TOP BGCOLOR="#FFEEDD" | |- VALIGN=TOP BGCOLOR="#FFEEDD" | ||
| BGCOLOR="#C8FFFF" | 09 | | BGCOLOR="#C8FFFF" | 09 | ||
Line 135: | Line 143: | ||
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/txmp_ex1.gif | {|cellpadding=10 | ||
|+Pixel arrangement | |||
!how it's stored | |||
!how you'll see it | |||
|- | |||
|http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/txmp_ex1.gif | |||
|http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/txmp_ex2.gif | |||
|} | |||
<HR> | <HR> | ||
<CENTER>[[OBD:TXMB|<==]] <B>TXMP | <CENTER>[[OBD:TXMB|<==]] <B>TXMP : Texture Map</B> [[OBD:TxtC|==>]]</CENTER> | ||
<HR> | <HR> | ||
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File | [[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> TXMP |
Revision as of 16:01, 24 March 2006
Main Page >> Oni Binary Data >> File types >> TXMP
General file
Raw hex | Translation | Meaning |
01 1F 00 00 | 31 | 00031-rl_1.TXMP |
01 00 00 06 | 3 | level 3 |
rl_1 | name of the texture | |
00 | 0 | MIP-mapping option; the following options are possible: 00 - off |
10 | 16 | color depth (= 16 bits) |
00 00 | 0 | unknown |
80 00 | 128 | width (= 128 pixels) |
80 00 | 128 | height (= 128 pixels) |
01 00 00 00 | 1 | store type = 1 (uncompressed, without alpha blending) |
00 00 00 00 | not used | link to a TXAN file; only used if the texture is the first pic of a texture animation |
00 00 00 00 | not used | link to a TXMP file; only used in connection with vertex shading effects |
20 00 00 00 | 32 | address at which the texture is stored in the raw file (on PC; null on Mac and PC demo) |
00 00 00 00 | 0 | address at which the texture is stored in the sep file (on Mac and PC demo; null on PC) |
AD DE | dead | not used |
- MIP mapping (MIP stands for "multum in parvo")
- A texture mapping technique that uses multiple texture maps, or MIP maps. Each MIP map is half the size of the first one, providing several texture maps for various levels of depth.
- Alpha blending
- In computer graphics, the combining of the alpha channel with other layers in an image in order to show translucency.
- The alpha channel is an additional eight bits used with each pixel in a 32-bit graphics system that can represent 256 levels of translucency.
- (here, the base color depth is 16 bits; and there are only 4 bits for the alpha channel, so only 16 levels of transparency. geyser)
You can edit the raw/sep file manually (although we recommend Oni Un/Packer) : there's a tutorial here
Option | Value | Meaning |
MIP-mapping types | 00 | off |
01 | on | |
11 | unknown | |
1C | unknown (used for skyboxes, works with 00 too) | |
Color depths | 10 | 16 bit |
12 | 16 bit + shade vertex | |
14 | 16 bit + 4 bits for the alpha channel | |
20 | 32 bit | |
Store types | 00 | uncompressed, with alpha blending |
01 | uncompressed, without alpha blending | |
02 | unknown | |
03 | unknown | |
08 | 32 bit uncompressed (used for skyboxes) | |
09 | compressed | |
0A | unknown | |
0B | unknown |
Below you can see the pictures for this example. The first picture shows how its stored in Oni, the second how you'll see it in the game.
how it's stored | how you'll see it |
---|---|
Main Page >> Oni Binary Data >> File types >> TXMP