API

Class FBXFileLoader

FBX file loader plugin for Babylon.js. Pure TypeScript implementation — no Autodesk FBX SDK dependency.

Implements

Index
extensions: any = FBXFileLoaderMetadata.extensions

Defines the extension the plugin is able to load.

name: any = FBXFileLoaderMetadata.name

Defines the name of the plugin.

  • Creates an FBX loader plugin instance with options from SceneLoader.

    Parameters

    • options: SceneLoaderPluginOptions

      Scene loader plugin options

    Returns ISceneLoaderPluginAsync

    The configured FBX loader

  • Imports meshes from an FBX file and adds them to the scene.

    Parameters

    • meshesNames: string | readonly string[] | null | undefined

      A string or array of mesh names to import, or null/undefined to import all meshes

    • scene: Scene

      The scene to add imported meshes to

    • data: unknown

      The FBX data to load

    • rootUrl: string

      Root URL used to resolve external resources

    • Optional_onProgress: (event: ISceneLoaderProgressEvent) => void

      Callback called while the file is loading

    • Optional_fileName: string

      Name of the file being loaded

    Returns Promise<ISceneLoaderAsyncResult>

    A promise containing the loaded meshes, particle systems, skeletons, animation groups, transform nodes, geometries, and lights

  • Loads all FBX content into an asset container.

    Parameters

    • scene: Scene

      The scene used to create the asset container

    • data: unknown

      The FBX data to load

    • rootUrl: string

      Root URL used to resolve external resources

    • Optional_onProgress: (event: ISceneLoaderProgressEvent) => void

      Callback called while the file is loading

    • Optional_fileName: string

      Name of the file being loaded

    Returns Promise<AssetContainer>

    A promise containing the loaded asset container

  • Loads all FBX content into the scene.

    Parameters

    • scene: Scene

      The scene to load the FBX content into

    • data: unknown

      The FBX data to load

    • rootUrl: string

      Root URL used to resolve external resources

    • Optional_onProgress: (event: ISceneLoaderProgressEvent) => void

      Callback called while the file is loading

    • Optional_fileName: string

      Name of the file being loaded

    Returns Promise<void>

    A promise that resolves when loading is complete