public class GltfSaveOptions extends SaveOptions
Constructor and Description |
---|
GltfSaveOptions(FileContentType contentType)
Constructor of
GltfSaveOptions |
GltfSaveOptions(FileFormat format)
Constructor of
GltfSaveOptions |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBufferFile()
The file name of the external buffer file used to store binary data.
|
boolean |
getDracoCompression()
Gets whether to enable draco compression
|
boolean |
getEmbedAssets()
Embed all external assets as base64 into single file in ASCII mode, default value is false.
|
java.lang.String |
getExternalDracoEncoder()
Use external draco encoder to accelerate the draco compression speed.
|
Vector3 |
getFallbackNormal()
When GLTF2 exporter detected an invalid normal, this will be used instead of its original value to bypass the validation.
|
boolean |
getFlipTexCoordV()
Flip texture coordinate v(t) component, default value is true.
|
GltfEmbeddedImageFormat |
getImageFormat()
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 |
getMaterialConverter()
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.
|
boolean |
getPrettyPrint()
The JSON content of GLTF file is indented for human reading, default value is false
|
boolean |
getSaveExtras()
Save scene object's dynamic properties into 'extra' fields in the generated glTF file.
|
boolean |
getUseCommonMaterials()
Serialize materials using KHR common material extensions, default value is false.
|
void |
setBufferFile(java.lang.String value)
The file name of the external buffer file used to store binary data.
|
void |
setDracoCompression(boolean value)
Sets whether to enable draco compression
|
void |
setEmbedAssets(boolean value)
Embed all external assets as base64 into single file in ASCII mode, default value is false.
|
void |
setExternalDracoEncoder(java.lang.String value)
Use external draco encoder to accelerate the draco compression speed.
|
void |
setFallbackNormal(Vector3 value)
When GLTF2 exporter detected an invalid normal, this will be used instead of its original value to bypass the validation.
|
void |
setFlipTexCoordV(boolean value)
Flip texture coordinate v(t) component, default value is true.
|
void |
setImageFormat(GltfEmbeddedImageFormat value)
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.
|
void |
setMaterialConverter(MaterialConverter value)
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.
|
void |
setPrettyPrint(boolean value)
The JSON content of GLTF file is indented for human reading, default value is false
|
void |
setSaveExtras(boolean value)
Save scene object's dynamic properties into 'extra' fields in the generated glTF file.
|
void |
setUseCommonMaterials(boolean value)
Serialize materials using KHR common material extensions, default value is false.
|
getEncoding, getFileFormat, getFileName, getFileSystem, getFileSystemFactory, getLookupPaths, lookupForFile, setEncoding, setFileName, setFileSystem, setFileSystemFactory, setLookupPaths
public GltfSaveOptions(FileContentType contentType)
GltfSaveOptions
contentType
- public GltfSaveOptions(FileFormat format)
GltfSaveOptions
format
- public boolean getPrettyPrint()
public void setPrettyPrint(boolean value)
value
- New valuepublic Vector3 getFallbackNormal()
public void setFallbackNormal(Vector3 value)
value
- New valuepublic boolean getEmbedAssets()
public void setEmbedAssets(boolean value)
value
- New valuepublic GltfEmbeddedImageFormat getImageFormat()
GltfEmbeddedImageFormat.PNG
public void setImageFormat(GltfEmbeddedImageFormat value)
GltfEmbeddedImageFormat.PNG
value
- New valuepublic MaterialConverter getMaterialConverter()
public void setMaterialConverter(MaterialConverter value)
value
- New valuepublic boolean getUseCommonMaterials()
getExportShaders()
public void setUseCommonMaterials(boolean value)
getExportShaders()
value
- New valuepublic java.lang.String getExternalDracoEncoder()
public void setExternalDracoEncoder(java.lang.String value)
value
- New valuepublic boolean getFlipTexCoordV()
public void setFlipTexCoordV(boolean value)
value
- New valuepublic java.lang.String getBufferFile()
public void setBufferFile(java.lang.String value)
value
- New valuepublic boolean getSaveExtras()
public void setSaveExtras(boolean value)
value
- New valuepublic boolean getDracoCompression()
public void setDracoCompression(boolean value)
value
- New value