43 Commits

Author SHA1 Message Date
Richard Fu
167470fb16 [ts][pixi] Fix atlas src cannot be resolved for preferred texture 2024-09-09 15:16:48 +02:00
Gordon Cummings
d774632ccf replaces setTransform on slotObject
setTransform on pixi displayObjects performs:
```
this.scale.x = !scaleX ? 1 : scaleX;
this.scale.y = !scaleY ? 1 : scaleY;
```
meaning any transformations to scale 0 will become scale 1
2024-08-13 11:55:11 +02:00
Davide Tantillo
d8e0ca097e [ts][pixi] Formatting 2024-08-13 09:57:47 +02:00
Davide Tantillo
29369493db [ts][pixi] Fix existing meshes when attachments are remove, and clippings for slot objects. 2024-08-13 09:57:47 +02:00
Gordon Cummings
8d39c09de0 formatting
was auto using spaces over tabs
2024-08-13 09:57:47 +02:00
Gordon Cummings
dfa6098aa6 clipping mask vertices fix
in the case of weighted vertices on clipping attachments, we were previously using the length of the vertices array, which is not the same as the worldVerticesLength

example clipping attachment data:
"vertexCount": 4,
"vertices": [ 1, 15, -47.71, 34.91, 1, 1, 18, -47.86, -35.06, 1, 1, 17, 47.8, -34.9, 1, 1, 16, 47.81, 34.87, 1 ],

resulting vertices length would be 12
we actually needed 8
the result is an array with 8 correct numbers and 4 trailing numbers from the vertices array
2024-08-13 09:57:47 +02:00
Gordon Cummings
c6614d7db7 hide existing meshes when attachments are removed
when empty keyframes are set on attachments, we shouldn't see the mesh as it should have technically been removed (hidden)
2024-08-13 09:57:47 +02:00
Davide Tantillo
b4fd5d7bdd [ts][pixi] Fix memory leak due to not removing spine object from ticket. Close #2571. 2024-07-05 16:26:07 +02:00
Davide Tantillo
52cc1d44d8 [ts][pixi] Performance improvements. 2024-07-04 15:15:25 +02:00
Davide Tantillo
99affd27c7 [ts][pixi] Fixed alpha issue for mesh not using dark tint (see #2561). 2024-06-26 15:47:05 +02:00
Davide Tantillo
26f8b056bb [ts][pixi] Fixed regression that caused multiple animatino update at window resize. 2024-06-21 13:25:04 +02:00
Davide Tantillo
64fe74e91c [ts][pixi] Fix parent alpha not working for dark tint. Aligned DarkTintMaterial shader with the Batcher one. 2024-06-18 18:29:35 +02:00
Davide Tantillo
cc6fc1f5b4 [ts][pixi] Fix dark tint + alpha not working. Closes #2550. 2024-06-17 16:56:21 +02:00
Davide Tantillo
28a503a7ac [ts][pixi] Fixed regression on rendering setup pose before update state (removed internal Ticker). Closes #2539. 2024-06-16 11:19:53 +02:00
Davide Tantillo
61e9be2dcc [ts][pixi] clipping + alpha for pixi objects added to slots 2024-06-12 12:41:55 +02:00
Davide Tantillo
b4d61790f7 [ts] Port of earlier clipping cleanup commit 485de74: SkeletonClipping.ClipTriangles clean up. 2024-06-11 15:18:26 +02:00
Davide Tantillo
17da13d432 [ts][pixi] Add before/afterUpdateWorldTransforms to inject easily logic in skeleton lifecycle 2024-06-05 17:35:33 +02:00
Davide Tantillo
985dd84027 [ts][pixi] Empty slotsObject on destroy. 2024-06-05 16:57:05 +02:00
Davide Tantillo
e290569748 [ts][pixi] Add feature to attach pixi objects to slots
[ts][pixi] Format fix

[ts][pixi] Format fix

[ts][pixi] Use world scale for slot object.
2024-06-05 16:18:09 +02:00
Mario Zechner
e498e96355 [pixi] Update internals to be more straight forward. 2024-06-04 12:24:49 +02:00
Davide Tantillo
8e20a5e02b [ts][pixi] Use pixi coordinate transformation functions 2024-06-03 11:01:15 +02:00
Davide Tantillo
569adb1cd1 [ts][pixi] Add control bones example in example list 2024-05-28 11:41:41 +02:00
Davide Tantillo
1336255592 [ts][pixi] Add methods to transform from/to pixi/spine coordinates. Add control bone example to show usage. 2024-05-24 16:38:09 +02:00
Richard Fu
89831677e4 [ts][pixi] Add tint property for Pixi's convention. 2024-05-17 12:23:36 +02:00
Davide Tantillo
77b6a5bb03 [ts][pixi] Add JSDoc. 2024-05-16 12:01:22 +02:00
Mario Zechner
eb91c170a4 Formatting 2024-05-10 14:00:45 +02:00
Davide Tantillo
098fc0847a [ts][pixi] DarkTint renderer is registered by the runtime. DarkTintMesh is automatically used if a slot has dark color. 2024-05-07 12:14:34 +02:00
Davide Tantillo
0ac67cfbee
[ts][pixi] Added PMA support. 2024-03-26 10:40:26 +01:00
Davide Tantillo
0bd4a1af07
[ts][pixi] Started physics example porting 2024-03-21 18:21:29 +01:00
Harald Csaszar
7aeb4c3a27 Merge branch '4.1' into 4.2-beta 2024-01-10 17:16:26 +01:00
Vadim Goncharov
43d2564b0a
[ts][pixi] Fix not working alpha channel in mesh animations (#2439) 2024-01-08 00:35:47 +01:00
Mario Zechner
4598da9a21 [ts] Temporarily use Physics.update everywhere 2023-11-26 12:58:14 +01:00
Mario Zechner
b09e189c64 [ts] Add missing .js extensions. 2023-11-06 13:32:35 +01:00
Mario Zechner
8d832b3834 [ts] Add missing .js extensions. 2023-11-06 13:30:50 +01:00
Mario Zechner
9d4d86ced3 [ts] Attempt to fix incompatibility with Node's ESM implementation. See #2407 2023-11-06 12:42:00 +01:00
Vadim Goncharov
09bb49b5db
[pixi][phaser][threejs] Fixed "ReferenceError: window is not defined" in Node.js environment. See #2409 (#2410) 2023-11-06 11:41:47 +01:00
Mario Zechner
f38790eeed [pixi] Update to 7.3.0, generalize loaders due to PIxi API change. 2023-09-22 16:03:50 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Mario Zechner
8d04c7a75b [pixi] Clean-up and extend examples 2023-07-18 14:51:57 +02:00
Mario Zechner
6fafd96eca [pixi] License headers, see #2305 2023-07-12 15:15:56 +02:00
Mario Zechner
dd9d7e5558 [ts] Fix formatting issue detected by build. 2023-06-28 10:33:54 +02:00
Mario Zechner
8fb691c054 [pixi] Clean-up and improvements. 2023-06-27 15:10:53 +02:00
eCode
4876dba946 feat: add support for pixijs 2023-06-03 13:05:21 -03:00