Jump to content

Importing character models: Difference between revisions

Added Blender-specific OniSplit information
(Added Blender-specific OniSplit information)
Line 60: Line 60:


An ONCC contains much more information than just links to TRBS and TRMA, and thus can not be generated automatically. See [[XML:ONCC]] on how to create such a file, and then import the character with this class data into Oni. The easiest way to try out an imported character in Oni is to name your imported TRBS so that it replaces an existing one and no ONCC editing is needed. The next step up is to clone an existing ONCC (in XML) and modify it to link to your new TRBS file(s).
An ONCC contains much more information than just links to TRBS and TRMA, and thus can not be generated automatically. See [[XML:ONCC]] on how to create such a file, and then import the character with this class data into Oni. The easiest way to try out an imported character in Oni is to name your imported TRBS so that it replaces an existing one and no ONCC editing is needed. The next step up is to clone an existing ONCC (in XML) and modify it to link to your new TRBS file(s).
==Blender-specific OniSplit information==
This section contains OniSplit commands specific to Blender, and related settings in Blender necessary for assets to work.
===Blender settings for importing and exporting COLLADA files===
====Importing====
In the Collada Import Data Options, make sure to check Import Units. Failure to do so will result in scaling issues, which are not easy to fix.
Before importing TRAM files, set the scene frame rate to 60fps.
====Exporting====
When exporting TRBS, be sure to delete the default light and camera from the scene, or you can select all 19 body parts, then in the Export Main Tab, select Selection Only
When exporting TRAM, select all 19 body parts, then in the Collada export options, under the Main Tab: select Selection Only, Geom Tab: select Triangulate, Anim Tab: select Curves.
===Troubleshooting===
Known Issues between Blender 2.83 and OniSplit 0.9.99.2
1) When importing .dae file you get the error message "Schema validation (Error): Error: ERROR_REQUIRED_ATTRIBUTE_MISSING Element: technique, Attribute: sid"
Solution: Open the .dae file in a text editor, find all instances of <technique> and replace with <technique sid="common">
===Blender-specific OniSplit commands===
Convert TRBS.oni to Blender compatible dae:
-extract:dae To_blender -noanim -blender Original\TRBSkonoko_body_high.oni
Convert ONCC.oni to Blender compatible dae with textures:
-extract:dae To_blender -noanim -blender Original\ONCCkonoko_generic.oni
Be sure to include the TMXP.oni files with the ONCC.oni file
Convert TRAM.oni to Blender compatible dae - textureless, as exporting animations with textured models does not work yet:
-extract:xml To_blender -anim-body:Original\TRBSkonoko_body_high.oni -blender Original\TRAMKONCOMkick_heavy.oni
This will create a TRAM.dae along with an .xml file, which is needed for importing back to Oni.
You will be also able to tell that everything went okay when you see
AnimationDaeWriter: custom axis conversion.
on output. If you don’t, you’re most likely doing something wrong.
Convert TRBS.dae from Blender to .oni:
-create:trbs From_blender -blender From_blender\TRBSkonoko_body_high.dae
Convert TRAM.dae from Blender to .oni
-create From_blender -blender From_blender\TRAMKONCOMkick_heavy.xml
The TRAMKONCOMkick_heavy.xml links to the TRAMKONCOMkick_heavy.dae from Blender which needs to be in the same location as the .xml file.


==Poses==
==Poses==
191

edits