rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
717 stars 52 forks source link

Webgl2 runtime can't render more than a single artboard of the same type at a time #364

Open DanEscamilla opened 2 months ago

DanEscamilla commented 2 months ago

Description

When trying to use the @rive-app/webgl2-advanced runtime, I cannot render more than a single arboard at a time. While using @rive-app/webgl-advanced or @rive-app/canvas-advanced does work.

Provide a Repro

Here is a codesandbox environment where the error can be replicated:

https://codesandbox.io/p/devbox/interesting-vaughan-lgwyy9?file=%2Fsrc%2Fmain.ts%3A6%2C33&workspaceId=8ef87d80-6e7c-4b7a-af9b-e9a72244ca0e

Source .riv/.rev file

The artboards can be extracted from the public folder in the codesandbox environment. names:

Expected behavior

Have 5 repeated artboards be rendered

Screenshots

Scenario single artboard, webgl2 runtime: Screenshot 2024-08-21 at 11 18 15

Scenario multiple artboards, webgl2 runtime: Screenshot 2024-08-21 at 11 20 02

Scenario multiple artboards, webgl runtime: Screenshot 2024-08-21 at 11 20 19

Browser & Versions (please complete the following information)

HayesGordon commented 2 months ago

Hi @DanEscamilla thank you for reporting, we'll investigate the issue