-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load data for KHR_materials_anisotropy
- Loading branch information
Jeshurun Hembd
committed
May 11, 2024
1 parent
e2e9226
commit c48cad5
Showing
9 changed files
with
351 additions
and
16 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Specs/Data/Models/glTF-2.0/AnisotropyRotationTest/LICENSE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# LICENSE file for the model: Anisotropy Rotation Test | ||
|
||
All files in this directory tree are licensed as indicated below. | ||
|
||
- All files directly associated with the model including all text, image and binary files: | ||
|
||
- [CC BY 4.0 International]("https://creativecommons.org/licenses/by/4.0/legalcode") [SPDX license identifier: "CC-BY-4.0"] | ||
|
||
- This file and all other metadocumentation files including "metadata.json": | ||
|
||
- [Creative Commons Attribtution 4.0 International]("https://creativecommons.org/licenses/by/4.0/legalcode") [SPDX license identifier: "CC-BY-4.0"] | ||
|
||
Full license text of these licenses are available at the links above | ||
|
||
#### Generated by modelmetadata |
57 changes: 57 additions & 0 deletions
57
Specs/Data/Models/glTF-2.0/AnisotropyRotationTest/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Anisotropy Rotation Test | ||
|
||
## Tags | ||
|
||
[extension](../../Models-extension.md), [testing](../../Models-testing.md) | ||
|
||
## Extensions Used | ||
|
||
- KHR_materials_anisotropy | ||
|
||
## Summary | ||
|
||
This model tests rotational offsets for KHR_materials_anisotropy. | ||
|
||
## Operations | ||
|
||
- [Display](https://github.khronos.org/glTF-Sample-Viewer-Release/?model=https://raw.GithubUserContent.com/KhronosGroup/glTF-Sample-Assets/main/./Models/AnisotropyRotationTest/glTF-Binary/AnisotropyRotationTest.glb) in SampleViewer | ||
- [Download GLB](https://raw.GithubUserContent.com/KhronosGroup/glTF-Sample-Assets/main/./Models/AnisotropyRotationTest/glTF-Binary/AnisotropyRotationTest.glb) | ||
- [Model Directory](./) | ||
|
||
## Screenshot | ||
|
||
![screenshot](screenshot/screenshot-large.png) | ||
|
||
## Description | ||
|
||
This model tests rotational offsets for [`KHR_materials_anisotropy`](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_anisotropy). It has the following features: | ||
|
||
- Six of the meshes (2 on the bottom row, 2 in the middle, and 2 on the top row) are all "simple" anisotropy with material roughness extended horizontally along the mesh's `TANGENT` vectors. | ||
|
||
- One mesh in the lower-left marked "Tangents + Rotation" has a 30-degree clockwise tilt to the `TANGENT` vectors, and un-does this rotation using the `anisotropyRotation` parameter in radians equivalent to 30 degrees counter-clockwise. When the rotation is applied correctly, the anisotropy here should look the same as the neighboring meshes. | ||
|
||
- One mesh in the upper-left marked "Tangents + Texture" has the same 30-degree clockwise tilt to the `TANGENT` vectors, and un-does this rotation using the `anisotropyTexture` parameter with a 30-degree counter-clockwise tilt encoded in the texture. As before, when the rotation is applied correctly, the anisotropy here should look the same as the neighboring meshes. | ||
|
||
- One mesh in the lower-right marked "Tangents + Texture + Rotation" has again the same 30-degree clockwise tilt to the `TANGENT` vectors as the others. However this mesh uses a combination of 10 degrees from `anisotropyTexture` and 20 degrees (in radians) from `anisotropyRotation`, combining to create the 30-degree counter-clockwise tilt needed to make the anisotropy horizontal like the other meshes. | ||
|
||
- Finally, one mesh in the upper-right marked "Normal map of grooves" has no anisotropy applied at all. It has a (somewhat grainy) normal texture applied with a series of vertical grooves, intended to approximate the look of very coarse horizontal anisotropy. It will not look exactly the same as its neighbors, but a bright light source in the environment should still spread out horizontally like its neighbors. | ||
|
||
## IBL Example | ||
|
||
![IBL screenshot](screenshot/ibl-example.png) | ||
|
||
With a full IBL reflection environment, the model should show horizontal stretching. It may appear similar to the screenshot above. | ||
|
||
## Incorrect Rotation Example | ||
|
||
![rotation failure screenshot](screenshot/fail-example.png) | ||
|
||
In the above image, the six "Basic Anisotropy" meshes are correct. But on the left side, both the texture-based rotation and JSON-based rotation are incorrect, and in the lower-right, the combination of both is also incorrect. These test meshes use a 30-degree clockwise slant in the tangent vectors that is intended to be undone by a 30-degree counter-clockwise rotation in the material. However in this image, a 60-degree clockwise rotation is visible on all three of these meshes, indicating that the material rotated the opposite way. | ||
|
||
## Legal | ||
|
||
© 2023, Analytical Graphics, Inc.. [CC BY 4.0 International](https://creativecommons.org/licenses/by/4.0/legalcode) | ||
|
||
- Ed Mackey for Everything | ||
|
||
### Assembled by modelmetadata |
Binary file added
BIN
+813 KB
Specs/Data/Models/glTF-2.0/AnisotropyRotationTest/glTF-Binary/AnisotropyRotationTest.glb
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
Specs/Data/Models/glTF-2.0/AnisotropyRotationTest/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": 2, | ||
"legal": [ | ||
{ | ||
"year": "2023", | ||
"owner": "Analytical Graphics, Inc.", | ||
"license": "CC-BY International 4.0", | ||
"artist": "Ed Mackey", | ||
"what": "Everything", | ||
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/legalcode", | ||
"text": "CC BY 4.0 International", | ||
"spdx": "CC-BY-4.0", | ||
"icon": "https://licensebuttons.net/l/by/3.0/88x31.png" | ||
} | ||
], | ||
"tags": [ | ||
"extension", | ||
"testing" | ||
], | ||
"screenshot": "screenshot/screenshot.png", | ||
"name": "Anisotropy Rotation Test", | ||
"path": "./Models/AnisotropyRotationTest", | ||
"summary": "This model tests rotational offsets for KHR_materials_anisotropy.", | ||
"createReadme": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.