Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add externalMetadata option for glTF and GLB #130

Open
xeolabs opened this issue Feb 9, 2024 · 0 comments
Open

[FEATURE] Add externalMetadata option for glTF and GLB #130

xeolabs opened this issue Feb 9, 2024 · 0 comments

Comments

@xeolabs
Copy link
Member

xeolabs commented Feb 9, 2024

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 xeolabs changed the title Handle [FEATURE] Add externalMetadata option for glTF and GLB Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant