1.0.9 • Published 1 year ago

babylon-fbx-loader v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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:

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago