KhronosGroup / KhronosGroup/glTF-Sample-Assets
Dedicated test for correct pixel transfer functions
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 107
- Avg merge
- 9h 39m
- Merged PRs (30d)
- 4
Description
As of today, only four glTF color textures use sRGB encoding:
* `emissiveTexture`
* `pbrMetallicRoughness.baseColorTexture`
* `KHR_materials_pbrSpecularGlossiness.specularGlossinessTexture`
* `KHR_materials_sheen.sheenColorTexture`
All other textures are sampled linearly. We need dedicated test models that would highlight potential implementation errors in that area.
It's important to note, that working with linear 8-bit values in DCC tools could be quite challenging as some editors may misrepresent such content on screen and show misleading color-picker values.
Contributor guide
Research direction
Start by reviewing the four listed sRGB texture uses: emissiveTexture, baseColorTexture, specularGlossinessTexture, and sheenColorTexture, then compare them with the other texture types described as linear. Create dedicated test models whose colors expose incorrect transfer-function handling. Done means the models cover these encoding cases and make implementation errors distinguishable.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100