19,041
edits
(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 | * Textures' X and Y dimensions are typically powers of two (e.g. 128, 256, 512). | ||
** | ** 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. | ||
* 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. | ||