Package com.aspose.threed
Class GLTFSaveOptions
- java.lang.Object
-
- com.aspose.threed.IOConfig
-
- com.aspose.threed.SaveOptions
-
- com.aspose.threed.GLTFSaveOptions
-
public class GLTFSaveOptions extends SaveOptions
Save options for glTF format.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
prettyPrint
The JSON content of GLTF file is indented for human reading, default value is false
-
Constructor Summary
Constructors Constructor Description GLTFSaveOptions(FileContentType contentType)
Constructor ofGLTFSaveOptions
GLTFSaveOptions(FileFormat format)
Constructor ofGLTFSaveOptions
-
Method Summary
Modifier and Type Method 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 compressionboolean
getEmbedAssets()
Embed all external assets as base64 into single file in ASCII mode, default value is false.boolean
getFlipTexCoordV()
Flip texture coordinate v(t) component, default value is true.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
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 compressionvoid
setEmbedAssets(boolean value)
Embed all external assets as base64 into single file in ASCII mode, default value is false.void
setFlipTexCoordV(boolean value)
Flip texture coordinate v(t) component, default value is true.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
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.-
Methods inherited from class com.aspose.threed.IOConfig
getFileName, getFileSystem, getLookupPaths, lookupForFile, setFileName, setFileSystem, setLookupPaths
-
-
-
-
Constructor Detail
-
GLTFSaveOptions
public GLTFSaveOptions(FileContentType contentType)
Constructor ofGLTFSaveOptions
- Parameters:
contentType
-
-
GLTFSaveOptions
public GLTFSaveOptions(FileFormat format)
Constructor ofGLTFSaveOptions
- Parameters:
format
-
-
-
Method Detail
-
getEmbedAssets
public boolean getEmbedAssets()
Embed all external assets as base64 into single file in ASCII mode, default value is false.
-
setEmbedAssets
public void setEmbedAssets(boolean value)
Embed all external assets as base64 into single file in ASCII mode, default value is false.- Parameters:
value
- New value
-
getMaterialConverter
public 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. Default value is null This property is used when exporting a scene to a glTF 2.0 file.
-
setMaterialConverter
public 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. Default value is null This property is used when exporting a scene to a glTF 2.0 file.- Parameters:
value
- New value
-
getUseCommonMaterials
public boolean getUseCommonMaterials()
Serialize 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 ifgetExportShaders()
-
setUseCommonMaterials
public void setUseCommonMaterials(boolean value)
Serialize 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 ifgetExportShaders()
- Parameters:
value
- New value
-
getFlipTexCoordV
public boolean getFlipTexCoordV()
Flip texture coordinate v(t) component, default value is true.
-
setFlipTexCoordV
public void setFlipTexCoordV(boolean value)
Flip texture coordinate v(t) component, default value is true.- Parameters:
value
- New value
-
getBufferFile
public java.lang.String getBufferFile()
The 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.
-
setBufferFile
public void setBufferFile(java.lang.String value)
The 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.- Parameters:
value
- New value
-
getSaveExtras
public boolean getSaveExtras()
Save 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.
-
setSaveExtras
public void setSaveExtras(boolean value)
Save 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.- Parameters:
value
- New value
-
getDracoCompression
public boolean getDracoCompression()
Gets whether to enable draco compression
-
setDracoCompression
public void setDracoCompression(boolean value)
Sets whether to enable draco compression- Parameters:
value
- New value
-
-