engine icon indicating copy to clipboard operation
engine copied to clipboard

Self-hosted engine binary still requires cdn.8thwall.com for Draco library

Open kidapu opened this issue 10 months ago • 1 comments

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

  1. Include Draco files in xr-standalone.zip - Add the required Draco worker files to the distribution
  2. Make paths configurable - Allow developers to specify custom Draco library paths via XR8.configure() or similar
  3. 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.zip downloaded from https://github.com/8thwall/engine (latest as of 2025-01)

kidapu avatar Jan 23 '26 07:01 kidapu

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.

cmbartschat avatar Feb 15 '26 16:02 cmbartschat