It’s a newbie question, but how to include FBXLoader library using npm?
I have installed npm three and I see there is FBXLoader library inside node_modules, but how to reach it? To get three I use:
var THREE = require('three');
It’s a newbie question, but how to include FBXLoader library using npm?
I have installed npm three and I see there is FBXLoader library inside node_modules, but how to reach it? To get three I use:
var THREE = require('three');
When starting a new project, it’s actually best to work with ES6 modules (instead of CommonJS). You can then import FBXLoader
like so:
import { FBXLoader} from 'three/examples/jsm/loaders/FBXLoader';