519 Commits

Author SHA1 Message Date
badlogic
59eb90eb66 [c] Added Triangulator. Decomposition is leaking. 2017-04-24 13:58:55 +02:00
Nathan Sweet
7b40f0c4d0 Return number of clipping polygons.
For metrics in editor.
2017-04-21 15:07:10 +09:00
Nathan Sweet
a50ee49781 Renamed ConvexDecomposer to Triangulator. 2017-04-21 14:52:02 +09:00
Nathan Sweet
6454d76700 Revert AnimationState fix, which likely breaks mixing > 2 animations (even when multiple mixing is false, by using multiple tracks). 2017-04-21 13:18:15 +09:00
Nathan Sweet
6ceb623e54 Always use timelinesLast when not multipleMixing.
http://esotericsoftware.com/forum/Blend-Weirdness-in-Unity-3-5-7263?p=38334#p38334
2017-04-21 12:13:53 +09:00
badlogic
0fd553e75a [csharp][libgdx] Fixed indexing in RegionAttachment. [monogame][xna] Fixed SkeletonMeshRenderer clipping 2017-04-20 15:02:24 +02:00
badlogic
a1889341c9 [libgdx] Fixed SkeletonViewer scale on HDPI screens, fixed NPE when saving preferences if no skeleton is loaded yet 2017-04-20 13:54:05 +02:00
Nathan Sweet
62db5d29de Merge remote-tracking branch 'origin/3.6-beta' into 3.6-beta 2017-04-20 20:47:54 +09:00
Nathan Sweet
f881ee6942 [libgdx] SkeletonViewer supports 2x scale for 4K displays. 2017-04-20 20:47:19 +09:00
badlogic
8920840ecf [starling] Fixed renderer, ignores path attachments. Fixed samples, click on sprites to advance to next sample. Updated assets 2017-04-11 13:11:02 +02:00
badlogic
bb93011144 [libgdx] Fixed Box2D test, offset bounding boxes by skeleton x/y 2017-04-11 12:25:09 +02:00
Nathan Sweet
47155e4427 Don't use setup pose for last apply when there is a next animation.
http://esotericsoftware.com/forum/Mixing-fail-in-cocos2d-x-8200?p=38086#p38086
2017-04-10 22:08:35 +09:00
Nathan Sweet
f35bbc33f5 Fixed clipping end slot. 2017-04-08 12:26:07 +09:00
Nathan Sweet
15961df0e3 Ensure clipping always ends. 2017-04-08 00:15:05 +09:00
Nathan Sweet
ff98e136a1 Bit of reorganization.
It's pretty now!
2017-04-07 16:54:07 +09:00
Nathan Sweet
f8ea8e99ca Only use mixAlpha for multiple mixing.
closes #871
2017-04-07 11:14:25 +09:00
Nathan Sweet
160c491d90 Fixed min height of skin and animation select boxes. 2017-04-07 11:13:35 +09:00
Nathan Sweet
0b514ea08c Optimization / clean up. 2017-04-06 18:39:13 +09:00
Nathan Sweet
e334d7a27a Don't need local to track if all edges were outside. 2017-04-06 18:09:01 +09:00
Nathan Sweet
3adaf1b9ac Bit of organization. 2017-04-05 00:18:42 +09:00
Nathan Sweet
c0161c7c60 Skip further clipping for a triangle completely inside a clipping polygon. 2017-04-04 23:40:30 +09:00
Nathan Sweet
c558771cac Prefer local vs clipOutput#size field. 2017-04-04 23:26:43 +09:00
Nathan Sweet
c2b1140ef0 Unused import. 2017-04-04 23:26:17 +09:00
badlogic
18f0e6fe7f [libgdx] Fixed SkeletonClipping, ensure input clipping area is clockwise 2017-04-03 11:42:19 +02:00
Nathan Sweet
c5cf1155a0 Clean up. 2017-04-01 22:53:26 +09:00
Nathan Sweet
1254b06a91 Fixed AnimationState tests, added notes. 2017-04-01 16:59:40 +09:00
Nathan Sweet
058b7587e1 More prettying. 2017-04-01 10:31:38 +09:00
Nathan Sweet
6e97b7e75f Swapped light, dark. 2017-04-01 09:06:29 +09:00
Nathan Sweet
7235f7c6b1 Moved SkeletonClipping to utils, since it isn't public API. 2017-04-01 08:52:06 +09:00
Nathan Sweet
7829b39e00 Added spiral test. 2017-04-01 08:48:40 +09:00
Nathan Sweet
cf9103d1f5 Missed one.
:D
2017-03-31 20:02:55 +09:00
Nathan Sweet
57535b68dd Applied Nate's beautifier and standard set of useless optimizations. 2017-03-31 19:52:06 +09:00
badlogic
241c7980f8 Merged with origin 2017-03-31 11:23:11 +02:00
badlogic
9ca215f2e9 [libgdx] Refactored SkeletonRenderer, moved clipping related code to SkeletonClipping, removed stencil clipping 2017-03-31 11:18:39 +02:00
Nathan Sweet
ea6319820f Fixes for clipping. 2017-03-31 17:45:33 +09:00
badlogic
1675658f1a Merged with Nate's changes 2017-03-31 10:25:45 +02:00
badlogic
ace38dca5f [libgdx] Added convex decomposition to SkeletonRenderer. 2017-03-31 10:22:25 +02:00
Nathan Sweet
bc3cbf22e8 Clipping attachment loading, clean up. 2017-03-31 10:45:45 +09:00
badlogic
b8a603d6af [libgdx] Fixed up software clipping test 2017-03-30 16:03:37 +02:00
badlogic
23fd36a5f1 [libgdx] Improved and cleaned up decomposer 2017-03-30 15:31:24 +02:00
badlogic
1617eae131 [libgdx] Generating random concave polygons is hard. 2017-03-30 11:40:19 +02:00
badlogic
61d5a3de5a [libgdx] Working version of convex decomposer, can improve result by merging left over triangles at end of decomposition 2017-03-30 10:55:11 +02:00
badlogic
afd2a95594 [libgdx] Added first iteration of convex decomposer. Needs testing.2 2017-03-29 17:19:53 +02:00
badlogic
dc53f8d293 [libgdx] Clipper assumes counter clockwise order, easier to adapt decomposition algorithm that way 2017-03-29 14:30:11 +02:00
badlogic
a665b0e598 [libgdx] Inlined line intersection in clipper, faster on Android 2017-03-28 18:53:16 +02:00
badlogic
7245115a63 [libgdx] Early out if all edges of a triangle are outside the clip region 2017-03-28 18:16:45 +02:00
badlogic
242eaf2bcc [libgdx] Remove Array.add, avoid copying 2017-03-28 18:03:43 +02:00
badlogic
687a3ade7b [libgdx] SutherlandHodgman assumes clip area is given clockwise 2017-03-28 17:27:19 +02:00
badlogic
d368deb999 [libgdx] Android specific optimization, removed Math.signum call 2017-03-28 17:12:30 +02:00
badlogic
a10fd95e1b [libgdx] More micro optimizations for clipper. 2017-03-28 12:20:10 +02:00