19,721
edits
Script 10k (talk | contribs) (ViciousReilly provided some nice templates to create similar splash screens to those present in vanilla) |
m (link fix) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{XML_File_Header | type=TXMB | {{XML_File_Header | prev=TXCA | type=TXMB | next=TXMP | name=Texture Map Big}} | ||
==General information== | ==General information== | ||
{| border=0 cellspacing=10 cellpadding=0 style="float:right" | {| border=0 cellspacing=10 cellpadding=0 style="float:right; width:22em;" | ||
|valign=top| | |||
<pre>1024x768 made of ... | |||
_00 - 256x256 | |||
_01 - 256x256 | |||
_02 - 256x256 | |||
_03 - 256x256 | |||
_04 - 256x256 | |||
_05 - 256x256 | |||
_06 - 256x256 | |||
_07 - 256x256 | |||
_08 - 256x256 | |||
_09 - 256x256 | |||
_10 - 256x256 | |||
_11 - 256x256 | |||
+-----+-----+-----+-----+ | |||
| _00 | _01 | _02 | _03 | | |||
| | | | | | |||
+-----+-----+-----+-----+ | |||
| _04 | _05 | _06 | _07 | | |||
| | | | | | |||
+-----+-----+-----+-----+ | |||
| _08 | _09 | _10 | _11 | | |||
| | | | | | |||
+-----+-----+-----+-----+</pre> | |||
|} | |||
{| border=0 cellspacing=10 cellpadding=0 style="float:right; width:16em;" | |||
|valign=top| | |valign=top| | ||
<pre>640x480 made of ... | <pre>640x480 made of ... | ||
| Line 13: | Line 41: | ||
_5 - 128x224 | _5 - 128x224 | ||
+-----+-----+ | +-----+-----+--+ | ||
| _0 | _1 |_2 | | | _0 | _1 |_2| | ||
| | | | | | | | | ||
| | | | | | | | | ||
+-----+-----+--+ | |||
| _3 | _4 |_5| | |||
| | | | | |||
+ | +-----+-----+--+</pre> | ||
+-----+ | |||
| _4 | _5 | |||
| | | | |||
+----- | |||
+ | |||
|} | |} | ||
*The XML code on this page is compatible with OniSplit '''v0.9.61.0''' | *The XML code on this page is compatible with OniSplit '''v0.9.61.0'''. | ||
*TXMB files create the '' | *TXMB files create the ''splashscreens'' which we see at the start and end of levels (making three total: the title screen, an endscreen for losing the level, and one for winning). | ||
*A TXMB file simply hold links to TXMPs which are assembled by Oni to display a larger picture than the maximum size of a single texture.<br>The current max resolution for a single TXMP in Windows is 512x512 and on Mac is 1024x1024 as of 2018. | *A TXMB file simply hold links to TXMPs which are assembled by Oni to display a larger picture than the maximum size of a single texture.<br>The current max resolution for a single TXMP in Windows is 512x512 and on Mac is 1024x1024 as of 2018. | ||
*The arrangement of the constituent TXMPs into columns and rows is computed at runtime. Probably the engine stacks TXMPs horizontally until the value in the Width field is reached, and then starts a new row. | *The arrangement of the constituent TXMPs into columns and rows is computed at runtime. Probably the engine stacks TXMPs horizontally until the value in the Width field is reached, and then starts a new row. | ||
| Line 79: | Line 81: | ||
<Texture> | <Texture> | ||
<Flags>DisableUWrap DisableVWrap</Flags> | <Flags>DisableUWrap DisableVWrap</Flags> | ||
[[ | [[XML:TXMP#XML_tags|<Format>]]BGR555</Format> | ||
<Image>TXMPlevel01_win_0.tga</Image> | <Image>TXMPlevel01_win_0.tga</Image> | ||
</Texture> | </Texture> | ||
| Line 85: | Line 87: | ||
==Creating a TXMB== | ==Creating a TXMB== | ||
You can | ===Manually=== | ||
You can create the TXMB manually by splitting a large image into pieces, converting them to TXMP.oni files with OniSplit, and then referencing them in a TXMB.xml file in the format given under "General information". Note that the intro screen PSDs linked to under "Splashscreen template" have built-in guides for quick slicing of an image (see the read-me in the ZIP). Once you have converted the slices to .oni format and have written the TXMB.xml file, pass it to OniSplit with the "-create" command to get the TXMB.oni file. You now have the TXMB.oni and TXMP.oni files that you need to present a splashscreen in your level. | |||
===Tool-assisted=== | |||
It's much faster to use [[Vago_(tool)|Vago]] to create a TXMB and its constituent TXMPs — see Vago's menu item "Tools>Background Image Wizard". | |||
===Algorithm to split an image for TXMB=== | ===Algorithm to split an image for TXMB=== | ||
| Line 143: | Line 141: | ||
*The "4" in "tile -4x" is derived from your knowing that this TXMB is 1024x1024 and the TXMPs are 256px wide, therefore the TXMB is made up of 4 columns of TXMPs. | *The "4" in "tile -4x" is derived from your knowing that this TXMB is 1024x1024 and the TXMPs are 256px wide, therefore the TXMB is made up of 4 columns of TXMPs. | ||
== | ==Splashscreen template== | ||
ViciousReilly provided to the community the following Adobe Photoshop templates that allow any modder to create similar splashscreens to the ones found in the original game. '''If you use the templates, please give credit to ViciousReilly for his work!''' | |||
* [http://iritscen.oni2.net/wiki/Intro%20Splash%20Templates.zip Intro screen] | |||
* [http://script10k.oni2.net/wikifiles/ONI_LevelSplash_Template.zip Win / Lose screens] | * [http://script10k.oni2.net/wikifiles/ONI_LevelSplash_Template.zip Win / Lose screens] | ||
The Xenotron font, used by Oni and by us in these templates, can be downloaded from the [[Xenotron]] page. | |||
Samples of splashscreens produced with the above templates (note: final versions of splashscreens in mods may include extra editing not present in the templates): | |||
<gallery widths=512px heights=384px> | |||
File:HD Training intro screen.jpg | |||
File:Omega Tournament lose 1 splash.png | |||
</gallery> | |||
{{XML}} | {{XML}} | ||