Package limn.render3d.gltf
package limn.render3d.gltf
glTF 2.0 loading:
GltfLoader reads .gltf or binary
.glb into a neutral GltfModel of meshes, materials
and node transforms (no GPU and no third-party parser), so the reading and decoding
can run on a worker (the loadAsync forms are cancellable and report progress)
and the upload happens later, inside a frame.-
ClassDescriptionLoads a glTF 2.0 asset into a neutral
GltfModel: no AWT, no GPU.A parsed glTF 2.0 asset as neutral CPU data: a node hierarchy, meshes (asMeshData), metallic-roughness materials, and encoded texture images.The model's texture images decoded to pixels, ready to upload: the CPU half ofGltfModel.toScene3D(), separated so it can be done off the UI thread.An encoded image (PNG/JPEG bytes), left encoded untilGltfModel.decodeTextures().Metallic-roughness material; texture fields indexGltfModel.textures()(-1= none).One drawable range of a mesh with its material index (-1= default).A glTF sampler, kept as the file's GL enums;-1= unspecified.