Hi I am trying to play my fbx file by looking at the three.js document.
I wrote it exactly like the example of the fbx loader, but my canvas is empty. You have changed the path of the modules to import and the path of the fbx file, but it remains the same. It’s a very basic question, but I want to solve it.
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - FBX loader</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
</head>
<body>
<div id="info">
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - FBXLoader<br />
Character and animation from <a href="https://www.mixamo.com/" target="_blank" rel="noopener">Mixamo</a>
</div>
<script type="module">
import * as THREE from '../build/three.module.js';
import Stats from './jsm/libs/stats.module.js';
This file has been truncated. show original
Mugen87
January 17, 2021, 12:47pm
2
In situations like that, it’s best to open the browser’s developer tools and check the browser console for errors and warnings.
1 Like
Thanks to you, I checked it out and added some modules, and the error was reduced. but
Uncaught SyntaxError: The requested module
‘./jsm/libs/inflate.module.min.js’ does not provide an export named ‘Zlib’
There’s an error window like that. How should we handle this situation?