/SCW

Simple DAE2SCW converter and vice versa. Written just for fun.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

SCW

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

Features and flaws

  1. It supports animations, but you should export them as matrices (not decomposed)
  2. It doesn't support collada completely, but works with models expored from blender
  3. Materials aren't fully supported
  4. It doesn't accept transformations of root armature from blender, so you should specify them directly
  5. Maybe some other bugs, you can report them or search for a solution in Issues

How to use it?

Java 9 is required. You can download prebuilt JAR here: https://github.com/daniillnull/scw/releases

Converting .scw to .dae

> 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.

Converting .dae to .scw

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.

Credits

LibGDX: https://github.com/libgdx/libgdx - Used some classes for working with matrices

Thanks @MICRDEV for helping with the research of SC3D format