OniSplit: Difference between revisions

124 bytes added ,  6 February 2008
forgot about the TXMP format update
(Added list of commands, update links)
(forgot about the TXMP format update)
Line 9: Line 9:
   onisplit -create:txmp destination_directory [options] source_image_file
   onisplit -create:txmp destination_directory [options] source_image_file
where options can be
where options can be
-nouwrap - set the "U wrapping disabled" flag
  -nouwrap - set the "U wrapping disabled" flag
-nowwrap - set the "V wrapping disabled" flag
  -nowwrap - set the "V wrapping disabled" flag
-format:bgr32, -format:bgra32, -format:bgr555, -format:bgra5551, -format:bgra4444, -format:dxt1 - the texture format to generate
  -format:bgr555 (or dxt1) for most of the stuff
-genmipmaps - generate mipmaps if they are not already present in the source file and if the source file is not dxt1 compressed
  -format:bgr32 for skyboxes
  -format:bgra4444 for transparent/reflective stuff (in a couple of places bgra5551 is used but probably it's not big deal if bgra4444 is used instead)
  -genmipmaps - generate mipmaps if they are not already present in the source file and if the source file is not dxt1 compressed


Example:
Example:
Line 22: Line 24:


For TXMP files that contain envmaps:
For TXMP files that contain envmaps:
   onisplit -create:txmp dest_dir -genmipmaps -envmap:envmapname imagefile.tga
   onisplit -create:txmp dest_dir -format:bgra4444 -genmipmaps -envmap:envmapname imagefile.tga
The envmap name can have the TXMP prefix but it is not required, it is added automatically if missing.
The envmap name can have the TXMP prefix but it is not required, it is added automatically if missing.


830

edits