I’m using the line : “BABYLON.DracoCompression.DefaultNumWorkers = 0;”. To force the Engine to use the default js script and not the wasm one because of an incompatibility with JS Obfuscator. But since the 6.21.1 version, the line throw this error : “Engine must be provided in the buffer constructor in order to create”.
I cannot reproduce it in the PG. I’m using Babylon.js in Electron with Webpack to bundle the whole. Maybe it come from it. I still not figured out why but It seems that the worker cannot access the engine.
@bghgary@Kidsarow Greetings, I am also having this exact error but only on the Native side not on the BabylonJS side.
its coming from here:
As stated above, was working fine before prior to the upgrade to latest (6.21.1). Was there an update to the draco decoder or something? Obviously the worker does not see the Engine. I’ll see what I can do for a repro in the Native Example app.
Unhandled exception at line 62, column 5 in app:///Scripts/index.js
0x800a139e - JavaScript runtime error: Unable to load from https://dl.dropbox.com/scl/fi/t1i9nvc0o0it06lqtz4rg/exterior-1.glb?rlkey=knvmokfrism9q6sksmxbzxzxp: Unable to get absolute URL. Override BABYLON.Tools.GetAbsoluteUrl to a custom implementation for the current context.
also in index.js you can add this to make sure the draco decoder is set up correctly…
I don’t think Draco works in native. There are some issues with loading scripts that make it not work. This hasn’t changed recently. Did Draco work for you before and now it’s not working?
@bghgary we got draco working. But im having a hard time replicating this exact issue on the Example App. Plan B will be to figure out how to get you our actual app so you can debug through it.