GltfSaveOptions

GltfSaveOptions

Overview

GltfSaveOptions is a class in Aspose.3D FOSS for .NET. Inherits from: SaveOptions.

Save options for glTF format

This class provides 4 methods for working with GltfSaveOptions objects in .NET programs. Available methods include: GltfSaveOptions, SaveOptions. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: ApplyUnitScale, BufferFile, DracoCompression, EmbedAssets, Encoding, ExportTextures, and 13 more.

Properties

NameTypeAccessDescription
PrettyPrintboolRead/WriteThe JSON content of GLTF file is indented for human reading, default value is false
FallbackNormalNullable<Vector3>Read/WriteWhen GLTF2 exporter detected an invalid normal, this will be used instead of its original value to bypass the validation.
EmbedAssetsboolRead/WriteEmbed all external assets as base64 into single file in ASCII mode, default value is false.
ImageFormatGltfEmbeddedImageFormatRead/WriteStandard glTF only supports PNG/JPG as its texture format, this option will guide how Aspose.3D convert the non-standard images to supported format during the exporting.
MaterialConverterMaterialConverterRead/WriteCustom converter to convert the geometry’s material to PBR material If this is unassigned, glTF 2.0 exporter will automatically convert the standard material to PBR material.
UseCommonMaterialsboolRead/WriteSerialize materials using KHR common material extensions, default value is false.
ExternalDracoEncoderstringRead/WriteUse external draco encoder to accelerate the draco compression speed.
FlipTexCoordVboolRead/WriteFlip texture coordinate v(t) component, default value is true.
BufferFilestringRead/WriteThe file name of the external buffer file used to store binary data.
SaveExtrasboolRead/WriteSave scene object’s dynamic properties into ’extra’ fields in the generated glTF file.
ApplyUnitScaleboolRead/WriteApply to the mesh.
DracoCompressionboolRead/WriteGets or sets whether to enable draco compression
ExportTexturesboolRead/WriteTry to copy textures used in scene to output directory.
FileSystemFactoryFileSystemFactoryRead/WriteGets or sets the factory class for FileSystem.
FileFormatFileFormatReadGets the file format that specified in current Save/Load option.
EncodingEncodingRead/WriteGets or sets the default encoding for text-based files.
FileSystemFileSystemRead/WriteAllow user to handle how to manage the external dependencies during load/save.
LookupPathsList<string>Read/WriteSome files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
FileNamestringRead/WriteThe file name of the exporting/importing scene.

Methods

SignatureDescription
GltfSaveOptions(contentType: FileContentType)Constructor of
GltfSaveOptions(format: FileFormat)Constructor of
SaveOptions()Initializes a new instance of the SaveOptions class.
SaveOptions(format: FileFormat)Initializes a new instance of the SaveOptions class with a file format.

See Also

 English