WebGL in Workers
I am trying to make this via cloudflare workers.
But sadly WebGL does not work in cloudflare.
What is the usecase?
I have a worker that tries to go to the page and is making a screenshot on canvas on the webpage.
This implementation is working for 90% of cases, however when someone uses WebGL (in p5js), the returned image from worker is a white screen.
I already have an implementation: https://github.com/kodadot/workers/tree/main/capture
Working minimal PoC (on Vercel): https://github.com/vikiival/vercelgl
https://dev.to/rainerselvet/serverless-3d-webgl-rendering-with-threejs-4o11
I was sent here from #browser-rendering-api-beta
https://discord.com/channels/595317990191398933/1110268932788588624/1191708168489812038
GitHub
workers/capture at main · kodadot/workers
Implementation of Cloudflare Workers in KodaDot. Contribute to kodadot/workers development by creating an account on GitHub.
GitHub
GitHub - vikiival/vercelgl
Contribute to vikiival/vercelgl development by creating an account on GitHub.
DEV Community
Serverless 3D WebGL rendering with ThreeJS
This image above was rendered in a serverless function on page load (not kidding, check the image...
0 Replies