ThreePipe
    Preparing search index...

    Class GLTFWriter2

    Hierarchy

    Index
    _defaultMaterial: MeshStandardMaterial<MaterialEventMap> = ...
    byteOffset: number
    options: GLTFExporterOptions & {
        exporterOptions: GLTFExporter2Options;
        externalImagesInExtras: boolean;
    }
    processBuffer: (buffer: ArrayBuffer) => number
    serializationMeta: SerializationMetaType = ...
    TPAssetVersion: 1
    • Images are encoded asynchronously and finish in any order. three.js gives each one the next bufferView when it finishes, so the same scene exported twice gives different files. Here each image gets a placeholder index instead (negative), and the bufferViews are written in the order of json.images once everything is encoded.

      Parameters

      • blob: Blob

      Returns Promise<number>

    • Parameters

      • image: any
      • format: PixelFormat
      • flipY: boolean
      • mimeType: string = 'image/png'

      Returns number

    • Used in GLTFWriter2.processTexture for rootPath. Note that this does not check for options.exporterOptions.embedUrlImages, it must be done separately.

      Parameters

      • image: any
      • uri: string
      • flipY: boolean
      • mimeType: string = 'image/png'

      Returns any