XML talk:TXMB: Difference between revisions

m
link fix, marking dead link
(got an algorithm to split the images that will compose one TXMB)
m (link fix, marking dead link)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== TXMP with height of 224 ==
==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.
In this page it is given an example of an image with a size of 640x480 made of 128x224 images.


I was reading [http://wiki.oni2.net/XML:TXMP TXMP page] and it says '''"textures' x and y (pixel) dimension must be power of two: 512, 256, 128, 64, etc"'''.
I was reading [[XML:TXMP]] 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? [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 12:49, 29 September 2016 (CEST)
However 224 is not power of two. Why is this size used in the TXMB example? [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 12:49, 29 September 2016 (CEST)
Line 11: Line 10:
: 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 ==
==TXMB 640x480 problems==
 
"The number of columns and rows (TXMPs) is computed at runtime.
"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.
Probably the engine checks the horizontal dimension of the TXMPs until the desired x size is reached and then starts a new row.
Line 19: Line 17:
The following image isn't mapped correctly by the engine:
The following image isn't mapped correctly by the engine:


https://dl.dropboxusercontent.com/u/143726/temp/IntroImageLevel2Problem.zip
<nowiki>https://dl.dropboxusercontent.com/u/143726/temp/IntroImageLevel2Problem.zip</nowiki> (dead link)


The image is composed by the following images:
The image is composed by the following images:
Line 54: Line 52:
         return splitSizes;
         return splitSizes;
     }</code>
     }</code>
::C++ code can be found in Vago [http://svn.oni2.net/Vago/trunk/Vago/bgImageWizard/bgimagepagefinal.cpp here] ''QVector<int> BGImagePageFinal::getSplitSizes(int imageSideSize)'' function. Look at the uncommented one.
::C++ code can be found in Vago [http://svn.oni2.net/s10k/Vago/bgImageWizard/bgimagepagefinal.cpp here] ''QVector<int> BGImagePageFinal::getSplitSizes(int imageSideSize)'' function. Look at the uncommented one. [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 12:30, 13 October 2016 (CEST)