191
edits
(Added Blender-specific OniSplit information) |
|||
Line 69: | Line 69: | ||
Before importing TRAM files, set the scene frame rate to 60fps. | Before importing TRAM files, set the scene frame rate to 60fps. | ||
{| class="wikitable" | |||
|- | |||
! Collada import settings !! Scene settings | |||
|- | |||
| [[Image:BlenderImportSettings.png|200px|frameless|center]] || [[Image:BlenderSceneSettings.png|300px|frameless|center]] | |||
|- | |||
|} | |||
====Exporting==== | ====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 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. | 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. | ||
{| class="wikitable" | |||
|- | |||
! Blender Collada export settings | |||
|- | |||
| [[Image:BlenderColladaExportSettings.png|500px|frameless|center]] | |||
|- | |||
|} | |||
===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 | |||
-extract:dae To_blender -noanim -blender Original\ | |||
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 | |||
<mark><tt>AnimationDaeWriter: custom axis conversion</tt></mark> | |||
on output. If you don’t, you’re most likely doing something wrong. | |||
Convert TRBS.dae from Blender to .oni: | *Convert TRBS.dae from Blender to .oni: | ||
-create:trbs From_blender -blender From_blender\TRBSkonoko_body_high.dae | -create:'''trbs''' From_blender -blender From_blender\TRBSkonoko_body_high.dae | ||
Convert TRAM.dae from Blender to .oni | *Convert TRAM.dae from Blender to .oni | ||
-create From_blender -blender From_blender\TRAMKONCOMkick_heavy.xml | -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. | The TRAMKONCOMkick_heavy.xml links to the TRAMKONCOMkick_heavy.dae from Blender which needs to be in the same location as the .xml file. | ||
===Troubleshooting=== | |||
Known Issues between Blender 2.83 and OniSplit 0.9.99.2 | |||
1) Importing a .dae file results in the following 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 <tt><technique></tt> and replace with <tt><technique sid="common"></tt> | |||
==Poses== | ==Poses== |
edits