GltfImporter

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, and emissiveFactor are parsed from the JSON but are never stored on the resulting PbrMaterial objects. Only the material name survives import.
  • External buffer file URIs silently return empty data. glTF files that reference external .bin files 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

MethodReturnsDescription
canImport(FileFormat format)booleanReturns true for glTF and GLB formats.
load(Stream stream, LoadOptions options)SceneLoads a glTF or GLB scene from the given stream. See limitations above for known data-loss cases.

See Also