Closed superness closed 8 years ago
If I have some spine animations that are messed up are you guys interested in looking at them? They load up correctly in Skeleton Viewer: http://esotericsoftware.com/spine-skeleton-viewer
Same issues for me, many problems with meshes.
trying with goblin-mesh spine example and spinejs runtime. goblins-mesh.zip
skeletron viewer shows it correctly but in the canvas spear has completely wrong verticles
this is probably too late, but you can check my branch [https://github.com/dcalogue/spine-runtimes]
I fixed the mesh animations and used them in a shipped project
This totally fix the problem for me! thank you very much dcalogue you are a monster ;)
https://github.com/EsotericSoftware/spine-runtimes/compare/master...dcalogue:bugFixing
This will be fixed in the upcoming 3.4.0 update of the spine-js runtime. See https://github.com/EsotericSoftware/spine-runtimes/issues/613
Couple of issues with SkeletonJson in Spine.js
line 2044: duration = Math.max(duration, timeline.frames[timeline.frameCount * 3 - 3]); line 2105: duration = Math.max(duration, timeline.frames[timeline.frameCount - 1]);
both of these timeline.frameCount calls should be getFrameCount()
The next issue is a little less defined. Had lots of issues with timeline vertices array not having values set and being seen as NaN later on (causing animations to fail). I didn't find the root cause.. but it seems to be related to starting at 'offset' in timelines and not setting 0 for the first 'offset' values.