engine
engine copied to clipboard
Self-hosted engine binary still requires cdn.8thwall.com for Draco library
Description
The xr-standalone.zip distributed for self-hosted deployments contains hardcoded references to cdn.8thwall.com, preventing fully offline operation.
Affected Files
| File | Line | Code |
|---|---|---|
xr.js |
43 | resolveDracoWorker:dI("https://cdn.8thwall.com/web/resources/draco-worker-l5sniji5.js") |
xr.js |
43 | resolveDracoWrapper:dI("https://cdn.8thwall.com/web/resources/draco_wasm_wrapper-l325u8do.js") |
xr-slam.js |
43 | resolveDracoWorker:pQ("https://cdn.8thwall.com/web/resources/draco-worker-l5sniji5.js") |
xr-slam.js |
43 | resolveDracoWrapper:pQ("https://cdn.8thwall.com/web/resources/draco_wasm_wrapper-l325u8do.js") |
Problem
According to the Self-hosted Project Migration Guide, projects should be able to run independently after migration. However, the
engine still fetches Draco (3D mesh compression) libraries from cdn.8thwall.com at runtime.
When 8th Wall CDN is discontinued, self-hosted projects using Draco-compressed 3D models will fail to load.
Suggested Solutions
- Include Draco files in
xr-standalone.zip- Add the required Draco worker files to the distribution - Make paths configurable - Allow developers to specify custom Draco library paths via
XR8.configure()or similar - Use Google's official Draco CDN - Reference
https://www.gstatic.com/draco/versioned/decoders/instead, which is stable and maintained by Google
Environment
xr-standalone.zipdownloaded from https://github.com/8thwall/engine (latest as of 2025-01)
Sorry for the confusion, resolveDracoWorker/resolveDracoWrapper are actually implemented as
const unsupported = (resource: string) => () => {
throw new Error(`[XR] Resource "${resource}" is not supported in this environment.`)
}
Draco compression is no longer used by the engine after removing VPS.