Simple DAE2SCW converter and vice versa. Written just for fun in Java.
Since SC games support glTF, there are no reasons to keep this closed-source. This code is licensed under GPLv3, so feel free to do any changes, but don't forget to keep them open-sourced.
Demo video: https://vk.cc/awEpnK
- It supports animations, but you should export them as matrices (not decomposed)
- It doesn't support collada completely, but works with models expored from blender
- Materials aren't fully supported
- It doesn't accept transformations of root armature from blender, so you should specify them directly
- Maybe some other bugs, you can report them or search for a solution in Issues
Java 9 is required. You can download prebuilt JAR here: https://github.com/daniillnull/scw/releases
> java -jar SCW.jar scw2dae input_file_geo.scw input_file_walk.scw
, where input_file_geo.scw is geometry file, and input_file_walk.scw is animation file. Animation file is optional.
Simple way:
> java -jar SCW.jar dae2scw input_file.dae
There are some additional parameters that can be specified optionally:
> java -jar SCW.jar dae2scw -s X;Y;Z -r X;Y;Z -t X;Y;Z -a MGAC input_file.dae
-s
-r
-t
will set transformations for root nodes. They are scale, rotate and translate respectively.
-a
will set what to export. It can be Material, Geometry, Animation and Camera.
LibGDX: https://github.com/libgdx/libgdx - Used some classes for working with matrices
Thanks @MICRDEV for helping with the research of SC3D format