OniSplit: Difference between revisions

925 bytes added ,  10 April 2008
Updating to 0.9.2
(revising section titles and adding note about extracting whole char. models)
(Updating to 0.9.2)
Line 28: Line 28:


===Export/Import 3D models===
===Export/Import 3D models===
[[M3GM]]s, [[ONWC]]s and, most notably, [[ONCC]]s can all be exported (in OBJ file format):
[[M3GM]]s, [[ONWC]]s, [[ONCC]]s and now [[TRBS]] can all be exported (in OBJ file format):
   onisplit -extract:obj dest_dir M3GMnotfound.oni
   onisplit -extract:obj dest_dir M3GMnotfound.oni
   onisplit -extract:obj dest_dir ONWCw1_tap.oni
   onisplit -extract:obj dest_dir ONWCw1_tap.oni
Line 40: Line 40:
Just like in -envmap option case the texture name can start with TXMP but it is not required.
Just like in -envmap option case the texture name can start with TXMP but it is not required.
Note that in both -envmap and -tex cases a .oni file is not created for the specified texture. The .oni file for that texture must be create separately.
Note that in both -envmap and -tex cases a .oni file is not created for the specified texture. The .oni file for that texture must be create separately.
For TRBS files
  onisplit -extract:dae dest_dir level0_Final/ONCCkonoko_generic.oni
This will generate a ONCCkonoko_generic.dae collada file in the directory dest_dir plus the tga texture files used by the specified character.
  onisplit -create:trbs dest_dir some_dir\ONCCkonoko_generic.dae
This will create a TRBSkonoko_generic.oni file in dest_dir
Blender's Collada importer/exporter is buggy and you need to add the options -noanim and -zup when extracting collada files for use with Blender:
  onisplit -extract:dae dest_dir -noanim -zup level0_Final/ONCCkonoko_generic.oni
noanim prevents the export of the default idle animation. That's needed because Blender doesn't import animated objects correctly.
-zup exports a collada file with a coordinate system where Z axis points up instead of the default (Y up). This is needed because Blender uses Z up but the importer gets it wrong and convert to something else.


===OniSplit commands===
===OniSplit commands===
830

edits