You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's my conclusion: you are using an outdated Spine library.
Now for the details.
In the provided example, there are 2 objects drawn, a circle and a square, along with a mask.
The code that iterates through the Spine slots:
for (let i = 0; i < count; i++) {
const slot = drawOrder[i];
follows the logic of the original (https://github.com/EsotericSoftware/spine-runtimes/blob/3.7/spine-ts/webgl/src/SkeletonRenderer.ts) except for:
if (!this._spine_3_7_99) {
if (!slot.bone.active) {
clipper.clipEndWithSlot(slot);
continue;
}
}
However, even if I comment out this code, the situation remains unchanged.
Tracing this code, I see 3 objects in this loop:
Set mask
Draw circle
Draw square
But it should:
Set mask
draw the circle
remove mask
draw the square
Please update the spine library and rebuild playcanvas-spine.4.1.js.
Dear Mr. mvaligursky
Here's my conclusion: you are using an outdated Spine library.
Now for the details.
In the provided example, there are 2 objects drawn, a circle and a square, along with a mask.
The code that iterates through the Spine slots:
for (let i = 0; i < count; i++) {
const slot = drawOrder[i];
follows the logic of the original (https://github.com/EsotericSoftware/spine-runtimes/blob/3.7/spine-ts/webgl/src/SkeletonRenderer.ts) except for:
if (!this._spine_3_7_99) {
if (!slot.bone.active) {
clipper.clipEndWithSlot(slot);
continue;
}
}
However, even if I comment out this code, the situation remains unchanged.
Tracing this code, I see 3 objects in this loop:
But it should:
Please update the spine library and rebuild playcanvas-spine.4.1.js.
You can check:
https://playcanvas.com/editor/scene/2001633
https://www.youtube.com/shorts/BnI2MctLFNg
https://github.com/eugene1kolombet/public/blob/main/moving_mask_spine_test.zip
Thank You!
The text was updated successfully, but these errors were encountered: