diff --git a/Models/TopologiesWithoutIndices/LICENSE.md b/Models/TopologiesWithoutIndices/LICENSE.md new file mode 100644 index 00000000..ce8455b7 --- /dev/null +++ b/Models/TopologiesWithoutIndices/LICENSE.md @@ -0,0 +1,15 @@ +# LICENSE file for the model: Topologies Without Indices + +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 \ No newline at end of file diff --git a/Models/TopologiesWithoutIndices/README.body.md b/Models/TopologiesWithoutIndices/README.body.md new file mode 100644 index 00000000..228178b2 --- /dev/null +++ b/Models/TopologiesWithoutIndices/README.body.md @@ -0,0 +1,9 @@ +## Screenshot + +![screenshot](screenshot/screenshot.png) + +## Description +Collection of simple Lines, LineStrips, LineLoops, Triangles, TriangleStrips and TriangleFans primitives without indices. + +## Data layout + diff --git a/Models/TopologiesWithoutIndices/README.md b/Models/TopologiesWithoutIndices/README.md new file mode 100644 index 00000000..ebef5436 --- /dev/null +++ b/Models/TopologiesWithoutIndices/README.md @@ -0,0 +1,33 @@ +# Triangle Without Indices + +## Tags + +[core](../../Models-core.md), [testing](../../Models-testing.md) + +## Summary + +Collection of simple Lines, LineStrips, LineLoops, Triangles, TriangleStrips and TriangleFans primitives without indices. + +## Operations + +* [Display](https://github.khronos.org/glTF-Sample-Viewer-Release/?model=https://raw.GithubUserContent.com/KhronosGroup/glTF-Sample-Assets/main/./Models/TopologiesWithoutIndices/glTF/TopoNoIndices.gltf) in SampleViewer +* [Model Directory](./) + +## Screenshot + +![screenshot](screenshot/screenshot.png) + +## Description + +Collection of simple Lines, LineStrips, LineLoops, Triangles, TriangleStrips and TriangleFans primitives without indices. + +## Data layout + + +## Legal + +© 2017, Public. [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/legalcode) + + - javagl for Everything + +#### Assembled by modelmetadata \ No newline at end of file diff --git a/Models/TopologiesWithoutIndices/glTF-Binary/TopologiesWithoutIndices.glb b/Models/TopologiesWithoutIndices/glTF-Binary/TopologiesWithoutIndices.glb new file mode 100644 index 00000000..91e35dd4 Binary files /dev/null and b/Models/TopologiesWithoutIndices/glTF-Binary/TopologiesWithoutIndices.glb differ diff --git a/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.bin b/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.bin new file mode 100644 index 00000000..71de6163 Binary files /dev/null and b/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.bin differ diff --git a/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.gltf b/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.gltf new file mode 100644 index 00000000..219df060 --- /dev/null +++ b/Models/TopologiesWithoutIndices/glTF-Draco/TopologiesWithoutIndices.gltf @@ -0,0 +1,383 @@ +{ + "asset": { + "generator": "glTF-Transform v3.2.1", + "version": "2.0" + }, + "accessors": [ + { + "type": "SCALAR", + "componentType": 5123, + "count": 18 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 18, + "max": [ + 0.866025447845459, + -1, + 1 + ], + "min": [ + -0.8660255074501038, + -1, + -1 + ] + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 18 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 6, + "max": [ + 4, + 0, + 1 + ], + "min": [ + -1, + 0, + -1 + ], + "bufferView": 0, + "byteOffset": 0 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 6, + "bufferView": 0, + "byteOffset": 12 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 7, + "max": [ + 2, + 0, + 3 + ], + "min": [ + -2, + 0, + -1 + ], + "bufferView": 1, + "byteOffset": 0 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 7, + "bufferView": 1, + "byteOffset": 12 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 10, + "max": [ + 2, + 0, + 3 + ], + "min": [ + -2, + 0, + -1 + ], + "bufferView": 2, + "byteOffset": 0 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 8, + "max": [ + 2, + 0, + 3 + ], + "min": [ + -2, + 0, + -1 + ], + "bufferView": 3, + "byteOffset": 0 + }, + { + "type": "VEC3", + "componentType": 5126, + "count": 16, + "max": [ + 2, + 0, + 3 + ], + "min": [ + -2, + 0, + -1 + ], + "bufferView": 4, + "byteOffset": 0 + }, + { + "type": "SCALAR", + "componentType": 5123, + "count": 6, + "bufferView": 5, + "byteOffset": 0 + }, + { + "type": "SCALAR", + "componentType": 5123, + "count": 7, + "bufferView": 5, + "byteOffset": 12 + }, + { + "type": "SCALAR", + "componentType": 5123, + "count": 10, + "bufferView": 5, + "byteOffset": 28 + }, + { + "type": "SCALAR", + "componentType": 5123, + "count": 8, + "bufferView": 5, + "byteOffset": 48 + }, + { + "type": "SCALAR", + "componentType": 5123, + "count": 16, + "bufferView": 5, + "byteOffset": 64 + } + ], + "bufferViews": [ + { + "buffer": 0, + "byteOffset": 0, + "byteLength": 144, + "byteStride": 24, + "target": 34962 + }, + { + "buffer": 0, + "byteOffset": 144, + "byteLength": 168, + "byteStride": 24, + "target": 34962 + }, + { + "buffer": 0, + "byteOffset": 312, + "byteLength": 120, + "byteStride": 12, + "target": 34962 + }, + { + "buffer": 0, + "byteOffset": 432, + "byteLength": 96, + "byteStride": 12, + "target": 34962 + }, + { + "buffer": 0, + "byteOffset": 528, + "byteLength": 192, + "byteStride": 12, + "target": 34962 + }, + { + "buffer": 0, + "byteOffset": 720, + "byteLength": 96, + "target": 34963 + }, + { + "buffer": 0, + "byteOffset": 816, + "byteLength": 214 + } + ], + "buffers": [ + { + "uri": "TopologiesWithoutIndices.bin", + "byteLength": 1030 + } + ], + "meshes": [ + { + "name": "TriangleStrip", + "primitives": [ + { + "attributes": { + "POSITION": 3, + "NORMAL": 4 + }, + "mode": 5, + "indices": 10 + } + ] + }, + { + "name": "TriangleFan", + "primitives": [ + { + "attributes": { + "POSITION": 5, + "NORMAL": 6 + }, + "mode": 6, + "indices": 11 + } + ] + }, + { + "name": "Triangles", + "primitives": [ + { + "attributes": { + "POSITION": 1, + "NORMAL": 2 + }, + "mode": 4, + "indices": 0, + "extensions": { + "KHR_draco_mesh_compression": { + "bufferView": 6, + "attributes": { + "POSITION": 0, + "NORMAL": 1 + } + } + } + } + ] + }, + { + "name": "LineStrip", + "primitives": [ + { + "attributes": { + "POSITION": 7 + }, + "mode": 3, + "indices": 12 + } + ] + }, + { + "name": "LineLoop", + "primitives": [ + { + "attributes": { + "POSITION": 8 + }, + "mode": 2, + "indices": 13 + } + ] + }, + { + "name": "Lines", + "primitives": [ + { + "attributes": { + "POSITION": 9 + }, + "mode": 1, + "indices": 14 + } + ] + } + ], + "nodes": [ + { + "name": "TriangleStrip", + "translation": [ + -2, + 0, + 0 + ], + "mesh": 0 + }, + { + "name": "TriangleFan", + "translation": [ + 5, + 1, + -1 + ], + "mesh": 1 + }, + { + "name": "Triangles", + "translation": [ + -6, + 1, + 0 + ], + "mesh": 2 + }, + { + "name": "LineStrip", + "translation": [ + -6, + 0, + 5 + ], + "mesh": 3 + }, + { + "name": "LineLoop", + "translation": [ + -1, + 0, + 5 + ], + "mesh": 4 + }, + { + "name": "Lines", + "translation": [ + -11, + 0, + 5 + ], + "mesh": 5 + } + ], + "scenes": [ + { + "name": "Scene", + "nodes": [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + } + ], + "scene": 0, + "extensionsUsed": [ + "KHR_draco_mesh_compression" + ], + "extensionsRequired": [ + "KHR_draco_mesh_compression" + ] +} \ No newline at end of file diff --git a/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.bin b/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.bin new file mode 100644 index 00000000..3f1d91f0 Binary files /dev/null and b/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.bin differ diff --git a/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.gltf b/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.gltf new file mode 100644 index 00000000..17380e2c --- /dev/null +++ b/Models/TopologiesWithoutIndices/glTF-MeshOpt/TopologiesWithoutIndices.gltf @@ -0,0 +1,365 @@ +{ + "asset": { + "generator": "glTF-Transform v3.2.1", + "version": "2.0" + }, + "accessors": [ + { + "type": "VEC3", + "componentType": 5120, + "count": 6, + "normalized": true, + "byteOffset": 0, + "bufferView": 0 + }, + { + "type": "VEC3", + "componentType": 5120, + "count": 7, + "normalized": true, + "byteOffset": 24, + "bufferView": 0 + }, + { + "type": "VEC3", + "componentType": 5120, + "count": 18, + "normalized": true, + "byteOffset": 52, + "bufferView": 0 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 6, + "max": [ + 32767, + 0, + 13105 + ], + "min": [ + -32767, + 0, + -13105 + ], + "normalized": true, + "byteOffset": 0, + "bufferView": 1 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 7, + "max": [ + 32767, + 0, + 32767 + ], + "min": [ + -32767, + 0, + -32767 + ], + "normalized": true, + "byteOffset": 48, + "bufferView": 1 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 18, + "max": [ + 28379, + 0, + 32767 + ], + "min": [ + -28379, + 0, + -32767 + ], + "normalized": true, + "byteOffset": 104, + "bufferView": 1 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 10, + "max": [ + 32767, + 0, + 32767 + ], + "min": [ + -32767, + 0, + -32767 + ], + "normalized": true, + "byteOffset": 248, + "bufferView": 1 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 8, + "max": [ + 32767, + 0, + 32767 + ], + "min": [ + -32767, + 0, + -32767 + ], + "normalized": true, + "byteOffset": 328, + "bufferView": 1 + }, + { + "type": "VEC3", + "componentType": 5122, + "count": 16, + "max": [ + 32767, + 0, + 32767 + ], + "min": [ + -32767, + 0, + -32767 + ], + "normalized": true, + "byteOffset": 392, + "bufferView": 1 + } + ], + "bufferViews": [ + { + "buffer": 1, + "byteOffset": 0, + "byteLength": 124, + "target": 34962, + "byteStride": 4, + "extensions": { + "EXT_meshopt_compression": { + "buffer": 0, + "byteOffset": 0, + "byteLength": 37, + "mode": "ATTRIBUTES", + "filter": "OCTAHEDRAL", + "byteStride": 4, + "count": 31 + } + } + }, + { + "buffer": 1, + "byteOffset": 124, + "byteLength": 520, + "target": 34962, + "byteStride": 8, + "extensions": { + "EXT_meshopt_compression": { + "buffer": 0, + "byteOffset": 40, + "byteLength": 274, + "mode": "ATTRIBUTES", + "byteStride": 8, + "count": 65 + } + } + } + ], + "buffers": [ + { + "uri": "TopologiesWithoutIndices.bin", + "byteLength": 316 + }, + { + "byteLength": 644, + "extensions": { + "EXT_meshopt_compression": { + "fallback": true + } + } + } + ], + "meshes": [ + { + "name": "TriangleStrip", + "primitives": [ + { + "attributes": { + "NORMAL": 0, + "POSITION": 3 + }, + "mode": 5 + } + ] + }, + { + "name": "TriangleFan", + "primitives": [ + { + "attributes": { + "NORMAL": 1, + "POSITION": 4 + }, + "mode": 6 + } + ] + }, + { + "name": "Triangles", + "primitives": [ + { + "attributes": { + "NORMAL": 2, + "POSITION": 5 + }, + "mode": 4 + } + ] + }, + { + "name": "LineStrip", + "primitives": [ + { + "attributes": { + "POSITION": 6 + }, + "mode": 3 + } + ] + }, + { + "name": "LineLoop", + "primitives": [ + { + "attributes": { + "POSITION": 7 + }, + "mode": 2 + } + ] + }, + { + "name": "Lines", + "primitives": [ + { + "attributes": { + "POSITION": 8 + }, + "mode": 1 + } + ] + } + ], + "nodes": [ + { + "name": "TriangleStrip", + "translation": [ + -0.5, + 0, + 0 + ], + "scale": [ + 2.5, + 2.5, + 2.5 + ], + "mesh": 0 + }, + { + "name": "TriangleFan", + "translation": [ + 5, + 1, + 0 + ], + "scale": [ + 2, + 2, + 2 + ], + "mesh": 1 + }, + { + "name": "Triangles", + "translation": [ + -6.000000029802322, + 0, + 0 + ], + "mesh": 2 + }, + { + "name": "LineStrip", + "translation": [ + -6, + 0, + 6 + ], + "scale": [ + 2, + 2, + 2 + ], + "mesh": 3 + }, + { + "name": "LineLoop", + "translation": [ + -1, + 0, + 6 + ], + "scale": [ + 2, + 2, + 2 + ], + "mesh": 4 + }, + { + "name": "Lines", + "translation": [ + -11, + 0, + 6 + ], + "scale": [ + 2, + 2, + 2 + ], + "mesh": 5 + } + ], + "scenes": [ + { + "name": "Scene", + "nodes": [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + } + ], + "scene": 0, + "extensionsUsed": [ + "KHR_mesh_quantization", + "EXT_meshopt_compression" + ], + "extensionsRequired": [ + "KHR_mesh_quantization", + "EXT_meshopt_compression" + ] +} \ No newline at end of file diff --git a/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.bin b/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.bin new file mode 100644 index 00000000..5e08c1cc Binary files /dev/null and b/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.bin differ diff --git a/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.gltf b/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.gltf new file mode 100644 index 00000000..e59720a5 --- /dev/null +++ b/Models/TopologiesWithoutIndices/glTF/TopologiesWithoutIndices.gltf @@ -0,0 +1,397 @@ +{ + "asset":{ + "generator":"Khronos glTF Blender I/O v3.6.27", + "version":"2.0" + }, + "scene":0, + "scenes":[ + { + "name":"Scene", + "nodes":[ + 0, + 1, + 2, + 3, + 4, + 5 + ] + } + ], + "nodes":[ + { + "mesh":0, + "name":"TriangleStrip", + "translation":[ + -2, + 0, + 0 + ] + }, + { + "mesh":1, + "name":"TriangleFan", + "translation":[ + 5, + 1, + -1 + ] + }, + { + "mesh":2, + "name":"Triangles", + "translation":[ + -6, + 1, + 0 + ] + }, + { + "mesh":3, + "name":"LineStrip", + "translation":[ + -6, + 0, + 5 + ] + }, + { + "mesh":4, + "name":"LineLoop", + "translation":[ + -1, + 0, + 5 + ] + }, + { + "mesh":5, + "name":"Lines", + "translation":[ + -11, + 0, + 5 + ] + } + ], + "meshes":[ + { + "name":"TriangleStrip", + "primitives":[ + { + "attributes":{ + "POSITION":0, + "NORMAL":1 + }, + "mode": 5 + } + ] + }, + { + "name":"TriangleFan", + "primitives":[ + { + "attributes":{ + "POSITION":3, + "NORMAL":4 + }, + "mode": 6 + } + ] + }, + { + "name":"Triangles", + "primitives":[ + { + "attributes":{ + "POSITION":6, + "NORMAL":7 + }, + "mode": 4 + } + ] + }, + { + "name":"LineStrip", + "primitives":[ + { + "attributes":{ + "POSITION":9 + }, + "mode":3 + } + ] + }, + { + "name":"LineLoop", + "primitives":[ + { + "attributes":{ + "POSITION":11 + }, + "mode":2 + } + ] + }, + { + "name":"Lines", + "primitives":[ + { + "attributes":{ + "POSITION":13 + }, + "mode":1 + } + ] + } + ], + "accessors":[ + { + "bufferView":0, + "componentType":5126, + "count":6, + "max":[ + 4, + 0, + 1 + ], + "min":[ + -1, + 0, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":1, + "componentType":5126, + "count":6, + "type":"VEC3" + }, + { + "bufferView":2, + "componentType":5123, + "count":12, + "type":"SCALAR" + }, + { + "bufferView":3, + "componentType":5126, + "count":7, + "max":[ + 2, + 0, + 3 + ], + "min":[ + -2, + 0, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":4, + "componentType":5126, + "count":7, + "type":"VEC3" + }, + { + "bufferView":5, + "componentType":5123, + "count":18, + "type":"SCALAR" + }, + { + "bufferView":6, + "componentType":5126, + "count":18, + "max":[ + 0.866025447845459, + -1, + 1 + ], + "min":[ + -0.8660255074501038, + -1, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":7, + "componentType":5126, + "count":18, + "type":"VEC3" + }, + { + "bufferView":8, + "componentType":5123, + "count":18, + "type":"SCALAR" + }, + { + "bufferView":9, + "componentType":5126, + "count":10, + "max":[ + 2, + 0, + 3 + ], + "min":[ + -2, + 0, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":10, + "componentType":5123, + "count":16, + "type":"SCALAR" + }, + { + "bufferView":11, + "componentType":5126, + "count":8, + "max":[ + 2, + 0, + 3 + ], + "min":[ + -2, + 0, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":12, + "componentType":5123, + "count":14, + "type":"SCALAR" + }, + { + "bufferView":13, + "componentType":5126, + "count":16, + "max":[ + 2, + 0, + 3 + ], + "min":[ + -2, + 0, + -1 + ], + "type":"VEC3" + }, + { + "bufferView":14, + "componentType":5123, + "count":16, + "type":"SCALAR" + } + ], + "bufferViews":[ + { + "buffer":0, + "byteLength":72, + "byteOffset":0, + "target":34962 + }, + { + "buffer":0, + "byteLength":72, + "byteOffset":72, + "target":34962 + }, + { + "buffer":0, + "byteLength":24, + "byteOffset":144, + "target":34963 + }, + { + "buffer":0, + "byteLength":84, + "byteOffset":168, + "target":34962 + }, + { + "buffer":0, + "byteLength":84, + "byteOffset":252, + "target":34962 + }, + { + "buffer":0, + "byteLength":36, + "byteOffset":336, + "target":34963 + }, + { + "buffer":0, + "byteLength":216, + "byteOffset":372, + "target":34962 + }, + { + "buffer":0, + "byteLength":216, + "byteOffset":588, + "target":34962 + }, + { + "buffer":0, + "byteLength":36, + "byteOffset":804, + "target":34963 + }, + { + "buffer":0, + "byteLength":120, + "byteOffset":840, + "target":34962 + }, + { + "buffer":0, + "byteLength":32, + "byteOffset":960, + "target":34963 + }, + { + "buffer":0, + "byteLength":96, + "byteOffset":992, + "target":34962 + }, + { + "buffer":0, + "byteLength":28, + "byteOffset":1088, + "target":34963 + }, + { + "buffer":0, + "byteLength":192, + "byteOffset":1116, + "target":34962 + }, + { + "buffer":0, + "byteLength":32, + "byteOffset":1308, + "target":34963 + } + ], + "buffers":[ + { + "byteLength":1340, + "uri":"TopologiesWithoutIndices.bin" + } + ] +} diff --git a/Models/TopologiesWithoutIndices/metadata.json b/Models/TopologiesWithoutIndices/metadata.json new file mode 100644 index 00000000..68997c95 --- /dev/null +++ b/Models/TopologiesWithoutIndices/metadata.json @@ -0,0 +1,25 @@ +{ + "version": 2, + "legal": [ + { + "license": "CC0", + "licenseUrl": "https://creativecommons.org/publicdomain/zero/1.0/legalcode", + "artist": "prefrontal cortex", + "owner": "public", + "year": "2024", + "what": "Everything", + "text": "CC0 1.0 Universal", + "spdx": "CC0-1.0", + "icon": "https://licensebuttons.net/p/zero/1.0/88x31.png" + } + ], + "tags": [ + "core", + "testing" + ], + "screenshot": "screenshot/screenshot.png", + "name": "Topologies without indices", + "path": "./Models/TopologiesWithoutIndices", + "summary": "Lines, LineStrips, LineLoops, Triangles, TriangleStrips and TriangleFans primitives without indices.", + "createReadme": true +} \ No newline at end of file diff --git a/Models/TopologiesWithoutIndices/screenshot/screenshot.png b/Models/TopologiesWithoutIndices/screenshot/screenshot.png new file mode 100644 index 00000000..0aba0508 Binary files /dev/null and b/Models/TopologiesWithoutIndices/screenshot/screenshot.png differ