You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

babylonjs-loader-fbx

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babylonjs-loader-fbx

Fbx loader for the babylon.js application

0.0.4
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 01 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts