Skip to main content

Class: GLTFWriter2

Asset-Management.GLTFWriter2

Hierarchy

  • GLTFWriter

    GLTFWriter2

Constructors

constructor

new GLTFWriter2()

Inherited from

GLTFExporter.Utils.GLTFWriter.constructor

Defined in

webgi/node_modules/@types/three/examples/jsm/exporters/GLTFExporter.d.ts:98

Methods

serializeUserData

serializeUserData(object, objectDef): void

Parameters

NameType
objectObject3D<Event, string> | Material<Event, string> | BufferGeometry<NormalBufferAttributes, Event, string>
objectDefany

Returns

void

Overrides

GLTFExporter.Utils.GLTFWriter.serializeUserData

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:9


processObjects

processObjects(objects): void

Parameters

NameType
objectsObject3D<Event, string>[]

Returns

void

Overrides

GLTFExporter.Utils.GLTFWriter.processObjects

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:45


processMaterial

processMaterial(material): null | number

Checks for shader material and does the same thing...

Parameters

NameType
materialMaterial<Event, string>

Returns

null | number

Overrides

GLTFExporter.Utils.GLTFWriter.processMaterial

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:60


processImageBlob

processImageBlob(blob, texture): any

Same as processImage but for image blobs

Parameters

NameType
blobBlob
textureTexture

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:105


processSampler

processSampler(map): number

Parameters

NameType
mapTexture

Returns

number

Overrides

GLTFExporter.Utils.GLTFWriter.processSampler

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:153


processTexture

processTexture(map): number

Parameters

NameType
mapTexture

Returns

number

Overrides

GLTFExporter.Utils.GLTFWriter.processTexture

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:165


processImage

processImage(image, format, flipY, mimeType?): number

Parameters

NameTypeDefault value
imageanyundefined
formatnumberundefined
flipYbooleanundefined
mimeTypestring'image/png'

Returns

number

Overrides

GLTFExporter.Utils.GLTFWriter.processImage

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:238


processImageUri

processImageUri(image, uri, flipY, mimeType?): any

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

Parameters

NameTypeDefault value
imageanyundefined
uristringundefined
flipYbooleanundefined
mimeTypestring'image/png'

Returns

any

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:251

Properties

_defaultMaterial

Protected _defaultMaterial: MeshStandardMaterial<Event, string>

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFWriter2.ts:54