Skip to content

Commit

Permalink
Add the Instantiation model group (#535)
Browse files Browse the repository at this point in the history
* Add the Instantiation model group.

* Add ability to instance a image, texture, texture sampler, material, attribute accessor, mesh, skin, joint, inverseBindMatrice, and animation sampler.

* Remove the runtime class `SkinJoint` and instead track Joints and InverseBindMatrices in the Skin class. 

* Add images A and B.
stevk authored Jun 26, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e381755 commit a2bb50c
Showing 200 changed files with 5,421 additions and 1,919 deletions.
Binary file modified Output/Positive/Animation_Skin/Animation_Skin_05.bin
Binary file not shown.
25 changes: 6 additions & 19 deletions Output/Positive/Animation_Skin/Animation_Skin_05.gltf
Original file line number Diff line number Diff line change
@@ -64,20 +64,13 @@
},
{
"bufferView": 6,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 7,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 8,
"bufferView": 7,
"componentType": 5123,
"count": 6,
"type": "VEC4",
@@ -91,7 +84,7 @@
"buffers": [
{
"uri": "Animation_Skin_05.bin",
"byteLength": 656
"byteLength": 608
}
],
"bufferViews": [
@@ -133,18 +126,12 @@
{
"buffer": 0,
"byteOffset": 464,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 512,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 608,
"byteOffset": 560,
"byteLength": 48,
"name": "joint indices buffer view"
}
@@ -192,10 +179,10 @@
{
"attributes": {
"POSITION": 5,
"WEIGHTS_0": 7,
"JOINTS_0": 8
"WEIGHTS_0": 6,
"JOINTS_0": 7
},
"indices": 6,
"indices": 1,
"material": 1
}
]
Binary file modified Output/Positive/Animation_Skin/Animation_Skin_07.bin
Binary file not shown.
36 changes: 7 additions & 29 deletions Output/Positive/Animation_Skin/Animation_Skin_07.gltf
Original file line number Diff line number Diff line change
@@ -86,13 +86,6 @@
{
"bufferView": 9,
"componentType": 5126,
"count": 2,
"type": "MAT4",
"name": "IBM"
},
{
"bufferView": 10,
"componentType": 5126,
"count": 3,
"type": "SCALAR",
"max": [
@@ -104,7 +97,7 @@
"name": "Animation Sampler Input"
},
{
"bufferView": 11,
"bufferView": 10,
"componentType": 5126,
"count": 3,
"type": "VEC4",
@@ -124,8 +117,8 @@
],
"samplers": [
{
"input": 10,
"output": 11
"input": 9,
"output": 10
}
]
}
@@ -137,7 +130,7 @@
"buffers": [
{
"uri": "Animation_Skin_07.bin",
"byteLength": 892
"byteLength": 764
}
],
"bufferViews": [
@@ -197,18 +190,12 @@
{
"buffer": 0,
"byteOffset": 704,
"byteLength": 128,
"name": "Inverse Bind Matrix"
},
{
"buffer": 0,
"byteOffset": 832,
"byteLength": 12,
"name": "Animation Sampler Input"
},
{
"buffer": 0,
"byteOffset": 844,
"byteOffset": 716,
"byteLength": 48,
"name": "Animation Sampler Output"
}
@@ -299,7 +286,7 @@
"name": "joint1"
},
{
"skin": 1,
"skin": 0,
"mesh": 1,
"name": "outerPrism"
}
@@ -320,16 +307,7 @@
"joints": [
1,
2
],
"name": "innerPrismSkinB"
},
{
"inverseBindMatrices": 9,
"joints": [
1,
2
],
"name": "outerPrismSkinB"
]
}
]
}
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.
2 changes: 1 addition & 1 deletion Output/Positive/Animation_Skin/Manifest.json
Original file line number Diff line number Diff line change
@@ -140,7 +140,7 @@
"sampleImageName": "Figures/SampleImages/Animation_Skin_11.png",
"camera": {
"translation": [
0.8,
1.5,
0.0,
1.0
]
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"mimeType": "application/gltf-buffer",
"storage": "external",
"uri": "Animation_Skin_05.bin",
"byteLength": 656
"byteLength": 608
}
],
"hasAnimations": false,
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"mimeType": "application/gltf-buffer",
"storage": "external",
"uri": "Animation_Skin_07.bin",
"byteLength": 892
"byteLength": 764
}
],
"hasAnimations": true,
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.
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.
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.
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 added Output/Positive/Instancing/Instancing_00.bin
Binary file not shown.
189 changes: 189 additions & 0 deletions Output/Positive/Instancing/Instancing_00.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
-0.100000024,
0.5,
0.0
],
"min": [
-1.1,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"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",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_00.bin",
"byteLength": 208
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 184,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
},
{
"attributes": {
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 5,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0
}
],
"samplers": [
{
"wrapS": 33071,
"wrapT": 33071
},
{
"wrapS": 33648,
"wrapT": 33648
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 1,
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_01.bin
Binary file not shown.
188 changes: 188 additions & 0 deletions Output/Positive/Instancing/Instancing_01.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
-0.100000024,
0.5,
0.0
],
"min": [
-1.1,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"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",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_01.bin",
"byteLength": 208
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 184,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
},
{
"attributes": {
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 5,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0
}
],
"samplers": [
{
"wrapS": 33071,
"wrapT": 33071
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
},
{
"sampler": 0,
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_02.bin
Binary file not shown.
180 changes: 180 additions & 0 deletions Output/Positive/Instancing/Instancing_02.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
-0.100000024,
0.5,
0.0
],
"min": [
-1.1,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"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",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_02.bin",
"byteLength": 208
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 184,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorFactor": [
0.5,
0.5,
1.0,
1.0
],
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
},
{
"attributes": {
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 5,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_03.bin
Binary file not shown.
167 changes: 167 additions & 0 deletions Output/Positive/Instancing/Instancing_03.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
-0.100000024,
0.5,
0.0
],
"min": [
-1.1,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"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",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_03.bin",
"byteLength": 208
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 184,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
},
{
"attributes": {
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 5,
"material": 0
}
]
}
],
"nodes": [
{
"mesh": 0
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_04.bin
Binary file not shown.
175 changes: 175 additions & 0 deletions Output/Positive/Instancing/Instancing_04.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
0.5,
0.5,
0.0
],
"min": [
-0.5,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 4,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_04.bin",
"byteLength": 160
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 136,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 3
},
"indices": 4,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
},
{
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_05.bin
Binary file not shown.
185 changes: 185 additions & 0 deletions Output/Positive/Instancing/Instancing_05.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
0.5,
0.5,
0.0
],
"min": [
-0.5,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
0.5,
0.5,
0.0
],
"min": [
-0.5,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 4,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_05.bin",
"byteLength": 184
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 104,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 152,
"byteLength": 32,
"name": "Texture Coords 0"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 3,
"TEXCOORD_0": 4
},
"indices": 2,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
},
{
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_06.bin
Binary file not shown.
124 changes: 124 additions & 0 deletions Output/Positive/Instancing/Instancing_06.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 4,
"type": "VEC3",
"max": [
0.5,
0.5,
0.0
],
"min": [
-0.5,
-0.5,
0.0
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 4,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 6,
"type": "SCALAR",
"name": "Indices Accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_06.bin",
"byteLength": 104
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 48,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 48,
"byteLength": 32,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 80,
"byteLength": 24,
"name": "Indices"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1
},
"indices": 2,
"material": 0
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 0,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_07.bin
Binary file not shown.
303 changes: 303 additions & 0 deletions Output/Positive/Instancing/Instancing_07.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
-0.0500000119,
0.0,
0.2
],
"min": [
-0.55,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 4,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 2,
"type": "MAT4",
"name": "IBM"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
0.55,
0.0,
0.2
],
"min": [
0.0500000119,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 7,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 8,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 10,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_07.bin",
"byteLength": 752
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 72,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 120,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 168,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 264,
"byteLength": 48,
"name": "joint indices buffer view"
},
{
"buffer": 0,
"byteOffset": 312,
"byteLength": 128,
"name": "Inverse Bind Matrix"
},
{
"buffer": 0,
"byteOffset": 440,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 512,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 560,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 608,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 704,
"byteLength": 48,
"name": "joint indices buffer view"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1,
"WEIGHTS_0": 3,
"JOINTS_0": 4
},
"indices": 2,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 6,
"TEXCOORD_0": 7,
"WEIGHTS_0": 9,
"JOINTS_0": 10
},
"indices": 8,
"material": 1
}
]
}
],
"nodes": [
{
"skin": 0,
"mesh": 0,
"name": "plane0"
},
{
"children": [
2
],
"rotation": [
-0.7071067,
0.0,
0.0,
0.707106769
],
"translation": [
0.0,
-0.2,
0.0
],
"name": "joint0"
},
{
"rotation": [
-0.258819044,
0.0,
0.0,
0.9659258
],
"translation": [
0.0,
0.0,
0.2
],
"name": "joint1"
},
{
"skin": 0,
"mesh": 1,
"name": "plane1"
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1,
3
]
}
],
"skins": [
{
"inverseBindMatrices": 5,
"joints": [
1,
2
],
"name": "skinA"
}
],
"textures": [
{
"source": 0
},
{
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_08.bin
Binary file not shown.
324 changes: 324 additions & 0 deletions Output/Positive/Instancing/Instancing_08.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,324 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
-0.0500000119,
0.0,
0.2
],
"min": [
-0.55,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 4,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 2,
"type": "MAT4",
"name": "IBM"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
0.55,
0.0,
0.2
],
"min": [
0.0500000119,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 7,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 8,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 10,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
},
{
"bufferView": 11,
"componentType": 5126,
"count": 2,
"type": "MAT4",
"name": "IBM"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_08.bin",
"byteLength": 880
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 72,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 120,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 168,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 264,
"byteLength": 48,
"name": "joint indices buffer view"
},
{
"buffer": 0,
"byteOffset": 312,
"byteLength": 128,
"name": "Inverse Bind Matrix"
},
{
"buffer": 0,
"byteOffset": 440,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 512,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 560,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 608,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 704,
"byteLength": 48,
"name": "joint indices buffer view"
},
{
"buffer": 0,
"byteOffset": 752,
"byteLength": 128,
"name": "Inverse Bind Matrix"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1,
"WEIGHTS_0": 3,
"JOINTS_0": 4
},
"indices": 2,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 6,
"TEXCOORD_0": 7,
"WEIGHTS_0": 9,
"JOINTS_0": 10
},
"indices": 8,
"material": 1
}
]
}
],
"nodes": [
{
"skin": 0,
"mesh": 0,
"name": "plane0"
},
{
"children": [
2
],
"rotation": [
-0.7071067,
0.0,
0.0,
0.707106769
],
"translation": [
0.0,
-0.2,
0.0
],
"name": "joint0"
},
{
"rotation": [
-0.258819044,
0.0,
0.0,
0.9659258
],
"translation": [
0.0,
0.0,
0.2
],
"name": "joint1"
},
{
"skin": 1,
"mesh": 1,
"name": "plane1"
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1,
3
]
}
],
"skins": [
{
"inverseBindMatrices": 5,
"joints": [
1,
2
],
"name": "skinA"
},
{
"inverseBindMatrices": 11,
"joints": [
1,
2
],
"name": "skinA"
}
],
"textures": [
{
"source": 0
},
{
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_09.bin
Binary file not shown.
343 changes: 343 additions & 0 deletions Output/Positive/Instancing/Instancing_09.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
0.25,
0.0,
0.2
],
"min": [
-0.25,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 2,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 4,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 2,
"type": "MAT4",
"name": "IBM"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 6,
"type": "VEC3",
"max": [
0.25,
0.0,
0.2
],
"min": [
-0.25,
0.0,
-0.2
],
"name": "Positions Accessor"
},
{
"bufferView": 7,
"componentType": 5126,
"count": 6,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 8,
"componentType": 5125,
"count": 12,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 6,
"type": "VEC4",
"name": "weights accessor"
},
{
"bufferView": 10,
"componentType": 5123,
"count": 6,
"type": "VEC4",
"name": "joint indices accessor"
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_09.bin",
"byteLength": 752
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 72,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 120,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 168,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 264,
"byteLength": 48,
"name": "joint indices buffer view"
},
{
"buffer": 0,
"byteOffset": 312,
"byteLength": 128,
"name": "Inverse Bind Matrix"
},
{
"buffer": 0,
"byteOffset": 440,
"byteLength": 72,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 512,
"byteLength": 48,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 560,
"byteLength": 48,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 608,
"byteLength": 96,
"name": "weights buffer view"
},
{
"buffer": 0,
"byteOffset": 704,
"byteLength": 48,
"name": "joint indices buffer view"
}
],
"images": [
{
"uri": "Textures/BaseColor_A.png"
},
{
"uri": "Textures/BaseColor_B.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 1
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"TEXCOORD_0": 1,
"WEIGHTS_0": 3,
"JOINTS_0": 4
},
"indices": 2,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 6,
"TEXCOORD_0": 7,
"WEIGHTS_0": 9,
"JOINTS_0": 10
},
"indices": 8,
"material": 1
}
]
}
],
"nodes": [
{
"skin": 0,
"mesh": 0,
"name": "plane0"
},
{
"children": [
2
],
"rotation": [
-0.7071067,
0.0,
0.0,
0.707106769
],
"translation": [
-0.3,
-0.2,
0.0
],
"name": "joint0"
},
{
"rotation": [
-0.258819044,
0.0,
0.0,
0.9659258
],
"translation": [
0.0,
0.0,
0.2
],
"name": "joint1"
},
{
"skin": 1,
"mesh": 1,
"name": "plane1"
},
{
"children": [
5
],
"rotation": [
-0.7071067,
0.0,
0.0,
0.707106769
],
"translation": [
0.3,
-0.2,
0.0
],
"name": "joint0"
},
{
"rotation": [
-0.258819044,
0.0,
0.0,
0.9659258
],
"translation": [
0.0,
0.0,
0.2
],
"name": "joint1"
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1,
3,
4
]
}
],
"skins": [
{
"inverseBindMatrices": 5,
"joints": [
1,
2
],
"name": "skinA"
},
{
"inverseBindMatrices": 5,
"joints": [
4,
5
],
"name": "skinA"
}
],
"textures": [
{
"source": 0
},
{
"source": 1
}
]
}
Binary file added Output/Positive/Instancing/Instancing_10.bin
Binary file not shown.
278 changes: 278 additions & 0 deletions Output/Positive/Instancing/Instancing_10.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 3,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 4,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 7,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 8,
"componentType": 5126,
"count": 5,
"type": "SCALAR",
"max": [
4.0
],
"min": [
0.0
],
"name": "Animation Sampler Input"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 5,
"type": "VEC4",
"name": "Animation Sampler Output"
}
],
"animations": [
{
"channels": [
{
"sampler": 0,
"target": {
"node": 0,
"path": "rotation"
}
},
{
"sampler": 0,
"target": {
"node": 1,
"path": "rotation"
}
}
],
"samplers": [
{
"input": 8,
"output": 9
}
]
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_10.bin",
"byteLength": 1924
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 288,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 576,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 768,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 912,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 1200,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 1488,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 1680,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 1824,
"byteLength": 20,
"name": "Animation Sampler Input"
},
{
"buffer": 0,
"byteOffset": 1844,
"byteLength": 80,
"name": "Animation Sampler Output"
}
],
"images": [
{
"uri": "Textures/BaseColor_Cube.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"TEXCOORD_0": 6
},
"indices": 7,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_11.bin
Binary file not shown.
295 changes: 295 additions & 0 deletions Output/Positive/Instancing/Instancing_11.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 3,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 4,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 7,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 8,
"componentType": 5126,
"count": 5,
"type": "SCALAR",
"max": [
4.0
],
"min": [
0.0
],
"name": "Animation Sampler Input"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 5,
"type": "VEC4",
"name": "Animation Sampler Output"
},
{
"bufferView": 10,
"componentType": 5126,
"count": 5,
"type": "VEC4",
"name": "Animation Sampler Output"
}
],
"animations": [
{
"channels": [
{
"sampler": 0,
"target": {
"node": 0,
"path": "rotation"
}
},
{
"sampler": 1,
"target": {
"node": 1,
"path": "rotation"
}
}
],
"samplers": [
{
"input": 8,
"output": 9
},
{
"input": 8,
"output": 10
}
]
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_11.bin",
"byteLength": 2004
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 288,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 576,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 768,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 912,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 1200,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 1488,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 1680,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 1824,
"byteLength": 20,
"name": "Animation Sampler Input"
},
{
"buffer": 0,
"byteOffset": 1844,
"byteLength": 80,
"name": "Animation Sampler Output"
},
{
"buffer": 0,
"byteOffset": 1924,
"byteLength": 80,
"name": "Animation Sampler Output"
}
],
"images": [
{
"uri": "Textures/BaseColor_Cube.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"TEXCOORD_0": 6
},
"indices": 7,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
}
]
}
Binary file added Output/Positive/Instancing/Instancing_12.bin
Binary file not shown.
301 changes: 301 additions & 0 deletions Output/Positive/Instancing/Instancing_12.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
{
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 3,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 4,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"max": [
0.3,
0.3,
0.3
],
"min": [
-0.3,
-0.3,
-0.3
],
"name": "Positions Accessor"
},
{
"bufferView": 5,
"componentType": 5126,
"count": 24,
"type": "VEC3",
"name": "Normals Accessor"
},
{
"bufferView": 6,
"componentType": 5126,
"count": 24,
"type": "VEC2",
"name": "UV Accessor 0"
},
{
"bufferView": 7,
"componentType": 5125,
"count": 36,
"type": "SCALAR",
"name": "Indices Accessor"
},
{
"bufferView": 8,
"componentType": 5126,
"count": 5,
"type": "SCALAR",
"max": [
4.0
],
"min": [
0.0
],
"name": "Animation Sampler Input"
},
{
"bufferView": 9,
"componentType": 5126,
"count": 5,
"type": "VEC4",
"name": "Animation Sampler Output"
},
{
"bufferView": 10,
"componentType": 5126,
"count": 5,
"type": "SCALAR",
"max": [
4.0
],
"min": [
0.0
],
"name": "Animation Sampler Input"
}
],
"animations": [
{
"channels": [
{
"sampler": 0,
"target": {
"node": 0,
"path": "rotation"
}
},
{
"sampler": 1,
"target": {
"node": 1,
"path": "rotation"
}
}
],
"samplers": [
{
"input": 8,
"output": 9
},
{
"input": 10,
"output": 9
}
]
}
],
"asset": {
"generator": "glTF Asset Generator",
"version": "2.0"
},
"buffers": [
{
"uri": "Instancing_12.bin",
"byteLength": 1944
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 288,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 576,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 768,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 912,
"byteLength": 288,
"name": "Positions"
},
{
"buffer": 0,
"byteOffset": 1200,
"byteLength": 288,
"name": "Normals"
},
{
"buffer": 0,
"byteOffset": 1488,
"byteLength": 192,
"name": "Texture Coords 0"
},
{
"buffer": 0,
"byteOffset": 1680,
"byteLength": 144,
"name": "Indices"
},
{
"buffer": 0,
"byteOffset": 1824,
"byteLength": 20,
"name": "Animation Sampler Input"
},
{
"buffer": 0,
"byteOffset": 1844,
"byteLength": 80,
"name": "Animation Sampler Output"
},
{
"buffer": 0,
"byteOffset": 1924,
"byteLength": 20,
"name": "Animation Sampler Input"
}
],
"images": [
{
"uri": "Textures/BaseColor_Cube.png"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
},
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0
}
]
},
{
"primitives": [
{
"attributes": {
"POSITION": 4,
"NORMAL": 5,
"TEXCOORD_0": 6
},
"indices": 7,
"material": 1
}
]
}
],
"nodes": [
{
"mesh": 0,
"translation": [
-0.6,
0.0,
0.0
]
},
{
"mesh": 1,
"translation": [
0.6,
0.0,
0.0
]
}
],
"scene": 0,
"scenes": [
{
"nodes": [
0,
1
]
}
],
"textures": [
{
"source": 0
}
]
}
Loading

0 comments on commit a2bb50c

Please sign in to comment.