google / google/bigwheels

[glTF] Support meshes without indices

Open
#474 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
C++
Stars
107
Forks
42
PR merge metrics
No merged PRs in 30d

Description

`GltfLoader::LoadMeshData` currently complains when a mesh lacks `indices`. However, meshes are allowed to not have `indices`. [5.24.2](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_mesh_primitive_indices) says:

> When this is undefined, the primitive defines non-indexed geometry

This would allow BigWheels to load and render:

- [Fox](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/Fox)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.