XML:TXMP: Difference between revisions
Paradox-01 (talk | contribs) m (can't be mentioned enough ...) |
Paradox-01 (talk | contribs) (adding an image demonstrating problematic transparency effects) |
||
| Line 67: | Line 67: | ||
|valign=top| flag | |valign=top| flag | ||
| ShieldEffect, InvisibilityEffect and DaodanEffect are special flags, they can only be used for TXMPshield, TXMPinvis and TXMPDAODAN_SHIELD. The usage of these textures is hardcoded. | | ShieldEffect, InvisibilityEffect and DaodanEffect are special flags, they can only be used for TXMPshield, TXMPinvis and TXMPDAODAN_SHIELD. The usage of these textures is hardcoded. | ||
[[Image:problems_with_AdditiveBlend_and_regular_transparency.jpg|thumb|200px|right|Caution with transparent textures.]] | |||
: None | : None | ||
Revision as of 20:12, 24 August 2013
| TXMP : Texture Map |
| |
|---|---|---|
| XML
TXMB << Other file types >> TxtC |
general notes
- The xml code on this page was tested with onisplit v0.9.61.0
- Textures' x and y (pixel) dimension must be power of two: 512, 256, 128, 64, etc.
- Hight and width don't need to be equal, e.g. you can use 128x256.
TXMP subtypes
| standard texture | animated texture | reflective texture |
|---|---|---|
<?xml version="1.0" encoding="utf-8"?>
<Oni>
<Texture>
<Flags>...</Flags>
<Format>...</Format>
<Image>...</Image>
</Texture>
</Oni>
|
<?xml version="1.0" encoding="utf-8"?>
<Oni>
<Texture>
<Flags>...</Flags>
<Format>...</Format>
<Speed>...</Speed>
<Image>...</Image>
<Image>...</Image>
</Texture>
</Oni>
|
<?xml version="1.0" encoding="utf-8"?>
<Oni>
<Texture>
<Flags>...</Flags>
<Format>...</Format>
<EnvMap>...</EnvMap>
<Image>...</Image>
</Texture>
</Oni>
|
| XML tag | content type | description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <?xml version="1.0" encoding="utf-8"?> | float, flag | Don't change this. | ||||||||||||||||||||||||||||||||
| <Oni> | - | |||||||||||||||||||||||||||||||||
| <Texture> | - | |||||||||||||||||||||||||||||||||
| <Flags> | flag | ShieldEffect, InvisibilityEffect and DaodanEffect are special flags, they can only be used for TXMPshield, TXMPinvis and TXMPDAODAN_SHIELD. The usage of these textures is hardcoded.
| ||||||||||||||||||||||||||||||||
| <Format> | flag | ARGB formats are used for reflective textures. (A - Alpha; R - Red; G - Green; B - Blue)
ARGB8888 can be used only if you use an updated engine (which comes with AE). (Mac users also need to swap the color channels.)
| ||||||||||||||||||||||||||||||||
| <Speed> | integer | This tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image> tags. | ||||||||||||||||||||||||||||||||
| <EnvMap> | link | TXMPname (file suffix .oni/.xml not allowed)
This tag is used if xml file is meant to create an reflective texture. File suffixes like .tga or .oni is not used in the EnvMap link. | ||||||||||||||||||||||||||||||||
| <Image> | link | Choose between tga/png/dds.
| ||||||||||||||||||||||||||||||||
