XML talk:TXMB: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(for mipmaps?)
No edit summary
Line 10: Line 10:
:Hypothesis: Textures with mipmaps need to be power of two and splashscreens don't need mipmaps because they are always seems from equal distance.
:Hypothesis: Textures with mipmaps need to be power of two and splashscreens don't need mipmaps because they are always seems from equal distance.
: Maybe it helps to create a statistic with all TXMP. [[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 13:21, 29 September 2016 (CEST)
: Maybe it helps to create a statistic with all TXMP. [[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 13:21, 29 September 2016 (CEST)
== TXMB 640x480 problems ==
"The number of columns and rows (TXMPs) is computed at runtime.
Probably the engine checks the horizontal dimension of the TXMPs until the desired x size is reached and then starts a new row.
So it should be possible to create also other TXMB resolutions and TXMP constellations."
The following image isn't mapped correctly by the engine:
https://dl.dropboxusercontent.com/u/143726/temp/IntroImageLevel2Problem.zip
The image is composed by the following images:
256x256 | 256x256 | 128x256
256x128 | 256x128 | 128x128
256x64  | 256x64  | 128x64
256x32  | 256x32  | 128x32
Any idea why the image isn't displayed correctly by oni?
The link that I posted contains the original image, oni files and the level2 dat file with the oni files already built in.

Revision as of 21:14, 10 October 2016

TXMP with height of 224

In this page it is given an example of an image with a size of 640x480 made of 128x224 images.

I was reading TXMP page and it says "textures' x and y (pixel) dimension must be power of two: 512, 256, 128, 64, etc".

However 224 is not power of two. Why is this size used in the TXMB example? Script 10k (talk) 12:49, 29 September 2016 (CEST)


Hypothesis: Textures with mipmaps need to be power of two and splashscreens don't need mipmaps because they are always seems from equal distance.
Maybe it helps to create a statistic with all TXMP. paradox-01 (talk) 13:21, 29 September 2016 (CEST)

TXMB 640x480 problems

"The number of columns and rows (TXMPs) is computed at runtime. Probably the engine checks the horizontal dimension of the TXMPs until the desired x size is reached and then starts a new row. So it should be possible to create also other TXMB resolutions and TXMP constellations."

The following image isn't mapped correctly by the engine:

https://dl.dropboxusercontent.com/u/143726/temp/IntroImageLevel2Problem.zip

The image is composed by the following images:

256x256 | 256x256 | 128x256

256x128 | 256x128 | 128x128

256x64 | 256x64 | 128x64

256x32 | 256x32 | 128x32

Any idea why the image isn't displayed correctly by oni?

The link that I posted contains the original image, oni files and the level2 dat file with the oni files already built in.