You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON v5: Centralize buffers and use UUID-keyed collections
- Bump serialization version to 5
- Extract buffer data to top-level `buffers` object to avoid duplication
- Change collections (geometries, materials, textures, etc.) from arrays to UUID-keyed objects
- Remove redundant uuid property from items (uuid is now the key)
- Use explicit type strings instead of boolean flags:
- `isInstancedBufferAttribute` → `type: 'InstancedBufferAttribute'`
- `isInterleavedBufferAttribute` → `type: 'InterleavedBufferAttribute'`
- `isInstancedInterleavedBuffer` → `type: 'InstancedInterleavedBuffer'`
- Add `arrayType` property to preserve typed array constructor name
- ObjectLoader: Add `_distributeBuffers()` to merge buffers into geometries
- ObjectLoader: Add `_convertLegacyCollections()` for v4 compatibility
- ObjectLoader: Parse methods now iterate over objects natively
- BufferGeometryLoader: Support both v4 and v5 attribute formats
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments