Jump to content

XML:TRMA: Difference between revisions

m
copy-edit
m (correcting prev/next types in nav header)
m (copy-edit)
 
Line 1: Line 1:
{{ XML_File_Header | prev=TRIG | type=TRMA | next=TRSC | name=Texture Map Array}}
{{ XML_File_Header | prev=TRIG | type=TRMA | next=TRSC | name=Texture Map Array}}


'''general information'''
==General information==
* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The XML on this page is compatible with OniSplit '''v0.9.61.0'''.
* TRMA files are stored ''globally'' (in AE/AEInstaller/vanilla/level0_Final.dat)
* TRMA files are stored locally in level''x''_Final.dat, but are globalized in the AE.
* these files are used by ONCC to get textures for the 3D mesh (TRBS)
* These files are used by [[XML:ONCC|ONCCs]] to look up the textures for a character's 3D mesh ([[XML:TRBS|TRBS]]).
* the mesh has 19 body parts, so there are also 19 textures links in the TRMA
* A character model has 19 body parts so there are also 19 texture links in the TRMA.
* the order of the TRMA links is determined by the mesh hierarchy ([[OBD:TRIA#Bones|TRIA]])
* The order of the TRMA links is determined by the mesh hierarchy in the [[XML:TRIA|TRIA]].


 
==Example==
'''example'''
TRMAkonoko002_high_texture_generic.xml:
 
TRMAkonoko002_high_texture_generic.xml
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 39: Line 37:
  </Oni>
  </Oni>


TRMA files contain sometimes a link with a "/" in it. The actual TXMP file use a "%2F" instead of the "/".
The TXMP links always contain a '/' character, as seen above, because the original resources were grouped in subfolders. The actual TXMP file use a "%2F" to encode the "/", e.g. "TXMPIteration001%2FKS_pelvis.oni".
 
 
For example:
 
:TXMPIteration001%2FKS_pelvis.oni<br>
:TXMPIteration001%2FKS_thigh_horiz.oni<br>
:[...]
 


==Code snippets==
==VBS code for Mod Tool==
===VBS for XSI===
This snippet gets the file path, width and height of all textures of the selected character. Could be [[Mod_Tool/Scripting#Write_text_file|extended to write XML]] for a TRMA and TXMP generator.
Gets file path, width and height of all textures of selected character. Could be [[Mod_Tool/Scripting#Write_text_file|extended to write XML]] for a TRMA and TXMP generator.
  if selection.count > 0 then
  if selection.count > 0 then
  ' any part could be selected, let's find the root body part
  ' any part could be selected, let's find the root body part