Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing tutorial models #90

Merged
merged 8 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Models/Cameras/README.body.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

## Description

Two cameras and a simple plane mesh; a perspective camera and an orthographic camera.
Two cameras and a simple plane mesh; a perspective camera and an orthographic camera. This is described in the
[Simple Cameras](https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_015_SimpleCameras.md)
section of the glTF tutorial.

## Data layout

Expand Down
15 changes: 15 additions & 0 deletions Models/SimpleMaterial/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# LICENSE file for the model: SimpleMeshes

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
15 changes: 15 additions & 0 deletions Models/SimpleMaterial/README.body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Screenshot

![screenshot](screenshot/screenshot.png)

## Notes

An example of a simple glTF asset with a PBR (physically based rendering) material definition, as described
in the [Simple Material](https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_011_SimpleMaterial.md)
section of the glTF tutorial.

## Data layout

The following image shows the data layout of this sample:

![simpleTriangle](screenshot/simpleTriangle.png)
80 changes: 80 additions & 0 deletions Models/SimpleMaterial/glTF-Embedded/SimpleMaterial.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"scene": 0,
"scenes" : [
{
"nodes" : [ 0 ]
}
],

"nodes" : [
{
"mesh" : 0
}
],

"meshes" : [
{
"primitives" : [ {
"attributes" : {
"POSITION" : 1
},
"indices" : 0,
"material" : 0
} ]
}
],

"buffers" : [
{
"uri" : "data:application/octet-stream;base64,AAABAAIAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAA=",
"byteLength" : 44
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteOffset" : 0,
"byteLength" : 6,
"target" : 34963
},
{
"buffer" : 0,
"byteOffset" : 8,
"byteLength" : 36,
"target" : 34962
}
],
"accessors" : [
{
"bufferView" : 0,
"byteOffset" : 0,
"componentType" : 5123,
"count" : 3,
"type" : "SCALAR",
"max" : [ 2 ],
"min" : [ 0 ]
},
{
"bufferView" : 1,
"byteOffset" : 0,
"componentType" : 5126,
"count" : 3,
"type" : "VEC3",
"max" : [ 1.0, 1.0, 0.0 ],
"min" : [ 0.0, 0.0, 0.0 ]
}
],

"materials" : [
{
"pbrMetallicRoughness": {
"baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
"metallicFactor": 0.5,
"roughnessFactor": 0.1
}
}
],
"asset" : {
"version" : "2.0"
}
}
80 changes: 80 additions & 0 deletions Models/SimpleMaterial/glTF/SimpleMaterial.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"scene": 0,
"scenes" : [
{
"nodes" : [ 0 ]
}
],

"nodes" : [
{
"mesh" : 0
}
],

"meshes" : [
{
"primitives" : [ {
"attributes" : {
"POSITION" : 1
},
"indices" : 0,
"material" : 0
} ]
}
],

"buffers" : [
{
"uri" : "triangle.bin",
"byteLength" : 44
}
],
"bufferViews" : [
{
"buffer" : 0,
"byteOffset" : 0,
"byteLength" : 6,
"target" : 34963
},
{
"buffer" : 0,
"byteOffset" : 8,
"byteLength" : 36,
"target" : 34962
}
],
"accessors" : [
{
"bufferView" : 0,
"byteOffset" : 0,
"componentType" : 5123,
"count" : 3,
"type" : "SCALAR",
"max" : [ 2 ],
"min" : [ 0 ]
},
{
"bufferView" : 1,
"byteOffset" : 0,
"componentType" : 5126,
"count" : 3,
"type" : "VEC3",
"max" : [ 1.0, 1.0, 0.0 ],
"min" : [ 0.0, 0.0, 0.0 ]
}
],

"materials" : [
{
"pbrMetallicRoughness": {
"baseColorFactor": [ 1.000, 0.766, 0.336, 1.0 ],
"metallicFactor": 0.5,
"roughnessFactor": 0.1
}
}
],
"asset" : {
"version" : "2.0"
}
}
Binary file added Models/SimpleMaterial/glTF/triangle.bin
Binary file not shown.
26 changes: 26 additions & 0 deletions Models/SimpleMaterial/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 2,
"legal": [
{
"license": "CC0",
"licenseUrl": "https://creativecommons.org/publicdomain/zero/1.0/legalcode",
"artist": "javagl",
"year": "2017",
"owner": "Public",
"what": "Everything",
"text": "CC0 1.0 Universal",
"spdx": "CC0-1.0",
"icon": "https://licensebuttons.net/p/zero/1.0/88x31.png"
}
],
"tags": [
"core",
"testing",
"written"
],
"screenshot": "screenshot/screenshot.png",
"name": "SimpleMaterial",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this name field should have a space. "Simple Material"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this repo is very inconsistent about spaces in proper model names. But it has some, for example:

"path": "./Models/SimpleMaterial",
"summary": "A simple glTF asset with a material",
"createReadme": true
}
Binary file added Models/SimpleMaterial/screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions Models/SimpleMeshes/README.body.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

![screenshot](screenshot/screenshot.png)

## Notes##
## Notes

This is an example showing how the same mesh may be appended to
several nodes, to be rendered multiple times. It also shows
how additional vertex attributes are defined in a `mesh.primitive` -
namely, attributes for the vertex normals.

