flump icon indicating copy to clipboard operation
flump copied to clipboard

Export to Spine JSON format

Open jackwlee01 opened this issue 11 years ago • 8 comments

I would love to be able to use Flump with the huge variety of Spine runtimes. Has there been any discussion about exporting from Flump to the Spine JSON format?

http://esotericsoftware.com/spine-json-format

Comparing the two formats I think it might be possible to map the Flump output to Spine. I was considering initially just making a parser to convert one format to the other. Do you think it would be possible to utilize the parsed Flump output in a completely different runtime such as Spine?

jackwlee01 avatar Jun 29 '14 11:06 jackwlee01

I hadn't heard of Spine, but it looks cool. From a quick scan of the json format description that you linked to, it does seem like Flump could map onto Spine (though Flump is lacking some of Spine's features, like skinning and draw-ordering).

It certainly seems worth a try; making a converter that acts on the Flump output seems like a reasonable way to go. Let us know if you have success!

tconkling avatar Jun 29 '14 18:06 tconkling

:+1: I just made GPU patch for pixi-spine, so If someone makes converter, it will be possible to run flump in web without performance drop

ivanpopelyshev avatar Nov 19 '15 17:11 ivanpopelyshev

I took a look at both formats a while ago, and I didn't have much luck mapping from Flump to Spine. Specifically I couldn't find a way to map nested Movieclips. I still think it may be possible, but my knowledge of Spine and its runtime is too limited.

jackwlee01 avatar Nov 19 '15 23:11 jackwlee01

I dont think its possible, spine doesnt have that thing, and skins have different meaning

ivanpopelyshev avatar Nov 19 '15 23:11 ivanpopelyshev

Oh wait. May be its possible to change attachment every frame

ivanpopelyshev avatar Nov 19 '15 23:11 ivanpopelyshev

It has been a while since I looked into it, but I was thinking the nesting could be achieved through flattening the Movieclips during the conversation stage and supplying to Spine the absolute coordinates (as apposed the nested child coordinates relative to its own parent).

On Fri, Nov 20, 2015 at 9:59 AM, Ivan Popelyshev [email protected] wrote:

Oh wait. May be its possible to change attachment every frame

— Reply to this email directly or view it on GitHub https://github.com/tconkling/flump/issues/119#issuecomment-158238259.

jackwlee01 avatar Nov 20 '15 00:11 jackwlee01

Also, I came across this thread in my initial research: http://esotericsoftware.com/forum/viewtopic.php?p=6670#p6670

I thought at as long as skeletons could be bound as bones to other skeletons this mean that nesting is possible at runtime.

On Fri, Nov 20, 2015 at 10:10 AM, Jack Lee [email protected] wrote:

It has been a while since I looked into it, but I was thinking the nesting could be achieved through flattening the Movieclips during the conversation stage and supplying to Spine the absolute coordinates (as apposed the nested child coordinates relative to its own parent).

On Fri, Nov 20, 2015 at 9:59 AM, Ivan Popelyshev <[email protected]

wrote:

Oh wait. May be its possible to change attachment every frame

— Reply to this email directly or view it on GitHub https://github.com/tconkling/flump/issues/119#issuecomment-158238259.

jackwlee01 avatar Nov 20 '15 00:11 jackwlee01

Wow, didnt know that thing. I doubt that js runtime supports it, but I can do something about it. Then it'll be possible to run it in pixi.js :)

ivanpopelyshev avatar Nov 20 '15 00:11 ivanpopelyshev