effekseer / effekseer/EffekseerForWebGL

Offscreen Canvas Support

Open
#114 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
136
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Hello,

I tried to use Effekseer in a three.js app with an [Offscreen Canvas](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas) on a web worker today, but failed to make it happen.

First there are multiple usages of `new Image`, e.g. [here](https://github.com/effekseer/EffekseerForWebGL/blob/cec592161de6c631ffaada8704c3d01da7250725/src/js/effekseer.src.js#L497) and [here](https://github.com/effekseer/EffekseerForWebGL/blob/cec592161de6c631ffaada8704c3d01da7250725/src/js/effekseer.src.js#L93) which is not available on web workers. I replaced those with `createImageBitMap()`, but there is still an error thrown *somewhere* in a promise, followed by `[.WebGL-0x11f423912900] GL_INVALID_OPERATION: Must have element array buffer bound.`.

Would it be possible to make Effekseer for WebGL compatible with offscreen canvas rendering? 🙏
Kind Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.