Crate rend3_gltf

Source
Expand description

gltf scene and model loader for rend3.

This crate attempts to map the concepts into gltf as best it can into rend3, but there is quite a variety of things that would be insane to properly represent.

To “just load a gltf/glb”, look at the documentation for load_gltf and use the default filesystem_io_func.

Individual components of a gltf can be loaded with the other functions in this crate.

§Supported Extensions

  • KHR_punctual_lights
  • KHR_texture_transform
  • KHR_material_unlit

§Known Limitations

  • Only the albedo texture’s transform from KHR_texture_transform will be used.
  • Double sided materials are currently unsupported.

Modules§

  • Implementation utilities.

Structs§

  • A set of SkeletonHandles, one per mesh in the wrapping object, plus the index of the skin data in the skins array of LoadedGltfScene.
  • Determines parameters that are given to various parts of the gltf world that cannot be specified by gltf alone.
  • Data specific to each instance of a gltf scene.
  • Hashmap key for caching images.
  • Wrapper around a T that stores an optional label.
  • Loaded data on a gltf scene that can be reused across multiple instances of the same set of objects.
  • Set of MeshPrimitives that make up a logical mesh.
  • A single sub-mesh of a gltf.
  • Node in the gltf scene tree
  • Set of ObjectHandles that correspond to a logical object in the node tree. When the node corresponds to an animated mesh, the armature will contain the necessary data to deform the primitives.
  • Animation data for a single joint, with translation, rotation and scale channels.
  • A uploaded texture and its format.

Enums§

Functions§

Type Aliases§