xeokit-convert icon indicating copy to clipboard operation
xeokit-convert copied to clipboard

[FEATURE] Add externalMetadata option for glTF and GLB

Open xeolabs opened this issue 1 year ago • 0 comments

Add an externalMetadata option for use when converting .gltf and .glb source files that are accompanied by metadata .json files.

This will cause the metadata JSON files to not be embedded within the XKT output files, and instead be output separately.

{
    "sourceConfigs": {
        "las": {
            "center": false,
            "transform": [
                1.0, 0.0, 0.0, 0.0,
                0.0, 0.0, -1.0, 0.0,
                0.0, 1.0, 0.0, 0.0,
                0.0, 0.0, 0.0, 1.0
            ],
            "colorDepth": "auto",
            "fp64": true,
            "skip": 1,
            "minTileSize": 200
        },
        "laz": {
            "center": false,
            "transform": [
                1.0, 0.0, 0.0, 0.0,
                0.0, 0.0, -1.0, 0.0,
                0.0, 1.0, 0.0, 0.0,
                0.0, 0.0, 0.0, 1.0
            ],
            "colorDepth": "auto",
            "fp64": true,
            "skip": 1,
            "minTileSize": 200
        },
        "ifc": {
            "excludeTypes": [],
            "minTileSize": 200
        },
        "gltf": {
            "reuseGeometries": true,
            "includeTextures": true,
            "includeNormals": false,
            "excludeTypes": [],
            "minTileSize": 200,
            "externalMetadata": true
        },
        "glb": {
            "reuseGeometries": true,
            "includeTextures": true,
            "includeNormals": false,
            "excludeTypes": [],
            "minTileSize": 200,
            "externalMetadata": true // <------- 
        },
        "json": {
            "center": false,
            "transform": [
                1.0, 0.0, 0.0, 0.0,
                0.0, 0.0, -1.0, 0.0,
                0.0, 1.0, 0.0, 0.0,
                0.0, 0.0, 0.0, 1.0
            ],
            "minTileSize": 200
        }
    }
}

xeolabs avatar Feb 09 '24 23:02 xeolabs