rive-wasm icon indicating copy to clipboard operation
rive-wasm copied to clipboard

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

Open DanEscamilla opened this issue 1 year ago • 1 comments

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:

  • cute_robot.riv
  • robo_dude.riv

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)

  • Browser: Chrome 127.0.6533.100
  • OS: MacOS 13.6.4 (22G513)
  • NPM Version: 10.5.0

DanEscamilla avatar Aug 21 '24 17:08 DanEscamilla

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

HayesGordon avatar Aug 23 '24 16:08 HayesGordon