Jump to content

XML:TXMP: Difference between revisions

18 bytes removed ,  20 November 2023
m
link fix
m (→‎General notes: OniSplit does allow non-p.o.t. textures, so adjusting note)
m (link fix)
 
(One intermediate revision by one other user not shown)
Line 125: Line 125:
|valign=top| <EnvMap>
|valign=top| <EnvMap>
|valign=top| link
|valign=top| link
| TXMP''name'' (without suffix)
|  
:TXMP''name'' (without suffix)


This tag is used if the XML file is meant to create a reflective texture. File suffixes like .tga or .oni are not used in the EnvMap link.
This tag is used if the XML file is meant to create a reflective texture. File suffixes like .tga or .oni are not used in the EnvMap link.
Line 132: Line 133:
|valign=top| link
|valign=top| link
|
|
: TXMP''name''.tga
:TXMP''name''.tga


Creating a texture from a JPEG, PNG or DDS is only supported via the command line's "-create:txmp" argument.
Creating a texture from a JPEG, PNG or DDS is only supported via the command line's "-create:txmp" argument.
Line 141: Line 142:
[[Image:Animated_level_texture.gif|200px|thumb|Original animated texture.]]
[[Image:Animated_level_texture.gif|200px|thumb|Original animated texture.]]


It's tiresome to manually create an XML file with a large number of <Image> tags. Skip that work by using [http://paradox.oni2.net/programs/Simple_OniSplit_GUI.zip Simple OniSplit GUI]. (Normal TXMP creation is also supported.)
It's tiresome to manually create an XML file with a large number of <Image> tags. Skip that work by using [http://mods.oni2.net/node/332 Simple OniSplit GUI]. (Normal TXMP creation is also supported.)


Some advice:
Some advice:
# When using XML to import, OniSplit can only accept TGA images.
# When using XML to import, OniSplit can only accept TGA images.
# AdditiveBlend should only be used on things that are supposed to glow — otherwise you might think that the object ignores its vertex shading. In the case of the billboard at the right, this was an improvement; now it's a transparent OLED billboard.
# AdditiveBlend should only be used on things that are supposed to glow — otherwise you might think that the object ignores its vertex shading. In the case of the billboard at the right, this was an improvement; now it's a transparent OLED billboard.
# Long animations in high quality (512x512, RGB) produce VERY big .oni files. The source billboard GIF is 1.7MB and the resulting .oni file is 273MB. That's because TXAN doesn't support variable timing like the GIF format, so a smooth animation like this one will have a ton of duplicate frames in it. Even as a ZIP, the .oni file was still 66MB, which is unreasonably large. The billboard could possibly be broken into 3 static and 3 transitional images, and then animated "manually" via a [[XML:ONLV#Texture_exchange|BSL loop]]. The conclusion is to use animated images with lower quality settings and to avoid long periods of duplicate frames which waste space.
# Long animations in high quality (512x512, RGB) produce VERY big .oni files. The source billboard GIF is 1.7MB and the resulting .oni file is 273MB. That's because TXAN doesn't support variable timing like the GIF format, so a smooth animation like this one will have a ton of duplicate frames in it. Even as a ZIP, the .oni file was still 66MB, which is unreasonably large. The billboard could possibly be broken into 3 static and 3 transitional images, and then animated "manually" via a [[Creating a level#Texture exchange|BSL loop]]. The conclusion is to use animated images with lower quality settings and to avoid long periods of duplicate frames which waste space.


[[Creating animated images|HERE]] is some information on how to create an animated texture within various graphics programs.
[[Creating animated images|HERE]] is some information on how to create an animated texture within various graphics programs.


{{XML}}
{{XML}}