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 the Instantiation model group #535

Merged
merged 41 commits into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
972fffc
Initial commit of the Instantiation model group
stevk Jun 6, 2019
0b3eaee
Add runtime support for two textures using the same image
stevk Jun 7, 2019
c398386
Add two materials using the same texture
stevk Jun 7, 2019
fce61cb
Add runtime support for two primitives using the same material
stevk Jun 7, 2019
0220d51
Add runtime support for two primitives using the same attribute acces…
stevk Jun 10, 2019
627b272
Fix merge errors
stevk Jun 10, 2019
5ded5b7
Add runtime support for two primitive indices using the same accessors
stevk Jun 10, 2019
840a294
Implement model for two nodes using the same mesh
stevk Jun 10, 2019
1fe8364
Implement model for two nodes using the same skin
stevk Jun 10, 2019
781ce5b
Implement model for two skins using the same skeleton
stevk Jun 10, 2019
b324639
Add runtime support for two skins using the same inverseBindMatrices
stevk Jun 11, 2019
adb2556
Add support to only instance inverseBindMatrices when indicated
stevk Jun 11, 2019
40ea6e8
Add runtime support for two animation schannels using the same samplers
stevk Jun 11, 2019
bd7288b
Add runtime support for two animation samplers using the same accessors
stevk Jun 11, 2019
bbc741c
Add runtime support for two accessors using the same buffer view
stevk Jun 11, 2019
0c2561d
Use vertex color instead of textures when textures aren't needed
stevk Jun 12, 2019
511c47d
Add runtime support for two samplers with different inputs sharing a …
stevk Jun 12, 2019
d4fe9ce
Refactor duplicate code
stevk Jun 12, 2019
09b557e
Cleanup
stevk Jun 12, 2019
01219d0
Cleanup
stevk Jun 12, 2019
036a03f
Cleanup
stevk Jun 12, 2019
53c2afc
Remove unused extension
stevk Jun 13, 2019
07af391
Change name to Instancing and name some dictionaries as ToIndex
stevk Jun 13, 2019
ebf7f77
Remove instanceBufferView flag and comment out model
stevk Jun 13, 2019
aca3ff0
Use one cache for all ienumerable dictionaries
stevk Jun 14, 2019
0eeb490
split skinjoints into node and inversebindmatrix, to remove need for …
stevk Jun 14, 2019
fea8109
Action feedback
stevk Jun 17, 2019
20a2b2f
Action feedback
stevk Jun 17, 2019
9804890
Action feedback
stevk Jun 17, 2019
58f2058
Add descriptions of what is different about the parent property
stevk Jun 17, 2019
fac4d9f
Action feedback
stevk Jun 20, 2019
4168753
Add comments
stevk Jun 20, 2019
18cfdde
Apply suggestions from code review
stevk Jun 21, 2019
367a8d6
Action feedback
stevk Jun 24, 2019
cc02176
Add textures for samplers and a model - Two textures pointing at the …
stevk Jun 25, 2019
ab1bfa1
Action feedback
stevk Jun 25, 2019
bd8a14d
Cleanup
stevk Jun 26, 2019
bc24da0
Changes to readme strings
stevk Jun 26, 2019
3744ee1
Changes to readme strings
stevk Jun 26, 2019
7e2ed33
Changes to readme strings
stevk Jun 26, 2019
3978f6b
Action feedback
stevk Jun 26, 2019
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
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/SampleImages/Instancing_07.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.
Binary file not shown.
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.
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.
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.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_00.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.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_10.gif
Binary file modified Output/Positive/Instancing/Figures/Thumbnails/Instancing_11.gif
4 changes: 3 additions & 1 deletion Output/Positive/Instancing/Instancing_00.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
],
"images": [
{
"uri": "Textures/BaseColor_Plane.png"
"uri": "Textures/BaseColor_1.png"
}
],
"materials": [
Expand Down Expand Up @@ -160,9 +160,11 @@
],
"samplers": [
{
"wrapS": 33071,
"wrapT": 33071
},
{
"wrapS": 33648,
"wrapT": 33648
}
],
Expand Down
Binary file modified Output/Positive/Instancing/Instancing_01.bin
Binary file not shown.
24 changes: 16 additions & 8 deletions Output/Positive/Instancing/Instancing_01.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@
],
"images": [
{
"uri": "Textures/BaseColor_Plane.png"
"uri": "Textures/BaseColor_1.png"
},
{
"uri": "Textures/BaseColor_2.png"
}
],
"materials": [
Expand All @@ -125,14 +128,8 @@
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.5,
0.5,
1.0,
1.0
],
"baseColorTexture": {
"index": 0
"index": 1
}
}
}
Expand Down Expand Up @@ -164,6 +161,12 @@
"mesh": 0
}
],
"samplers": [
{
"wrapS": 33071,
"wrapT": 33071
}
],
"scene": 0,
"scenes": [
{
Expand All @@ -174,7 +177,12 @@
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
}
]
}
Binary file modified Output/Positive/Instancing/Instancing_02.bin
Binary file not shown.
15 changes: 14 additions & 1 deletion Output/Positive/Instancing/Instancing_02.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,19 @@
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.5,
0.5,
1.0,
1.0
],
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
Expand All @@ -141,7 +154,7 @@
"TEXCOORD_0": 4
},
"indices": 5,
"material": 0
"material": 1
}
]
}
Expand Down
Binary file modified Output/Positive/Instancing/Instancing_03.bin
Binary file not shown.
102 changes: 64 additions & 38 deletions Output/Positive/Instancing/Instancing_03.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"count": 4,
"type": "VEC3",
"max": [
0.5,
-0.100000024,
0.5,
0.0
],
"min": [
-0.5,
-1.1,
-0.5,
0.0
],
Expand All @@ -21,8 +21,8 @@
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"name": "Colors Accessor"
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
Expand All @@ -36,10 +36,27 @@
"componentType": 5126,
"count": 4,
"type": "VEC3",
"name": "Colors Accessor"
"max": [
1.1,
0.5,
0.0
],
"min": [
0.100000024,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 4,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 5,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
Expand All @@ -53,7 +70,7 @@
"buffers": [
{
"uri": "Instancing_03.bin",
"byteLength": 192
"byteLength": 208
}
],
"bufferViews": [
Expand All @@ -65,77 +82,86 @@
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 48,
"name": "Colors"
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 96,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 120,
"byteOffset": 104,
"byteLength": 48,
"name": "Colors"
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 168,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 184,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_Plane.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"COLOR_0": 1
"TEXCOORD_0": 1
},
"indices": 2
}
]
},
{
"primitives": [
"indices": 2,
"material": 0
},
{
"attributes": {
"POSITION": 0,
"COLOR_0": 3
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 4
"indices": 5,
"material": 0
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
"mesh": 0
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
0
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file modified Output/Positive/Instancing/Instancing_04.bin
Binary file not shown.
Loading