506 Commits

Author SHA1 Message Date
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
badlogic
8866925570 [libgdx] Many micro optimizations, shaved off 40% of software clipping runtime. 2017-03-27 20:39:20 +02:00
badlogic
019a8e6587 [libgdx] Using Raptor for clip test, better worst case approximation 2017-03-27 19:26:35 +02:00
badlogic
6ae0c319ac [libgdx] Minor cleanup & optimizations, timing code in ClipTest 2017-03-27 19:05:35 +02:00
badlogic
af3b5655fc [libgdx] Added software clipping to SkeletonRenderer. Requires a polygon sprite batch and convex clipping attachment. 2017-03-27 18:50:44 +02:00
badlogic
c73971eb4c [libgdx] Refactored clipping code to take array, offset, stride, added triangulation and barycentric interpolation of UVs. 2017-03-27 16:52:58 +02:00
badlogic
b3ac8a7f72 [libgdx] Added SutherlandHodgmanClipper and corresponding SoftwareClippingTest 2017-03-27 15:20:00 +02:00
badlogic
9a086a5c18 [libgdx] Renamed TrigUtils to SpineUtils. Added SutherlandHodgmanClipper and corresponding SoftwareClippingTest 2017-03-27 15:19:27 +02:00
badlogic
0b40dd7a9f Updated exports 2017-03-27 10:19:51 +02:00
Nathan Sweet
8d4d573104 Javadoc 2017-03-26 17:24:21 +09:00
Nathan Sweet
e4320e281f Fixed Skeleton Viewer loading with mixing multiple checked. 2017-03-26 12:49:42 +09:00
Nathan Sweet
6c2ec1b46b Moved multiple mixing checkbox. 2017-03-26 09:17:42 +09:00
Nathan Sweet
b4e927f539 Added multiple mixing checkbox to the Skeleton Viewer. 2017-03-26 09:14:10 +09:00
Nathan Sweet
13c34e8751 Fixed the dipping problem by making multiple mixing optional and disabled by default. 2017-03-26 09:13:53 +09:00