GltfSaveOptions class

GltfSaveOptions class

Save options for glTF format.

Inheritance: GltfSaveOptionsSaveOptionsIOConfig

The GltfSaveOptions type exposes the following members:

Constructors

ConstructorDescription
initConstructor of GltfSaveOptions
initConstructor of GltfSaveOptions

Properties

PropertyDescription
file_formatGets the file format that specified in current Save/Load option.
encodingGets or sets the default encoding for text-based files.
Default value is null which means the importer/exporter will decide which encoding to use.
file_systemAllow user to handle how to manage the external dependencies during load/save.
lookup_pathsSome files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.
file_nameThe file name of the exporting/importing scene.
This is optional, but useful when serialize external assets like OBJ’s material.
export_texturesTry to copy textures used in scene to output directory.
pretty_printThe JSON content of GLTF file is indented for human reading, default value is false
fallback_normalWhen GLTF2 exporter detected an invalid normal, this will be used instead of its original value to bypass the validation.
Default value is (0, 1, 0)
embed_assetsEmbed all external assets as base64 into single file in ASCII mode, default value is false.
image_formatStandard 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.
Default value is GltfEmbeddedImageFormat.PNG
use_common_materialsSerialize materials using KHR common material extensions, default value is false.
Set this to false will cause Aspose.3D export a set of vertex/fragment shader if GltfSaveOptions.ExportShaders
external_draco_encoderUse external draco encoder to accelerate the draco compression speed.
flip_tex_coord_vFlip texture coordinate v(t) component, default value is true.
buffer_fileThe file name of the external buffer file used to store binary data.
If this file is not specified, Aspose.3D will generate a name for you.
This is ignored when export glTF in binary mode.
save_extrasSave scene object’s dynamic properties into ’extra’ fields in the generated glTF file.
This is useful to provide application-specific data.
Default value is false.
apply_unit_scaleApply AssetInfo.unit_scale_factor to the mesh.
Default value is false.
draco_compressionGets or sets whether to enable draco compression

See Also