Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webworker does not support loading dae #333

Open
Baleen-Y opened this issue Jan 9, 2024 · 1 comment
Open

webworker does not support loading dae #333

Baleen-Y opened this issue Jan 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Baleen-Y
Copy link

Baleen-Y commented Jan 9, 2024

  • three version: "0.158.0"
  • @types/three version: "0.158.2"
  • three-stdlib version: "2.28.5"

Problem description:

Your README describes support for workers: A build system for ESM and CJS, compatible with browser, workers, and Node.
However, it is not supported in actual use. When using ColladaLoader to load the dae model, an error will be reported: ReferenceError: DOMParser is not defined

Relevant code:

  const loadingManager = new THREE.LoadingManager()
  const loader = new ColladaLoader(loadingManager)
  loader.load(‘xxx.dae’, function (collada) {
  })

Suggested solution:

support webworker load dae model.

@Baleen-Y Baleen-Y added the bug Something isn't working label Jan 9, 2024
@CodyJasonBennett
Copy link
Member

PR or suggestions welcome for how to parse an XML format without browser APIs.

All other codepaths work in workers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants