@imarabinda/babylonjs-loader-fbx
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

FBX Loader for babylon js

This repo is a browser port of the Babylonjs Editor FBXLoader

Installation

CDN

https://metameta-libs.s3.eu-central-1.amazonaws.com/FBXLoader.js

After the import you can access to FBXLoaderModule global object and use it like this

BABYLON.SceneLoader.RegisterPlugin(new FBXLoaderModule.FBXLoader());

...

await BABYLON.SceneLoader.ImportMeshAsync(null, 'path/to', 'filename.fbx', scene);

NPM

To install va npm package manager use:

npm i babylon-fbx-loader

This will allow you to import it using:

import { FBXLoader } from 'babylon-fbx-loader';
import { SceneLoader } from "@babylonjs/core";

SceneLoader.RegisterPlugin(new FBXLoader());

...

await SceneLoader.ImportMeshAsync(null, 'path/to', 'filename.fbx', scene);

YARN

Additionally, you can install with yarn:

yarn add babylon-fbx-loader

Known issues:

  • mainly supports geometries, bones
  • partially supports materials (only standard material and no video support at the moment)
  • issues with animations
  • no support of morph targets
  • no support of cameras and lights

The loader is in the pretty raw state, but if you need static meshes rather than dynamic it can give pretty decent results:

Carriage image

Formula 1 image

Readme

Keywords

none

Package Sidebar

Install

npm i @imarabinda/babylonjs-loader-fbx

Weekly Downloads

3

Version

1.0.2

License

ISC

Unpacked Size

102 kB

Total Files

30

Last publish

Collaborators

  • imarabinda