glTF-Asset-Generator

These models are intended to test the use of sparse accessors.

The “B” mesh is using a sparse accessor that is initialized by the accessor used by the “A” mesh.

In the following table, green signifies the sparse accessor once it has been initialized.

  Accessor before and after being modified by sparse
Figure 1
Input
Figure 2
Output

The following table shows the properties that are set for a given model.

  Sample Image Sparse Accessor Description
00
View
Animation Sampler Input See Figure 1
01
View
Animation Sampler Output See Figure 2
02
View
Positions Mesh B’s sparse accessor overwrites the values of the top left and bottom right vertexes.
03
View
Mesh Primitive Indices Both meshes have six vertexes, but only four are used to make the visible mesh. Mesh B’s sparse accessor replaces the indices pointing at the top left and bottom right vertexes with ones pointing at the unused vertexes.