Package com.gaia3d.converter.jgltf
Class GltfWriter
java.lang.Object
com.gaia3d.converter.jgltf.GltfWriter
- Direct Known Subclasses:
BatchedModelGltfWriter,InstancedModelGltfWriter,PointCloudGltfWriter
GltfWriter is a class that writes the glTF file.
It contains the method to write the glTF file from the GaiaScene object.
The glTF file is written in the glTF 2.0 format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite the glTF file from the GaiaScene object.voidwriteGlb(GaiaScene gaiaScene, OutputStream outputStream) Write the glTF file from the GaiaScene object.voidWrite the glTF file from the GaiaScene object.voidWrite the glTF file from the GaiaScene object.voidWrite the glTF file from the GaiaScene object.
-
Constructor Details
-
GltfWriter
public GltfWriter()
-
-
Method Details
-
writeGltf
Write the glTF file from the GaiaScene object.- Parameters:
gaiaScene- The GaiaScene object to be written.outputPath- The output path of the glTF file.
-
writeGltf
Write the glTF file from the GaiaScene object.- Parameters:
gaiaScene- The GaiaScene object to be written.outputPath- The output path of the glTF file.
-
writeGlb
Write the glTF file from the GaiaScene object.- Parameters:
gaiaScene- The GaiaScene object to be written.outputPath- The output path of the glTF file.
-
writeGlb
Write the glTF file from the GaiaScene object.- Parameters:
gaiaScene- The GaiaScene object to be written.outputStream- The output stream of the glTF file.
-
writeGlb
Write the glTF file from the GaiaScene object.- Parameters:
gaiaScene- The GaiaScene object to be written.outputPath- The output path of the glTF file.
-