Jump to content

Modifying textures: Difference between revisions

no edit summary
(Start writing Tutorial)
 
No edit summary
Line 47: Line 47:


:4) Play the game and see how your new texture maps look.
:4) Play the game and see how your new texture maps look.
'''TXMP & XML'''
:Extracting a texture with -extract:xml produces an xml file and one or more tga files. The xml file will contains texture options like format and flags and a list of tga file names. More than one tga file is produced for animated textures and the filenames look like TXMPsmoke_001.tga, TXMPsmoke_002.tga etc.
:Using the -create option with such an xml file will produce a normal TXMP.oni file but without the need to specify additional parameters on the command line like with -create:txmp. This comes in handy if you want to edit a bunch of textures:
:* put all the xml and tga files in a single directory
:* edit tga image files as you need
:* in the directory you can run the command: onisplit -create oni *.xml to create all TXMP.oni files in the subdirectory oni.
:Tip:
:The exported xml file does not contain the witdh and height of the texture, this is obtained from the tga file. If you resize the tga file the texture will be resized too.
708

edits