GltfImporter — Aspose.3D FOSS Java API Reference
GltfImporter — glTF/GLB format importer. Inherits from: IImporter.
Package: com.aspose.threed
Known limitations in this edition:
- PBR material values are discarded on import.
baseColorFactor,metallicFactor,roughnessFactor, andemissiveFactorare parsed from the JSON but are never stored on the resultingPbrMaterialobjects. Only the material name survives import.- External buffer file URIs silently return empty data. glTF files that reference external
.binfiles via URI paths will load without error, but the geometry data from those external buffers will be empty byte arrays. GLB files (self-contained binary) are not affected.
Methods
| Method | Returns | Description |
|---|---|---|
canImport(FileFormat format) | boolean | Returns true for glTF and GLB formats. |
load(Stream stream, LoadOptions options) | Scene | Loads a glTF or GLB scene from the given stream. See limitations above for known data-loss cases. |