[glTF] Scenes with a camera are not rendered correctly
- Dominant language
- C++
- Stars
- 107
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Some examples:
- [Duck](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/Duck) is mostly off-screen
| Expected | Actual |
| --- | --- |
|  |  |
- [EnvironmentTest](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/EnvironmentTest) doesn't show anything:
| Expected | Actual |
| --- | --- |
|  |  |
- [IridescentDishWithOlives](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/IridescentDishWithOlives) is stretched. Subsections of [3.10.3](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#projection-matrices) say that
> When the provided camera’s aspect ratio does not match the aspect ratio of the viewport, client implementations SHOULD NOT crop or perform non-uniform scaling (“stretching”) to fill the viewport.
| Expected | Actual |
|---|---|
|  |  |
- [ToyCar](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/ToyCar) is also similarly stretched
Contributor guide
Assessment
This issue has not been assessed yet.