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

FBXLoader: Inflate.min.js required #16602

Closed
3 tasks done
jiawenquan opened this issue May 29, 2019 · 2 comments
Closed
3 tasks done

FBXLoader: Inflate.min.js required #16602

jiawenquan opened this issue May 29, 2019 · 2 comments

Comments

@jiawenquan
Copy link

jiawenquan commented May 29, 2019

import {FBXLoader} from "three/examples/jsm/loaders/FBXLoader";
      
      const objLoader = new FBXLoader();
      // TODO: Add error handling.
      objLoader.load(file, async (object: any) => {
      scene.add(object);
      });

error: THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js

Three.js version
  • Dev
Browser
  • All of them
OS
  • All of them
@Mugen87 Mugen87 changed the title TypeScript: FBXLoader.d.ts fbx load error FBXLoader: Inflate.min.js required May 29, 2019
@Mugen87
Copy link
Collaborator

Mugen87 commented May 29, 2019

inflate.min.js is currently not available as a module so you have to import it via the script tag like so:

<script src="libs/inflate.min.js"></script>

@jiawenquan
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants