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
| Name | Type | Access | Description |
|---|---|---|---|
PrettyPrint | bool | Read/Write | The JSON content of GLTF file is indented for human reading, default value is false |
FallbackNormal | Nullable<Vector3> | Read/Write | When GLTF2 exporter detected an invalid normal, this will be used instead of its original value to bypass the validation. |
EmbedAssets | bool | Read/Write | Embed all external assets as base64 into single file in ASCII mode, default value is false. |
ImageFormat | GltfEmbeddedImageFormat | Read/Write | Standard 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. |
MaterialConverter | MaterialConverter | Read/Write | Custom 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. |
UseCommonMaterials | bool | Read/Write | Serialize materials using KHR common material extensions, default value is false. |
ExternalDracoEncoder | string | Read/Write | Use external draco encoder to accelerate the draco compression speed. |
FlipTexCoordV | bool | Read/Write | Flip texture coordinate v(t) component, default value is true. |
BufferFile | string | Read/Write | The file name of the external buffer file used to store binary data. |
SaveExtras | bool | Read/Write | Save scene object’s dynamic properties into ’extra’ fields in the generated glTF file. |
ApplyUnitScale | bool | Read/Write | Apply to the mesh. |
DracoCompression | bool | Read/Write | Gets or sets whether to enable draco compression |
ExportTextures | bool | Read/Write | Try to copy textures used in scene to output directory. |
FileSystemFactory | FileSystemFactory | Read/Write | Gets or sets the factory class for FileSystem. |
FileFormat | FileFormat | Read | Gets the file format that specified in current Save/Load option. |
Encoding | Encoding | Read/Write | Gets or sets the default encoding for text-based files. |
FileSystem | FileSystem | Read/Write | Allow user to handle how to manage the external dependencies during load/save. |
LookupPaths | List<string> | Read/Write | Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load. |
FileName | string | Read/Write | The file name of the exporting/importing scene. |
Methods
| Signature | Description |
|---|---|
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. |