**Note:** The additional vertex normal attribute in this example is
not yet used by any technique. This may cause a warning to be
printed during the validation. The normal attribute will be used in
the [AdvancedMaterial](../AdvancedMaterial) example.
**Note:** The additional vertex normal attribute in this example is not yet used. This may
cause a warning to be printed during the validation. The normal attribute will be used in
the [AdvancedMaterial](https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_014_AdvancedMaterial.md)
section of the tutorial.

## Data layout

Expand Down
6 changes: 6 additions & 0 deletions Models/SimpleMorph/README.body.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

![screenshot](screenshot/screenshot.png)

## Notes

This is an example of a glTF asset that uses morph targets, as described in the
[Simple Morph Target](https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_017_SimpleMorphTarget.md)
section of the glTF tutorial.

## Data layout

The following image shows the data layout of this sample:
Expand Down
15 changes: 15 additions & 0 deletions Models/SimpleTexture/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# LICENSE file for the model: SimpleMeshes

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
10 changes: 10 additions & 0 deletions Models/SimpleTexture/README.body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Screenshot

![screenshot](screenshot/screenshot.png)

## Notes

An example of a simple glTF asset with a texture, as described
in the [Simple Texture](https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_013_SimpleTexture.md)
section of the glTF tutorial.

89 changes: 89 additions & 0 deletions Models/SimpleTexture/glTF-Embedded/SimpleTexture.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"scene": 0,
"scenes" : [ {
"nodes" : [ 0 ]
} ],
"nodes" : [ {
"mesh" : 0
} ],
"meshes" : [ {
"primitives" : [ {
"attributes" : {
"POSITION" : 1,
"TEXCOORD_0" : 2
},
"indices" : 0,
"material" : 0
} ]
} ],

"materials" : [ {
"pbrMetallicRoughness" : {
"baseColorTexture" : {
"index" : 0
},
"metallicFactor" : 0.0,
"roughnessFactor" : 1.0
}
} ],

"textures" : [ {
"sampler" : 0,
"source" : 0
} ],
"images" : [ {
"uri" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAwaSURBVHic7dxfSJT5Hsfxj39a49jQlnA2z5gKa+FVS8nqLKxWs4V4ERgkWLJNu9DeBNEu23UE3QQbe9GSdeFFMNFlIBuLjTprm6E0MghLSDtauBHnXMT258xRGxfPRenmNuM4jz6jzvf9gt+Fzzi/mQf8vnlGx8mTNJMnicVi2VuFyhMAowgAYBgBAAwjAIBhBAAwLGkAXk3NZP+ZuMBXRN2wNHU5MguJFLOQ21cAuXxuQCZSzAIBACwgAIBhBAAwzI0ATE5O6ubNmxodHVVpaamam5vl8Xicb/g3ExMTc/t7vV41Nzdrw4YNi9+AACCLpqenFYlElEgkVF9fv6x7uzULjgMwNjamxsZGxWKxuWNer1fhcFjbtm1ztulbYrGYGhsbNTY2Nnds69atCofD+vDDDxe3CQGAy549e6ZgMKhQ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YwUFBbp69WrSE5l16dIlnThxQjt27FA0GlV+fv4739PQ0KBffvkl5R5VVVX67bff0j5H338JAGtpy5dmFvx+v8LhcMrbKysr9fDhw6S3ZXMWEilmwfFfAfbv36+7d++qvb1djx49Unl5uY4fPy6fz7fg/WbfNnnu3LmkJyxJ33//vbq7u1Pu8cknnyzuSTo8N2CxLly4oFu3bqW8va6uLuVtq2EW8hRPcgXwD3c+BmlqakolJSWqra1Vb2+vK4/xNt//uAJgLW35cmQWEilmIavvAxgcHFQ8HteZM2ey84BZPDcgE6tlFrIagM2bN+vs2bPavXt3dh6QAGCVWi2zkKfJJC8BinLjk1B9U7wEYC1t+XJkFhIpZoG3AgMWpJgFAgBYkEkA3pvOkUtnAoAlGszxWcjtKwAACyIAgGEEADCMAACG/R+qH8xoau6KiAAAAABJRU5ErkJggg=="
} ],
"samplers" : [ {
"magFilter" : 9729,
"minFilter" : 9987,
"wrapS" : 33648,
"wrapT" : 33648
} ],

"buffers" : [ {
"uri" : "data:application/gltf-buffer;base64,AAABAAIAAQADAAIAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAA",
"byteLength" : 108
} ],
"bufferViews" : [ {
"buffer" : 0,
"byteOffset" : 0,
"byteLength" : 12,
"target" : 34963
}, {
"buffer" : 0,
"byteOffset" : 12,
"byteLength" : 96,
"byteStride" : 12,
"target" : 34962
} ],
"accessors" : [ {
"bufferView" : 0,
"byteOffset" : 0,
"componentType" : 5123,
"count" : 6,
"type" : "SCALAR",
"max" : [ 3 ],
"min" : [ 0 ]
}, {
"bufferView" : 1,
"byteOffset" : 0,
"componentType" : 5126,
"count" : 4,
"type" : "VEC3",
"max" : [ 1.0, 1.0, 0.0 ],
"min" : [ 0.0, 0.0, 0.0 ]
}, {
"bufferView" : 1,
"byteOffset" : 48,
"componentType" : 5126,
"count" : 4,
"type" : "VEC2",
"max" : [ 1.0, 1.0 ],
"min" : [ 0.0, 0.0 ]
} ],

"asset" : {
"version" : "2.0"
}
}
Binary file added Models/SimpleTexture/glTF/SimpleTexture.bin
Binary file not shown.
Loading
Loading