XML:TXMP: Difference between revisions
m (speaking of ads, why not place some animated ones in-game as a mod, to show off the GUI's TXAN creation? and why isn't this tool on the Depot? :-p) |
Paradox-01 (talk | contribs) (Mr. B's Dance Troupe takes a break, they are on Slurm withdrawal) |
||
Line 131: | Line 131: | ||
|valign=top| integer | |valign=top| integer | ||
| This tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image> tags. | | This tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image> tags. | ||
Let's say Speed is set to 7, then every 7th frame will change the image. | |||
|- | |- | ||
|valign=top| <EnvMap> | |valign=top| <EnvMap> | ||
Line 140: | Line 142: | ||
|valign=top| <Image> | |valign=top| <Image> | ||
|valign=top| link | |valign=top| link | ||
| Choose between tga/png/dds. | | Choose between tga/png/dds/jpg. | ||
: TXMP''name''.tga | : TXMP''name''.tga | ||
: TXMP''name''.png | : TXMP''name''.png | ||
: TXMP''name''.dds | : TXMP''name''.dds | ||
: TXMP''name''.jpg | |||
|} | |} | ||
===Animated textures=== | ===Animated textures=== | ||
[[Image:Animated_level_texture_with_and_without_AdditiveBlend.jpg|200px|thumb|Animated billboard]] | |||
[[Image:Animated_level_texture.gif|200px|thumb|Animated billboard GIF]] | |||
It requires some tiresome handwork to write an XML file with a large number of <Image> tags. | It requires some tiresome handwork to write an XML file with a large number of <Image> tags. | ||
[https://dl.dropboxusercontent.com/u/139715/OniGalore/Simple_OniSplit_GUI_TXMP_animated.png Skip that work] by using [http://paradox.oni2.net/programs/Simple_OniSplit_GUI.zip Simple OniSplit GUI.] | [https://dl.dropboxusercontent.com/u/139715/OniGalore/Simple_OniSplit_GUI_TXMP_animated.png Skip that work] by using [http://paradox.oni2.net/programs/Simple_OniSplit_GUI.zip Simple OniSplit GUI.] ([https://dl.dropboxusercontent.com/u/139715/OniGalore/Simple_OniSplit_GUI_TXMP.png Normal TXMP creation] is also supported.) | ||
Notes of warning: | |||
# For animated textures, OniSplit can only import TGA files. | |||
# AdditiveBlend should only be used on things that are supposed to glow otherwise you might think that it ignores vertex shading. In case of the billboard at the right, that was an improvement. Now it's a transparent OLED billboard. | |||
[ | [[Creating_image_animations|HERE]] are a few information on how to create an animated texture within a graphics program. | ||
{{XML}} | {{XML}} |
Revision as of 15:14, 25 August 2016
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.
- The camera can look at 2049 transparent textures at once, one more and Oni crashes.
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). (Oni running on a modern Intel Mac uses the same texture format as Windows Oni, but users of older PowerPC Macs will need to swap the color channels of a texture or else it will appear inverted.)
| ||||||||||||||||||||||||||||||||
<Speed> | integer | This tag is used if xml file is meant to create an animated texture. In that case you use multiple <Image> tags.
Let's say Speed is set to 7, then every 7th frame will change the image. | ||||||||||||||||||||||||||||||||
<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/jpg.
|
Animated textures
It requires some tiresome handwork to write an XML file with a large number of <Image> tags.
Skip that work by using Simple OniSplit GUI. (Normal TXMP creation is also supported.)
Notes of warning:
- For animated textures, OniSplit can only import TGA files.
- AdditiveBlend should only be used on things that are supposed to glow otherwise you might think that it ignores vertex shading. In case of the billboard at the right, that was an improvement. Now it's a transparent OLED billboard.
HERE are a few information on how to create an animated texture within a graphics program.