com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class GLTFSaveOptions



  • public class GLTFSaveOptions
    extends SaveOptions
    Save options for glTF format.
    • Field Detail

      • prettyPrint

        public boolean prettyPrint
        The JSON content of GLTF file is indented for human reading, default value is false
    • 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 if getExportShaders()
      • 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 if getExportShaders()
        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 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(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