Repository navigation
The generic 3D formats in the graphic engine: glTF, meshopt, Draco, KTX2 and texture compression read once for 3D Tiles and models - #654
Merged
Conversation
…2, texture compression, the rig's pose; 3D Tiles decodes through them
… and images, the tools, the fuzz targets
…d READMEs on the new modules, the fixture formatted
…graphic engine's formats
…e in data/, read by its tests and bench
…ormats::bytes, the points tests in tests/
…rows, the inspect tool's comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 19 of the migration, step 1: the generic 3D formats in
isard-graphic-engine::formats, read the same by 3D Tiles, the models and the tools.legacy/crates/tiles3d/src/decodetoisard-graphic-engine::formats; glTF splats (KHR_gaussian_splatting, SPZ) read informats::gltf; the models' pose inscene::rig. New featuresanimation,draco,ktx2; tiles3d's own features switch them on.isard_rhi::BlockFormat: one list of GPU block formats, the WebGL mapping kept once next to the wasm export.decode/{gltf,accessor,meshopt,draco,animation,splats}.rs,parse_glb,texture.rs,bytes.rsare deleted.crates/technique/graphic-engine/data/gltf.json, 14 models (Khronos glTF-Sample-Assets at e124e8d8, the textured box in Draco and meshopt, Lille's photomesh tiles, the helix points) read by glTF Transform 4.5.1 (scripts/test/gltf-fixture.ts); it passed on the old decoder before the move and passes on the new one.isard-graphic-engine/benches/formats.rs(glb meshopt in three variants, Draco, KTX2 with transcoding, the meshopt streams).The Draco and KTX2 wasm modules are unchanged here; their reduction to the decoder alone, the models layer, COLLADA and IFC follow in the next steps of slice 19.
Performance
Decoding benches, main → branch (
--quick): glb meshopt 8.63 → 8.75 µs, quantized 8.94 → 8.92 µs, filtered 9.17 → 9.00 µs; meshopt streams 958/666/888 → 966/663/897 ns: within noise. No frame path changes. Module sizes (gzip): 3D Tiles 102.0 KB (budget 98.5 → 107), SOG 167.4 KB (162.9 → 175.8), Draco 192.8 KB, KTX2 414.9 KB within budget.