223 Commits

Author SHA1 Message Date
Ivan Popelyshev
9541688926
NBSP -> space (#1923) 2021-07-15 06:50:04 +02:00
badlogic
80e2b78dd1 [player] Don't force mipmaps if atlas page is non-POT in WebGL1 2021-07-09 18:32:04 +02:00
Nathan Sweet
87b9821e00 [as3][c][cpp][cs][libgdx][lua] Fixed crash with path constraint proportional spacing and tangent rotate modes. 2021-06-30 14:11:26 -04:00
Nathan Sweet
b8bf2a9bbb [ts] Added AssetManager#require which throws an error for an asset that isn't loaded. 2021-06-28 01:53:26 -04:00
Nathan Sweet
286552b8fa [ts] Player, simplified config.mipmaps. 2021-06-22 21:38:57 -04:00
Nathan Sweet
6c689eb5f8 [ts] Fixed example HTML files. 2021-06-22 16:54:10 -04:00
Nathan Sweet
4062ccb1a9 [ts] TextureAtlas and AssetManager updates.
* AssetManager's textureLoader returns Texture.
* AssetManager#loadTexture success gives a Texture.
* TextureAtlas no longer has a textureLoader, it creates all the pages without a texture set.
* TextureAtlasRegion no longer has a texture, use region.page.texture instead.
* AssetManager#loadTextureAtlas no longer parses the atlas text twice. It creates the atlas, then loads and sets all the textures.
2021-06-22 15:33:01 -04:00
Nathan Sweet
d4271ccae9 Fixed AnimationState#clearNext. 2021-06-20 15:53:19 -04:00
Nathan Sweet
99f8cba35f [ts] Player updates.
* Updated config doc comments.
* Check undefined without typeof. Discussion: https://stackoverflow.com/a/22053469/187883
* Use transparent bg color by default if alpha is true.
* Set bg color on parent to avoid flash.
* render->create (so it doesn't seem like it's about drawing).
* Sorted members.
* Use addEventListener, else only the last player event handler is used.
* Set the initial animation when loaded, not whenever track 0 is empty.
* If an animation is not specified, play an empty animation.
* If an animation is set in success(), don't set any animation.
* Don't clearTracks in setAnimation, don't use AnimationState in calculateAnimationViewport -- those prevent mixing.
* setAnimation returns the TrackEntry.
* Added addAnimation and setViewport.
* Expose play() and pause().
* Keep control bones inside the canvas.
* LoadingScreen scales down.
* Set minimal CSS so no external CSS is needed when !showControls.
* Use screen instead of world coordinates for control bone hit detection, so it works at any size.
* Choose closest control bone instead of last.
2021-06-20 13:24:53 -04:00
Nathan Sweet
e03fa1d5d3 [ts] Default parameters for AnimationState. 2021-06-20 09:01:21 -04:00
Nathan Sweet
78a730a6d7 [ts] Improvements for player, webgl.
* Rendering, added support for separate color/alpha src blend funcs.
* LoadingScreen, set camera zoom to fade out and black flash, use PMA to fix ringing artifacts when scaled, fade in to help hide dropped frames as page loads, use separate color/alpha src blend funcs to properly blend quad when loading screen fades out, oxipng PNGs.
* Moved some private constants out of their class to avoid class name prefix.
* Player, clean up full pass OCD town, showError throws when possible so stacktrace isn't lost, added showLoading to config, don't create UI when !showControls, removed findWithId (id is unique for entire document), use built-in for findWithClass/contains, var->let, don't clear screen twice during loading, other minor stuff.
2021-06-20 01:20:31 -04:00
Nathan Sweet
173a61be7f [ts] Removed SharedAssetManager. Added webworker support to AssetManager. AssetManager clean up.
Related: #1762
2021-06-18 19:36:05 -04:00
Nathan Sweet
43cb6dfe22 [ts] AssetManager and Player updates to support sharing assets.
* Removed # parsing from SpinePlayer, replaced with config.jsonField.
* Refactored AssetMananger to split downloading from asset creation.
* Allow Downloader to be specified in SpinePlayer config so multiple players don't download the same assets.
* Added AssetManager#loadJson so the text is only parsed once.
* TextureAtlas is still parsed multiple times. :(
* AssetMananger clean up, catch more errors, log error, don't keep rendering after an error.
2021-06-18 02:31:10 -04:00
badlogic
731a5ac5af [ts] Reset mixBlend in track entry, see #1903 2021-06-15 13:35:30 +02:00
Nathan Sweet
0347c262e0 [ts, csharp] Revert RegionAttachment#UpdateOffset from csharp to ts, instead use ts code.
#1889
2021-06-10 00:04:28 -04:00
Nathan Sweet
aa752c49d4 [ts] Fixed canvas renderer not accounting for whitespace stripping.
closes #1889
2021-06-09 23:55:52 -04:00
badlogic
6ae45f1a5a [ts] Port IK constraint changes
See

33bce01fee
f9862b10b3
2021-06-09 15:07:44 +02:00
Mario Zechner
c76cdccf88 [ts] Undo fixup in TextureAtlas. The change prevented multi-page atlas parsing from working due to !""==null in JS. 2021-06-07 13:27:47 +02:00
Nathan Sweet
d856ece2f2 SkeletonJson clean up. 2021-06-06 23:18:12 -04:00
Nathan Sweet
6428b82e1e [lua] 4.0 port fixes. 2021-06-05 21:55:01 -04:00
Nathan Sweet
a5be08a62a More clean up. 2021-06-05 21:16:36 -04:00
Nathan Sweet
700d2897a8 Various clean up. 2021-06-04 22:16:54 -04:00
Nathan Sweet
3ecf7929bf [ts] Use constant values instead of static fields.
Even this ugliness is less ugly than TypeScript static field access. Smaller too.
2021-06-04 01:35:59 -04:00
Nathan Sweet
afcd899bca [ts] Removed error checking in loaders.
Safe to assume the data is valid. If not the ref impl can be used to check it, which has error checks.
2021-06-04 00:54:45 -04:00
Nathan Sweet
7df74c2fa4 Various fixes, clean up.
* Added missing CurveTimeline#shrink calls. c and cpp got BOZO comments until the method is added.
* SkeletonJson#readCurve clean up.
* ts, use shorthand for null checks.
* csharp, don't use unnecessary hasNext local.
2021-06-03 21:42:35 -04:00
Nathan Sweet
7aa940a961 Fixes for reading mix X/Y. 2021-06-03 15:33:48 -04:00
Nathan Sweet
81744da44a [ts] Port of fix for applying a constraint reverting changes from other constraints.
#1896
2021-05-31 01:42:33 -04:00
Nathan Sweet
6dfae6df3c Missing port: Fixed AnimationState crash when the number of timelines changes during a mix.
Ref impl commit: b99df7286aa933411f90eda6dbdeffd936058ae4
2021-05-31 01:26:41 -04:00
Nathan Sweet
551f33b2d1 [ts] Clean up, build fixes. 2021-05-30 20:17:54 -04:00
Nathan Sweet
05327b8d11 [ts] Clean up. 2021-05-30 16:53:56 -04:00
Nathan Sweet
80734017e0 [as3] Use function to get JSON values, better matches spine-ts. 2021-05-30 13:02:28 -04:00
Ivan Popelyshev
a28296f1dc
fix link (#1882) 2021-04-29 13:50:08 +02:00
Anton
a0ab3fe80c
BUGFIX: mesh attachment squashing (#1881) 2021-04-27 13:32:20 +02:00
badlogic
6d7f29718b [ts] Fix parsing of spacing mode proportional for JSON files. 2021-04-14 17:45:39 +02:00
badlogic
7b154fb92f [cpp] More 4.0 porting, all of animation and timelines. 2021-03-03 16:46:54 +01:00
Nathan Sweet
8c4d03c8be Fixed reading path constraint mix timelines in binary data. 2021-03-01 18:18:05 +01:00
badlogic
20bca55b93 [ts] Fixed atlas parsing. 2020-12-29 16:37:46 +01:00
badlogic
9087ed61ae [ts] Updated parser to new atlas format
Not quite working yet.
2020-12-28 12:11:25 +01:00
badlogic
1ca4f915ee [ts] Fix translation for transform constraint relative world mode 2020-12-03 14:37:35 +01:00
badlogic
88f0d98dd2 [ts] Finished 4.0 port. See #1796 2020-11-27 17:53:27 +01:00
badlogic
94813204df [ts] More porting, fixed SkeletonBinary. 2020-11-26 17:25:25 +01:00
badlogic
cf728e25dc [ts] More 4.0 porting, SkeletonJson and SkeletonBinary still broken. 2020-11-25 17:16:05 +01:00
badlogic
3863828c3e [ts] Port of 4.0 changes, some kinks to be ironed out yet.
[ts] Add .json exports to WebGL assets dir for tests.

[ts] She loads, but she no play nice.
2020-11-11 13:11:30 +01:00
MikalDev
93f1e546bb Webworker support for SharedAssetManger 2020-09-15 15:56:23 -07:00
badlogic
c0d8f1cece [ts] Port of commit 8290353. Fix for hold previous on 3+ animations causing dipping. See #1738. 2020-08-13 14:34:59 +02:00
badlogic
c64e6adbde [ts] Fix 1-bone IK, see #1692. 2020-06-03 17:27:30 +02:00
badlogic
ba1cb75b07 [ts] RegionAttachment.copy() refered to window.name instead of this.name. Closes #1672. 2020-06-03 13:24:22 +02:00
badlogic
bb60264572 [ts] Fix Pool.freeAll item insertion. Closes 1680. 2020-06-03 13:22:42 +02:00
badlogic
4c2788a558 [ts] Port of additional fix for #1668. 2020-05-20 16:13:43 +02:00
badlogic
6a317a1e3f [runtimes] Port of fix for TransformMode.noRotationOrReflection applying skeleton scale twice. See #1668. 2020-05-06 19:47:08 +02:00