Skip to content

Latest commit

 

History

History

AssetLoader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Asset Loader

The asset loading library currently supports GLTF 2.0 format.

GLTF 2.0

GLTF loader uses tiny gltf library and is based on Vulkan-glTF-PBR project by Sascha Willems.

The following features are currently supported:

The loading functionality is implemented in Diligent::GLTF::Model class that initializes all Diligent Engine objects required to render the model.

The following code snippet shows a basic usage of the loader:

GLTF::ModelCreateInfo ModelCI;
ModelCI.FileName = "MyAsset.gltf";

m_Model = std::make_unique<GLTF::Model>(m_pDevice, m_pImmediateContext, ModelCI);

The loader is very flexible and provides multiple ways to customize the loading process. Among others, the following parameters can be specified:

  • Texture attribute configuration
  • Vertex layout
  • Node, Mesh, Primitive, and Material loading callbacks
  • GPU resource cache

The loader does have any rendering capabilities. Please see Diligent GLTF PBR Renderer.

References

GLTF2.0 Format Specification

Vulkan-glTF-PBR

tinygltf