Skip to content

Daniil-SV/Supercell-Flat-Converter

Repository files navigation

Supercell World Flatbuffer Converter

Description

The purpose of this script is to convert Supercell glTF files that was optimized with Flatbuffer and special extension for "Odin" asset layer into a regular glTF and then import it into any 3D software
and also it support back conversion just in case

How to use

You must have Python 3.10+ to use it
First, clone or download repository and open console in folder with repository content
Then run py main.py to create folders
To convert optimized files to regular glb files, put your files in In-SC-glTF folder and run py main.py decode. Result will be stored in Out-glTF folder. Also note that when using this option content inside glb will be modified to make it work in Blender. You can get "raw" file without processing using py main.py decodeRaw
And to convert regular glb files to optimized, put your files in In-glTF folder, run py main.py encode. Output will be stored in Out-SC-glTF folder.

How to 'Build'

Flatc is used here to generate an API for obtaining information from binary data, and if you want to change the scheme, make sure that the flatc is available for execution and to generate run generate.bat