donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.42k stars 150 forks source link

Improving vertex counts #1319

Closed donmccurdy closed 8 months ago

donmccurdy commented 8 months ago

Per-mesh vertex counts currently show up in the CLI, but there are a lot of different ways to compute a "vertex count" with different practical uses. Consider cases like:

We might want to know how many vertices are represented in the file conceptually, or how many will be uploaded to the GPU, or how many will be drawn on each render pass. These may all be different numbers. Consider providing tools to disambiguate between:

This would be helpful for writing unit tests to ensure functions like join() do not increase the relevant counts.

Resources, references, and explainers: