OSRS-Environment-Exporter icon indicating copy to clipboard operation
OSRS-Environment-Exporter copied to clipboard

[REQUEST] Combine glTF, bin file, and textures directory into one glb file

Open ConnorDY opened this issue 3 years ago • 2 comments

Requirement: Make it possible to turn this off for debugging.

GLB Docs: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#glb-file-format-specification https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/Specification.adoc#glb-file-format-specification

ConnorDY avatar Jul 17 '22 05:07 ConnorDY

I need this.

CMTrago avatar May 11 '23 00:05 CMTrago

I personally just use gltf.report for this. I took a GLTF + bin file exported by this tool and used the unpartition() pipeline to combine it into a single GLB file. The full script I used was:

    import { prune, dedup, resample, weld, unpartition } from '@gltf-transform/functions';

    await document.transform(
        weld({exhaustive: true}),
        unpartition(),
        dedup(),
        resample(),
        prune()
    );

Supalosa avatar Apr 12 '24 10:04 Supalosa