Binary Buffer & Accessor CheckBuffer bounds check · animated-child.glb (D) · 5 accessors, 112 B BIN, VALID

GLB Accessor Checker — BufferView Alignment, Stride & Bounds

Verify every glTF 2.0 accessor and bufferView against component alignment rules, interleaved byteStride bounds, and physical BIN chunk length.

Drop a 3D model to explore & inspect it

GLB, glTF, STL, or 3MF · up to 100 MB · stays on your device

Have a multi-file .gltf? Select or drop its .bin and textures together.

Or explore an instant 3D sample
Verified Sample · CC0-1.0Sample file: animated-child.glb (1.5 KB)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

Do all accessors inside animated-child.glb satisfy Khronos alignment and buffer bounds? All 5 accessors (VEC3 positions/normals, UNSIGNED_SHORT indices, SCALAR keyframe times, and VEC3 translations) align cleanly within the 112-byte BIN buffer with verdict VALID.

Validated Accessors
5accessors
Declared BIN Buffer Size
112bytes
Accessor 0 Span (VEC3×3)
36bytes
Buffer Layout Verdict
VALIDverdict
Cryptographic SHA-256 & Engine Provenance
Sample Input File
animated-child.glb · 1564 bytes · CC0-1.0
Browser Codec Engine
gltf-validator 2.0.0-dev.3.10
Input SHA-256 Digest
84a0bff5187a66a89051912bc62a0e638a03f086640716529a205e07d8bf90ea
Engine Artifact SHA-256
b73a7b2d455ac217567725138b46d826a13d7d1bb0c88c15f7c571bfb349298c
Reference Verification
Khronos Accessor Alignment Rules 2.0
Schema & Preset ID
glb.glbvieweronline.glb-accessor-check.v1 · glb-accessor-alignment · proj-glb-buffer-bounds

Preventing WebGL2 TypedArray RangeErrors From Misaligned glTF Accessors

How Component Alignment and Byte Stride Govern GPU TypedArray Views

When Three.js or Babylon.js parses a binary GLB, it constructs zero-copy JavaScript TypedArrays—such as Float32Array or Uint16Array—directly over the ArrayBuffer at byteOffset = bufferView.byteOffset + accessor.byteOffset. JavaScript engines enforce a strict hardware rule: a Float32Array (componentType 5126) or Uint32Array (5125) throws an immediate RangeError if its starting byte offset is not an exact multiple of 4, and a Uint16Array (5123) fails if odd-aligned. Custom C++, Rust, or Python GLB packers frequently forget 2-byte padding after an odd count of UNSIGNED_SHORT triangle indices (for instance, 3 indices = 6 bytes, leaving the next bufferView at offset 78 instead of 80!).

Our accessor validator checks every accessor’s component byte width, element count, effective byteStride, total byteSpan ((count - 1) × stride + elementBytes), modulo alignment, and upper bound against both its parent bufferView and the physical BIN chunk.

  • Flags MISALIGNED offsets before Float32Array or Uint16Array constructors crash browser loaders.
  • Catches OUT_OF_BOUNDS spans caused by truncated BIN chunks or off-by-one stride calculations.
  • Pairs custom byte-span math with official Khronos gltf-validator buffer diagnostics.

Verifying 2-Byte Index Padding in animated-child.glb

Look closely at animated-child.glb: bufferViews 0 and 1 occupy 36 bytes each (offsets 0 and 36), bufferView 2 holds 3 UNSIGNED_SHORT indices = 6 bytes at offset 72..78, and the exporter properly inserts 2 pad bytes so Float32 animation timestamps in bufferView 3 start cleanly at 4-byte-aligned offset 80.

Common Questions & Answers

Why is there a 2-byte gap between bufferView 2 and bufferView 3 in animated-child.glb?

Three UNSIGNED_SHORT indices occupy 6 bytes (72..78); 2 zero pad bytes advance the cursor to offset 80 so the following FLOAT accessor is 4-byte aligned.

How is accessor byteSpan calculated when interleaved byteStride is set?

For count > 0, byteSpan equals (count - 1) × byteStride + elementByteLength, ensuring the final attribute element fits inside bufferView.byteLength.

What WebGL targets correspond to bufferView target 34962 and 34963?

34962 corresponds to GL_ARRAY_BUFFER (vertex attributes) and 34963 corresponds to GL_ELEMENT_ARRAY_BUFFER (triangle index buffers).

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 100 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
100 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.