Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from sbtron/msftmodels
Browse files Browse the repository at this point in the history
New glTF models
  • Loading branch information
pjcozzi authored Dec 28, 2016
2 parents c9597ea + 9d89005 commit 121de17
Show file tree
Hide file tree
Showing 45 changed files with 3,331 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 1.0/Avocado/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Avocado
## Screenshot

![screenshot](screenshot/screenshot.png)

Example: [Avocado](https://www.remix3d.com/details/G009SX0N0MHT)

## License Information

Donated by Microsoft for glTF testing.
155 changes: 155 additions & 0 deletions 1.0/Avocado/collada/Avocado.dae

Large diffs are not rendered by default.

Binary file added 1.0/Avocado/collada/Avocado_texture_0001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/collada/Avocado_texture_0002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/collada/Avocado_texture_0003.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/glTF-Binary/Avocado.glb
Binary file not shown.
303 changes: 303 additions & 0 deletions 1.0/Avocado/glTF-Embedded/Avocado.gltf

Large diffs are not rendered by default.

Binary file added 1.0/Avocado/glTF/Avocado.bin
Binary file not shown.
287 changes: 287 additions & 0 deletions 1.0/Avocado/glTF/Avocado.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,287 @@
{
"accessors": {
"accessor_26": {
"bufferView": "bufferView_34",
"byteOffset": 0,
"byteStride": 2,
"componentType": 5123,
"count": 2046,
"max": [
223
],
"min": [
0
],
"type": "SCALAR"
},
"accessor_28": {
"bufferView": "bufferView_35",
"byteOffset": 0,
"byteStride": 12,
"componentType": 5126,
"count": 409,
"max": [
2.12809,
6.28481,
1.3809
],
"min": [
-2.12809,
-0.00477386,
-1.3809
],
"type": "VEC3"
},
"accessor_30": {
"bufferView": "bufferView_35",
"byteOffset": 4908,
"byteStride": 12,
"componentType": 5126,
"count": 409,
"max": [
0.995177,
0.974969,
0.998855
],
"min": [
-0.995967,
-0.999567,
-0.998634
],
"type": "VEC3"
},
"accessor_32": {
"bufferView": "bufferView_35",
"byteOffset": 9816,
"byteStride": 8,
"componentType": 5126,
"count": 409,
"max": [
0.982498,
0.995372
],
"min": [
0.0067802,
0.0029819
],
"type": "VEC2"
}
},
"animations": {},
"asset": {
"generator": "collada2gltf@f8f6279915175e9d2cc525531660ac439c114fac",
"premultipliedAlpha": true,
"profile": {
"api": "WebGL",
"version": "1.0.2"
},
"version": "1.0.1"
},
"bufferViews": {
"bufferView_34": {
"buffer": "Avocado",
"byteLength": 4092,
"byteOffset": 0,
"target": 34963
},
"bufferView_35": {
"buffer": "Avocado",
"byteLength": 13088,
"byteOffset": 4092,
"target": 34962
}
},
"buffers": {
"Avocado": {
"byteLength": 17180,
"type": "arraybuffer",
"uri": "Avocado.bin"
}
},
"images": {
"m0Avocado_M-diffuse-image": {
"name": "m0Avocado_M-diffuse-image",
"uri": "Avocado_texture_0001.jpg"
},
"m0Avocado_M-normal-image": {
"name": "m0Avocado_M-normal-image",
"uri": "Avocado_texture_0003.jpg"
},
"m0Avocado_M-specular-image": {
"name": "m0Avocado_M-specular-image",
"uri": "Avocado_texture_0002.jpg"
}
},
"materials": {
"m0Avocado_M-fx": {
"name": "m0Avocado_M",
"technique": "technique0",
"values": {
"ambient": [
0,
0,
0,
1
],
"diffuse": "texture_m0Avocado_M-diffuse-image",
"emission": [
0,
0,
0,
1
],
"shininess": 20,
"specular": "texture_m0Avocado_M-specular-image"
}
}
},
"meshes": {
"meshId0": {
"name": "meshId0_name",
"primitives": [
{
"attributes": {
"NORMAL": "accessor_30",
"POSITION": "accessor_28",
"TEXCOORD_0": "accessor_32"
},
"indices": "accessor_26",
"material": "m0Avocado_M-fx",
"mode": 4
}
]
}
},
"nodes": {
"Avocado": {
"children": [],
"meshes": [
"meshId0"
],
"name": "Avocado"
}
},
"programs": {
"program_0": {
"attributes": [
"a_normal",
"a_position",
"a_texcoord0"
],
"fragmentShader": "Avocado0FS",
"vertexShader": "Avocado0VS"
}
},
"samplers": {
"sampler_0": {
"magFilter": 9729,
"minFilter": 9729,
"wrapS": 10497,
"wrapT": 10497
}
},
"scene": "defaultScene",
"scenes": {
"defaultScene": {
"nodes": [
"Avocado"
]
}
},
"shaders": {
"Avocado0FS": {
"type": 35632,
"uri": "Avocado0FS.glsl"
},
"Avocado0VS": {
"type": 35633,
"uri": "Avocado0VS.glsl"
}
},
"skins": {},
"techniques": {
"technique0": {
"attributes": {
"a_normal": "normal",
"a_position": "position",
"a_texcoord0": "texcoord0"
},
"parameters": {
"ambient": {
"type": 35666
},
"diffuse": {
"type": 35678
},
"emission": {
"type": 35666
},
"modelViewMatrix": {
"semantic": "MODELVIEW",
"type": 35676
},
"normal": {
"semantic": "NORMAL",
"type": 35665
},
"normalMatrix": {
"semantic": "MODELVIEWINVERSETRANSPOSE",
"type": 35675
},
"position": {
"semantic": "POSITION",
"type": 35665
},
"projectionMatrix": {
"semantic": "PROJECTION",
"type": 35676
},
"shininess": {
"type": 5126
},
"specular": {
"type": 35678
},
"texcoord0": {
"semantic": "TEXCOORD_0",
"type": 35664
}
},
"program": "program_0",
"states": {
"enable": [
2929,
2884
]
},
"uniforms": {
"u_ambient": "ambient",
"u_diffuse": "diffuse",
"u_emission": "emission",
"u_modelViewMatrix": "modelViewMatrix",
"u_normalMatrix": "normalMatrix",
"u_projectionMatrix": "projectionMatrix",
"u_shininess": "shininess",
"u_specular": "specular"
}
}
},
"textures": {
"texture_m0Avocado_M-diffuse-image": {
"format": 6408,
"internalFormat": 6408,
"sampler": "sampler_0",
"source": "m0Avocado_M-diffuse-image",
"target": 3553,
"type": 5121
},
"texture_m0Avocado_M-specular-image": {
"format": 6408,
"internalFormat": 6408,
"sampler": "sampler_0",
"source": "m0Avocado_M-specular-image",
"target": 3553,
"type": 5121
}
}
}
25 changes: 25 additions & 0 deletions 1.0/Avocado/glTF/Avocado0FS.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
precision highp float;
varying vec3 v_normal;
uniform vec4 u_ambient;
varying vec2 v_texcoord0;
uniform sampler2D u_diffuse;
uniform vec4 u_emission;
uniform sampler2D u_specular;
uniform float u_shininess;
void main(void) {
vec3 normal = normalize(v_normal);
vec4 color = vec4(0., 0., 0., 0.);
vec4 diffuse = vec4(0., 0., 0., 1.);
vec4 emission;
vec4 ambient;
vec4 specular;
ambient = u_ambient;
diffuse = texture2D(u_diffuse, v_texcoord0);
emission = u_emission;
specular = texture2D(u_specular, v_texcoord0);
diffuse.xyz *= max(dot(normal,vec3(0.,0.,1.)), 0.);
color.xyz += diffuse.xyz;
color.xyz += emission.xyz;
color = vec4(color.rgb * diffuse.a, diffuse.a);
gl_FragColor = color;
}
15 changes: 15 additions & 0 deletions 1.0/Avocado/glTF/Avocado0VS.glsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
precision highp float;
attribute vec3 a_position;
attribute vec3 a_normal;
varying vec3 v_normal;
uniform mat3 u_normalMatrix;
uniform mat4 u_modelViewMatrix;
uniform mat4 u_projectionMatrix;
attribute vec2 a_texcoord0;
varying vec2 v_texcoord0;
void main(void) {
vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
v_normal = u_normalMatrix * a_normal;
v_texcoord0 = a_texcoord0;
gl_Position = u_projectionMatrix * pos;
}
Binary file added 1.0/Avocado/glTF/Avocado_texture_0001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/glTF/Avocado_texture_0002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/glTF/Avocado_texture_0003.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 1.0/Avocado/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.
8 changes: 8 additions & 0 deletions 1.0/BarramundiFish/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Barramundi Fish
## Screenshot

![screenshot](screenshot/screenshot.png)

## License Information

Donated by Microsoft for glTF testing.
Loading

0 comments on commit 121de17

Please sign in to comment.