Skip to content

Commit

Permalink
Merge pull request #750 from cx20/add_gltf_sample_models
Browse files Browse the repository at this point in the history
Added glTF Sample models
  • Loading branch information
cx20 authored Mar 8, 2024
2 parents 8b355b3 + e23762a commit 7bcf68b
Show file tree
Hide file tree
Showing 266 changed files with 19,313 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function makeTutorialFeatureTestModelLinks() {
td.appendChild(document.createElement('br'));
td.appendChild(createlink(engines[i].name, 'tutorialModels', modelName, 'glTF-Binary', scale));
} else if ( modelName == 'RecursiveSkeletons'
|| modelName == 'PointsLinesTrianglesTest' ) {
|| modelName == 'PrimitiveModeNormalsTest' ) {
td.appendChild(createlink(engines[i].name, 'tutorialModels', modelName, 'glTF', scale));
} else {
td.appendChild(createlink(engines[i].name, 'tutorialModels', modelName, 'glTF', scale));
Expand Down
15 changes: 15 additions & 0 deletions tutorialModels/AnisotropyDiscTest/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# LICENSE file for the model: Anisotropy Disc 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:

* [CC0 1.0 Universal]("https://creativecommons.org/publicdomain/zero/1.0/legalcode") [SPDX license identifier: "CC0-1.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
20 changes: 20 additions & 0 deletions tutorialModels/AnisotropyDiscTest/README.body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Screenshot

![screenshot](screenshot/screenshot_Large.jpg)
<br/>_Screenshot from [glTF Sample Viewer](https://github.khronos.org/glTF-Sample-Viewer-Release/) with the environment Pisa._

## Description

This model tests the main texturemap for [`KHR_materials_anisotropy`](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_anisotropy). It has the following features:

- An array of base material roughness values are tested with the same texturemap each time.

- The upper-left quadrant tests a disc-shaped anisotropic pattern at a strength of about 3%.

- The upper-right quadrant tests a disc-shaped anisotropic pattern at a strength of about 10%.

- The lower-right quadrant tests a disc-shaped anisotropic pattern at a full strength.

- The lower-left quadrant tests a disc-shaped anisotropic pattern with a gradient strength, starting at zero around the edges and increasing to full strength in the center.

Per the anisotropy specification, anisotropic strength increases the material's roughness along a particular direction. Therefore, zero base roughness with full-strength anisotropy displays the most pronounced result. Full 1.0 base roughness cannot increase more, and does not show any effects from anisotropy.
49 changes: 49 additions & 0 deletions tutorialModels/AnisotropyDiscTest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Anisotropy Disc Test

## Tags

[extension](../../Models-extension.md), [testing](../../Models-testing.md)

## Extensions Used

* KHR_materials_anisotropy

## Summary

This model tests the texturemap 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/AnisotropyDiscTest/glTF-Binary/AnisotropyDiscTest.glb) in SampleViewer
* [Download GLB](https://raw.GithubUserContent.com/KhronosGroup/glTF-Sample-Assets/main/./Models/AnisotropyDiscTest/glTF-Binary/AnisotropyDiscTest.glb)
* [Model Directory](./)

## Screenshot

![screenshot](screenshot/screenshot_Large.jpg)
<br/>_Screenshot from [glTF Sample Viewer](https://github.khronos.org/glTF-Sample-Viewer-Release/) with the environment Pisa._

## Description

This model tests the main texturemap for [`KHR_materials_anisotropy`](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_anisotropy). It has the following features:

- An array of base material roughness values are tested with the same texturemap each time.

- The upper-left quadrant tests a disc-shaped anisotropic pattern at a strength of about 3%.

- The upper-right quadrant tests a disc-shaped anisotropic pattern at a strength of about 10%.

- The lower-right quadrant tests a disc-shaped anisotropic pattern at a full strength.

- The lower-left quadrant tests a disc-shaped anisotropic pattern with a gradient strength, starting at zero around the edges and increasing to full strength in the center.

Per the anisotropy specification, anisotropic strength increases the material's roughness along a particular direction. Therefore, zero base roughness with full-strength anisotropy displays the most pronounced result. Full 1.0 base roughness cannot increase more, and does not show any effects from anisotropy.


## Legal

&copy; 2023, Public. [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode)

- Eric Chadwick for Everything

#### Assembled by modelmetadata
Binary file not shown.
Loading

0 comments on commit 7bcf68b

Please sign in to comment.