Jump to content

XML:TXMP: Difference between revisions

182 bytes added ,  23 October 2021
m
clarifying why power-of-two textures are recommended
(Adding info about non-power-of-two textures. I've checked it during 'Engine demo' creation.)
m (clarifying why power-of-two textures are recommended)
Line 3: Line 3:
==General notes==
==General notes==
* The XML on this page was tested with OniSplit '''v0.9.61.0'''.
* The XML on this page was tested with OniSplit '''v0.9.61.0'''.
* Textures' X and Y dimensions must be powers of two: 512, 256, 128, 64, etc. (The TXMPs used to compose [[XML:TXMB|TXMBs]] seem to be an exception.)
* Textures' X and Y dimensions are typically powers of two (e.g. 128, 256, 512).
** But engine really supports non-standard textures, such as 512x288, 256x144, etc.
** The engine does support textures of any dimension, however there may be issues with dimensions that are not power-of-two (2<sup>x</sup>) so it's best to avoid them. OniSplit itself may require you to supply textures of 2<sup>x</sup> dimensions. Using 2<sup>x</sup> also avoids potential math issues in the 3D code (e.g. mipmapping).
** However the height and width don't need to be equal, e.g. you can use 128x256.
* A texture's height 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.
* The camera can look at 2049 transparent textures at once; one more, and Oni crashes.