Skip to content

Converting a Simple Skin (SKN) to glTF with a skeleton and animations

Crauzer edited this page Sep 6, 2020 · 3 revisions

For this you will need to use the skn2gltf-rigged command.

To specify a skeleton which you want to use, use the --skeleton parameter.

If you also want to bundle animations into the gltf file, you will have to use either the --animations-folder parameter, or the --animations parameter.

It is recommended to use the --animations-folder parameter as you don't have to specify all animations you want to convert by hand.

If both arguments are provided then lol2gltf will always prefer to use --animations-folder.

Example usage with textures and animations:

lol2gltf skn2gltf-rigged --skn "aatrox.skn" --skeleton "aatrox.skl" -o "aatrox.glb" --material-textures "Body:aatrox_base_tx_cm.dds" "Wings:aatrox_wings_tx_cm.dds" "Sword:aatrox_base_sword_tx_cm.dds" --animations-folder "aatrox_animations"

lol2gltf skn2gltf-rigged --skn "aatrox.skn" --skeleton "aatrox.skl" -o "aatrox.glb" --material-textures "Body:aatrox_base_tx_cm.dds" "Wings:aatrox_wings_tx_cm.dds" "Sword:aatrox_base_sword_tx_cm.dds" --animations "aatrox_animations/aatrox_attack1.anm" "aatrox_animations/aatrox_attack3.anm"