GLTF2Export

Class for generating glTF data from a Babylon scene.

Hierarchy

  • GLTF2Export

Index

Methods

Static GLBAsync

Find examples in Playground
  • Exports the geometry of the scene to .glb file format asychronously

    Parameters

    • scene: Scene

      Babylon scene with scene hierarchy information

    • filePrefix: string

      File prefix to use when generating glb file

    • Optional options: IExportOptions

      Exporter options

    Returns Promise<GLTFData>

    Returns an object with a .glb filename as key and data as value

Static GLTFAsync

Find examples in Playground
  • Exports the geometry of the scene to .gltf file format asynchronously

    Parameters

    • scene: Scene

      Babylon scene with scene hierarchy information

    • filePrefix: string

      File prefix to use when generating the glTF file

    • Optional options: IExportOptions

      Exporter options

    Returns Promise<GLTFData>

    Returns an object with a .gltf file and associates texture names as keys and their data and paths as values

Generated using TypeDoc