NathanSweet
34ad58febe
Use linear search to find keys.
...
Linear consistently outperforms binary using a wide sampling of real world data.
2019-11-16 18:08:33 +01:00
badlogic
62e17f7a65
Merge branch '3.9-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.9-beta
2019-11-15 12:57:58 +01:00
badlogic
f956dc4bfc
Merge branch '3.8' into 3.9-beta
2019-11-15 12:57:48 +01:00
badlogic
5eb76df99f
[ts] Fixed curve parsing in SkeletonJson. Closes #1537 .
2019-11-15 12:57:36 +01:00
Harald Csaszar
507687e205
[unity] Fixed mask interaction materials not working when changing skins dynamically. Closes #1546 .
2019-11-11 19:31:16 +01:00
Harald Csaszar
a5bcb324ff
[unity] Fixed mask interaction materials not working when changing skins dynamically. Closes #1546 .
2019-11-11 19:30:52 +01:00
badlogic
16bd92f443
[ts][player] Added asset embedding examples for Spine Web Player.
2019-11-07 15:42:14 +01:00
NathanSweet
faf22ce3cc
Removed clamping.
...
It wasn't used in all code paths anyway.
2019-11-05 21:51:48 +01:00
NathanSweet
4762954446
Fixed bug with interpolation of first Bezier segment.
2019-11-05 19:02:19 +01:00
NathanSweet
c23eb470e6
Minor cleanup, javadoc.
2019-11-05 18:40:08 +01:00
badlogic
99cf213152
Updated CHANGELOG.md.
2019-11-05 15:22:47 +01:00
badlogic
2d5145cb49
Merge branch '3.9-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.9-beta
2019-11-05 15:21:15 +01:00
badlogic
60c9d8c252
Merge branch '3.8' into 3.9-beta
2019-11-05 15:21:06 +01:00
badlogic
8e0a2e0c75
[ts][player] Added AssetManager.setRawDataURI(path, name). Allows to set a path and corresponding raw data URI which enables embedding of resources like skeletons, atlases, and so on directly in HTML/JS. Added SpinePlayerConfig.rawDataURIs, see the player example for a demonstration. Also closes #1541 , closes #1539 .
2019-11-05 15:20:50 +01:00
NathanSweet
d72add1370
Timeline cleanup.
...
* More code moved into getCurveValue/Percent.
* Avoid doing work where possible, eg few comparisons, don't access `frames` when the value is not needed.
* Binary searches return lower index rather than greater and return the frame index without multiplying by the number of entries.
2019-10-31 23:17:03 +01:00
badlogic
cf2df6b5f4
Updated CHANGELOG.
2019-10-31 19:28:59 +01:00
badlogic
1f8402c69e
Merge branch '3.9-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.9-beta
2019-10-31 19:28:02 +01:00
badlogic
bc2816867e
Merge branch '3.8' into 3.9-beta
2019-10-31 19:27:56 +01:00
badlogic
1a64423876
Merge branch '3.8' of https://github.com/esotericsoftware/spine-runtimes into 3.8
2019-10-31 19:27:44 +01:00
badlogic
b81f77b993
[ts] Added AssetManager#setRawDataURI(path, data). Allows to set raw data URIs for a specific path, which in turn enables embedding assets into JavaScript/HTML. See #1535 .
2019-10-31 19:27:33 +01:00
Harald Csaszar
bcc7cb2da0
[unity] Added changelog section added in last commit to 3.9 section as well (physics hinge chain support).
2019-10-31 18:02:53 +01:00
badlogic
f68f8c401b
Merge branch '3.8' into 3.9-beta
2019-10-31 17:56:29 +01:00
badlogic
9ce953a194
Merge branch '3.8' of https://github.com/esotericsoftware/spine-runtimes into 3.8
2019-10-31 17:56:08 +01:00
badlogic
b43fbdd4ce
[ue4] Fix private include in SpineWidget.h. Closes #1538 .
2019-10-31 17:55:57 +01:00
Harald Csaszar
179bb49f52
[unity] Real physics hinge chains for both 2D and 3D physics. Create hinge chain` now create proper setup for Unity physics, including flipping support. Closes #1515 .
2019-10-31 17:54:38 +01:00
badlogic
114dd18c46
Merge branch '3.8' into 3.9-beta
2019-10-31 17:10:50 +01:00
badlogic
4e96ebcda2
[ts][webgl] Added . When it will disable the corresponding WebGL pixel store behaviour.
2019-10-31 17:10:22 +01:00
Harald Csaszar
739b4884d6
[unity] Fixed duplicated SkeletonUtilityBones not following properly. Closes #1536 .
2019-10-31 12:19:32 +01:00
Harald Csaszar
f3bcd6e28f
[unity] Fixed duplicated SkeletonUtilityBones not following properly. Closes #1536 .
2019-10-31 12:18:22 +01:00
Harald Csaszar
72bf9b25ff
[unity] Fixed path name backslashes in Path.GetDirectoryName(), replaced by slashes. Due to pathname differences, SetDefaultTextureSettings was not called on import on Unity 2019.1 and 2019.2. See #1514 . Added asset context to some log statements to quickly jump to corresponding asset.
2019-10-30 17:32:08 +01:00
Harald Csaszar
226d551594
[unity] Fixed path name backslashes in Path.GetDirectoryName(), replaced by slashes. Due to pathname differences, SetDefaultTextureSettings was not called on import on Unity 2019.1 and 2019.2. See #1514 . Added asset context to some log statements to quickly jump to corresponding asset.
2019-10-30 17:30:53 +01:00
badlogic
9b63c65522
Merge branch '3.8' into 3.9-beta
2019-10-30 15:49:14 +01:00
badlogic
479c236835
[cpp] Change traversal order of Json::~Json(). Old order would grow stack much more than needed, leading to crashes when freeing big Json trees.
2019-10-30 15:48:55 +01:00
NathanSweet
72f6943970
Timeline binary search for stride 2.
2019-10-29 21:54:46 +01:00
NathanSweet
07bd8451f4
Timeline and JSON/binary improvements.
...
* Path constraint position and spacing timelines are now value timelines.
* Better code reuse in timelines and loaders.
* Loader changes for using time for Bezier segments.
* Binary knows the number of timelines ahead of time, for allocation.
2019-10-29 18:39:52 +01:00
NathanSweet
f165ffeb1c
Use time for Bezier segments rather than percent.
...
Saves calculating the percent between frames for the Bezier path.
2019-10-29 18:39:52 +01:00
badlogic
927b9cf866
Updated CHANGELOG.
2019-10-29 17:42:16 +01:00
badlogic
cd54a24b30
Merge branch '3.8' into 3.9-beta
2019-10-29 17:41:58 +01:00
badlogic
d2da9e795c
Updated CHANGELOG.
2019-10-29 17:41:46 +01:00
badlogic
0fa20f151f
Merge branch '3.8' into 3.9-beta
2019-10-29 17:29:06 +01:00
badlogic
55fde3217d
[as3][starling] Removed FDT support, added Visual Studio Code support instead. See the updated READMEs for spine-as3 and spine-starling for more information on required software and how to run and compile the examples and SWCs.
2019-10-29 17:28:51 +01:00
badlogic
5c71955e73
[as3][starling] Removed FDT project files and .swc files in old locations.
2019-10-29 17:14:48 +01:00
badlogic
151cf5143b
Merge branch '3.8' into 3.9-beta
2019-10-28 15:35:07 +01:00
badlogic
015de8ed4c
[cocos2d-objc] Added IK example. Also added SkeletonAnimation preUpdateWorldTransformListener and postUpdateWorldTransformsListener which allow modifying a skeleton pre- and post-calculation of the world transformations. See #1532 .
2019-10-28 15:34:53 +01:00
badlogic
078a4a7b3c
Merge branch '3.9-beta' of https://github.com/esotericsoftware/spine-runtimes into 3.9-beta
2019-10-28 14:10:04 +01:00
badlogic
ae6ae63d30
Updated CHANGELOG.md
2019-10-28 14:09:58 +01:00
badlogic
2e5560ca0f
Merge branch '3.8' into 3.9-beta
2019-10-28 14:09:38 +01:00
badlogic
656b08a32e
[cocos2dx] Added IK example, see #1532 . Also added SkeletonAnimation::setPreUpdateWorldTransformsListener() and SkeletonAnimation::setPostUpdateWorldTransformsListener().
2019-10-28 14:07:25 +01:00
NathanSweet
40e0f7c88c
Combined properties for rgb channels.
2019-10-26 17:18:01 +02:00
NathanSweet
93ca505864
Value space timelines, multiple property IDs per timeline, rotation not limited -180/180, clean up.
...
* Timeline is an abstract base class rather than an interface.
* Timelines have a list of String property IDs rather than a single int ID.
* CurveTimeline is separated into percent and value timelines and the API is cleaned up.
* CurveTimeline stores Bezier curves more efficiently. Linear/stepped keys used to take up memory they didn't use (18 floats/key).
* Binary format knows how many keys are Bezier up front for more efficient loading.
* RotateTimeline is no longer limited to -180/180.
* ScaleTimeline and ShearTimeline no longer extend TranslateTimeline.
* PathConstraintSpacingTimeline no longer extends PathConstraintPositionTimeline.
2019-10-26 15:00:58 +02:00