KhronosGroup / KhronosGroup/glTF
Multiple buffers, duplicate URIs?
- Dominant language
- HTML
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 17h 26m
- Merged PRs (30d)
- 5
Description
I came across a file recently containing three buffers, all sharing the same URI:
```jsonc
"buffers": [
{
"uri": "glTF.bin",
"byteLength": 8160
},
{
"uri": "glTF.bin",
"byteLength": 8160
},
{
"uri": "glTF.bin",
"byteLength": 8160
}
],
```
No validation errors were found, and viewers I tested (three.js, babylon.js, playcanvas) seemed fine, but it did break processing in glTF Transform, which tried to overwrite the buffer repeatedly. The file also contained valid buffer views pointing to each buffer.
My impression is that this is suboptimal, but technically valid, does that seem correct?
Contributor guide
Research direction
No source files or tests are named. Start by checking the glTF buffer schema and validation rules, then compare the duplicate-URI case with the behavior reported for glTF Transform and the tested viewers; done means establishing whether the file is valid and what specification or validation change, if any, is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- three.js
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100