Module: Asset-Management
Enumerations
Classes
- AssetExporterPlugin
- AssetExporter
- EXRExporter2
- GLTFDracoExporter
- GLTFDracoExportPlugin
- GLTFExporter2
- GLTFWriter2
- SimpleJSONExporter
- SimpleTextExporter
- GLTFMaterialsBumpMapExtensionExport
- GLTFMaterialsDisplacementMapExtensionExport
- GLTFMaterialsLightMapExtensionExport
- GLTFMaterialsAlphaMapExtensionExport
- EXRLoadPlugin
- FBXLoadPlugin
- GLTFMeshOptPlugin
- GLTFMaterialsBumpMapExtension
- GLTFMaterialsDisplacementMapExtension
- GLTFMaterialsLightMapExtension
- GLTFMaterialsAlphaMapExtension
- KTXLoadPlugin
- KTX2LoadPlugin
- ObjMtlLoadPlugin
- Rhino3dmLoader2
- Rhino3dmLoadPlugin
- STLLoadPlugin
- BlobLoader
- DRACOLoader2
- DataUrlLoader
- GLTFLoader2
- MTLLoader2
- OBJLoader2
- ObjectLoader2
- SimpleJSONLoader
- ThreeMaterialLoader
- ZipLoader
- GLTFKHRMaterialVariantsPlugin
- GLTFExporterMaterialsVariantsExtensionExport
- GLTFMaterialsVariantsExtensionImport
Interfaces
Type aliases
ExportAssetOptions
Ƭ ExportAssetOptions: ExportFileOptions
& { convertMeshToIndexed?
: boolean
; name?
: string
; compress?
: boolean
}
BlobExt
Ƭ BlobExt: Blob
& { ext
: string
}
GLTFExporter2Options
Ƭ GLTFExporter2Options: GLTFExporterOptions
& { encrypt?
: boolean
; encryptKey?
: string
| Uint8Array
; embedUrlImages?
: boolean
; embedUrlImagePreviews?
: boolean
; exportExt?
: string
; preserveUUIDs?
: boolean
; externalImagesInExtras?
: boolean
; encodeUint16Rgbe?
: boolean
; jsonSpaces?
: number
}
Functions
createGenericExtensionClass
▸ createGenericExtensionClass(name
, textures?
): typeof GenericExtension
Parameters
Name | Type |
---|---|
name | string |
textures? | Record <string , string | number > |
Returns
typeof GenericExtension
processViewer
▸ processViewer(viewer
, writer
): any
Export viewer config. Data can be imported by importViewer
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
writer | GLTFWriter2 |
Returns
any
addGLTFExporter
▸ addGLTFExporter(exporter
, viewer
, exporterClass?
, onCtor?
): void
Parameters
Name | Type | Default value |
---|---|---|
exporter | IAssetExporter | undefined |
viewer | ViewerApp | undefined |
exporterClass | typeof GLTFExporter2 | GLTFExporter2 |
onCtor? | (ex : GLTFExporter2 ) => void | undefined |
Returns
void
addDracoLoader
▸ addDracoLoader(): Importer
<DRACOLoader2
>
Returns
addGLTFLoader
▸ addGLTFLoader(viewer
): Importer
<GLTFLoader2
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
addRGBELoader
▸ addRGBELoader(viewer
): Importer
<__class
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Importer
<__class
>
gltfExporterMaterialsVariantsExtensionExport
▸ gltfExporterMaterialsVariantsExtensionExport(writer
): GLTFExporterMaterialsVariantsExtensionExport
Parameters
Name | Type |
---|---|
writer | GLTFWriter2 |
Returns
GLTFExporterMaterialsVariantsExtensionExport
Variables
ALL_WEBGI_EXTENSIONS
• Const
ALL_WEBGI_EXTENSIONS: typeof Extension
[]
KHR_TEXTURE_BASISU
• Const
KHR_TEXTURE_BASISU: "KHR_texture_basisu"
glbEncryptionPreparser
• Const
glbEncryptionPreparser: IGLBEncryptionPreparser
khrMaterialsVariantsGLTF
• Const
khrMaterialsVariantsGLTF: "KHR_materials_variants"