Hi, I’d love to be able to save one of my babylonjs scenes to an animated gif.
I would like to … import GIFExporter from 'babylonjs-gifexporter'
However, I get an error from my webpack build about ‘gif.creator.service.js’ cannot be loaded because it uses new Worker() to require the file.
Anyone have a similar issue or know a workaround? I found a webpack package called ‘worker-plugin’ that seems like it should help but it doesn’t.
–Andy
In my runRenderLoop(), I call scene.render() and then capturer.capture(canvas) and it seems to work pretty well that way
This library had the same problem as babylonjs-gifexporter in that it can’t locate the gif worker service files if you import using webpack. To work around it, I pulled in the library as a script tag instead.