GLTF Draco Exporter

Extension of GLTFExporter2 that runs the output through gltf-transform for draco compression.

Hierarchy

  • GLTFExporter2
    • GLTFDracoExporter

Implements

  • IExportParser

Constructors

Properties

_encoderOptions: EncoderOptions
_io: WebIO
_loadedLibs: boolean = false
loader?: DRACOLoader2
processors: ((obj, options) => Promise<any>)[] = []

Type declaration

    • (obj, options): Promise<any>
    • Parameters

      • obj: any
      • options: GLTFExporter2Options

      Returns Promise<any>

ExportExtensions: ((parser) => GLTFExporterPlugin)[] = ...

Type declaration

Methods

  • Parameters

    • input: Object3D<Event, string> | Object3D<Event, string>[]
    • onDone: ((gltf) => void)
        • (gltf): void
        • Parameters

          • gltf: ArrayBuffer | {
                [key: string]: any;
            }

          Returns void

    • onError: ((error) => void)
        • (error): void
        • Parameters

          • error: ErrorEvent

          Returns void

    • options: GLTFExporter2Options = {}

    Returns void

  • Parameters

    • obj: any
    • __namedParameters: {
          compress: boolean;
          dracoOptions?: EncoderOptions;
      } & GLTFExporter2Options

    Returns Promise<Blob>

Generated using TypeDoc