From 1297fcb7f33d0bc98653e42433ff1b20cc478b54 Mon Sep 17 00:00:00 2001 From: Marco Hutter Date: Wed, 6 Sep 2017 00:32:24 +0200 Subject: [PATCH] Moved byteStride from accessor to bufferView --- gltfOverview2.0.svg | 432 ++++++++++++++++++++++---------------------- 1 file changed, 221 insertions(+), 211 deletions(-) diff --git a/gltfOverview2.0.svg b/gltfOverview2.0.svg index 2a04117..5c5222d 100644 --- a/gltfOverview2.0.svg +++ b/gltfOverview2.0.svg @@ -16,7 +16,7 @@ id="svg2" version="1.1" inkscape:version="0.91 r13725" - sodipodi:docname="gltfOverview2.0-RC01.svg" + sodipodi:docname="gltfOverview2.0.svg" inkscape:export-xdpi="82.99472" inkscape:export-ydpi="82.99472"> "buffers": [ { "byteLength": 35, "uri": "buffer01.bin" }], Each of the buffers refers to a binary data file, using a URI. It is the source of one block of raw data withthe given "bufferViews": [ { "buffer": 0, "byteOffset": 4, "byteLength": 28, "byteStride": 12, "target": 34963 }], Each of the bufferViewsrefers to one buffer. Ithas a byteOffset and abyteLength, defining thepart of the buffer that belongs to the bufferView, and an optional OpenGL buffer buffer target.target. "accessors": [ { "bufferView": 0, "byteOffset": 4, "type": "VEC2", "componentType": 5126, "count": 2, "byteStride": 12, "min" : [0.1, 0.2] "max" : [0.9, 0.8] }] The accessors define how the data of a bufferView is interpreted. They may define an additional byeOffset referring to thestart of the bufferView,and contain informationabout the type and layoutof the bufferView data: + transform="translate(-1e-4,-6.32e-5)" /> buffer byteLength = 35 bufferView byteOffset = 4 byteLength = 28 0 4 8 16 12 20 24 28 32 accessor byteOffset = 4 + style="stroke:#808080;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> The The The The accessor defines a stride between the elements: + id="tspan12958">bufferView defines a stride between the elements: The + y="1018.7819" /> + y="1018.7672" /> + y="1018.7672" /> + y="1018.7672" /> byteStride = 12 type = "VEC2" componentType = GL_FLOAT x0 @@ -6357,13 +6357,13 @@ xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:17.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="1661.375" - y="1025.5002" + y="1030.0004" id="text8770-1" sodipodi:linespacing="125%">y0 @@ -6371,13 +6371,13 @@ xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:17.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="1737.0916" - y="1025.5027" + y="1030.0028" id="text8770-8" sodipodi:linespacing="125%">x1 @@ -6385,13 +6385,13 @@ xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:17.5px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="1772.8081" - y="1024.7864" + y="1029.2865" id="text8770-6" sodipodi:linespacing="125%">y1 @@ -6399,253 +6399,253 @@ xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="1566.6985" - y="846.30536" + y="850.80542" id="text10370-2-1" sodipodi:linespacing="125%">4 8 16 12 20 24 28 32 8 16 12 20 24 28 32 8 16 12 20 24 28 layout of the data. @@ -6695,22 +6695,22 @@ xml:space="preserve" style="font-style:normal;font-weight:normal;font-size:15px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" x="1398.6541" - y="616.78119" + y="594.28107" id="text3407-5-3-0-5-0-3-7-5" sodipodi:linespacing="125%">The data may, for example, be defined as 2D vectors of floating point values when the"VEC2"and the componentType is GL_FLOAT (5126). TheGL_FLOAT (5126). The byteStride says how many bytes are between therange of all values is stored in the min and max start of one element and the start of the next,property.The data of multiple accessors may be interleaved which allows for accessors to define interleavedinside a bufferView. In this case, the bufferView willdata. The range of all values is stored in the have a minbyteStride property that says how many bytes are between the start of one element of anand max property. + style="font-size:12.5px">accessor, and the start of the next. @@ -16692,7 +16702,7 @@ x="564.62915" y="892.45142" id="tspan3403-0-0-9-0" - style="font-size:12.5px"> Version 2.0 Version 2.0a