https://github.com/vmatikainen/spine-qml-converter
Converts Spine by Esoteric Software export json format into native QML items and animations.
https://github.com/vmatikainen/spine-qml-converter
Last synced: 14 days ago
JSON representation
Converts Spine by Esoteric Software export json format into native QML items and animations.
- Host: GitHub
- URL: https://github.com/vmatikainen/spine-qml-converter
- Owner: vmatikainen
- License: other
- Created: 2014-09-19T07:05:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-25T21:32:41.000Z (over 10 years ago)
- Last Synced: 2024-06-16T04:53:13.590Z (over 1 year ago)
- Language: C++
- Size: 171 KB
- Stars: 15
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-qt-qml - spine-qml-converter - Converts Spine by Esoteric Software export json format into native QML items and animations. (JSON)
README
spine-qml-converter
===================
Converts Spine by Esoteric Software export json format into native QML items and animations.
The idea is to convert animations and UI's from Spine to QML which in turn can be modified
by hand to integrate fluidly to your Qt/QML games and apps.
Usage
=========
spine-qml-converter input.json Output.qml
Then add the converted qml, the files in resources/ and any required images to your qml project.
Skeleton format
=========
The animations are exposed properties named as "walkAnimation", "shootAnimation" etc.
They can be controlled as native animations, but function animate(animation) is preferred, as
it resets the pose before starting the animation.
If using skins, you must set skeleton.skin.state = "GOBLIN".
The root bone will be in the x and y position of the item.
reset function can be used to set the skeleton back to setup pose.
Notes
=========
* Does not (yet) support IK or FFD. Texture atlases are not used.
* Tested with Spine example json export, so might have a number of issues left.
Version
=========
0.1
* Proof of concept implementation
* The QML format and that data it exposes is in early format
Environment
=========
Has been tested in Windows 7 and Ubuntu 14.04 with Qt 5.1 and 5.3.
Known issues
=========
* The intendation in the output is not correct (so ctrl+a + ctrl+i is your friend).