XML:TXMP: Difference between revisions

139 bytes removed ,  30 October 2021
m
→‎General notes: OniSplit does allow non-p.o.t. textures, so adjusting note
m (clarifying why power-of-two textures are recommended)
m (→‎General notes: OniSplit does allow non-p.o.t. textures, so adjusting note)
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 are typically powers of two (e.g. 128, 256, 512).
* Textures' X and Y dimensions are typically powers of two (e.g. 128, 256, 512). Oni and OniSplit will accept textures with dimensions that are not power-of-two, however there can be issues with them (see [[User talk:Neo/Archive5]], search "power"), so it's best to avoid them.
** 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).
* A texture's 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.