830
edits
m (Update to latest version) |
m (Added the -normals option) |
||
Line 41: | Line 41: | ||
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 | '''For TRBS files''' | ||
To extract an ONCC file to Collada format: | |||
onisplit -extract:dae dest_dir level0_Final/ONCCkonoko_generic.oni | onisplit -extract:dae dest_dir level0_Final/ONCCkonoko_generic.oni | ||
This will | This will produce an ONCCkonoko_generic.dae collada file in the directory dest_dir plus the tga texture files used by the specified character. | ||
Note: Blender's Collada importer/exporter is buggy, so you will 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. | |||
To create a TRBS file, use the following command: | |||
onisplit -create:trbs dest_dir some_dir\ONCCkonoko_generic.dae | onisplit -create:trbs dest_dir some_dir\ONCCkonoko_generic.dae | ||
This will create | This will create the TRBSkonoko_generic.oni file in dest_dir. | ||
You also have the options for OniSplit to autogenerate normals. | |||
onisplit - | onisplit -create:trbs dest_dir -normals some_dir\ONCCkonoko_generic.dae | ||
For more detailed information about importing characters, please this page: [[AE:Importing character models]] | |||
===OniSplit commands=== | ===OniSplit commands=== |
edits