Skip to content
Scott Hunter edited this page Jun 17, 2016 · 16 revisions

This page describes the possible content of a CZML document or stream. Please read CZML Structure for an explanation of how a CZML document is put together.

#Model

A 3D model.

Interpolatable: no

##Properties

show - Boolean

Whether or not the model is shown.

Default: true

gltf - Uri

The URI of a glTF model. For broadest client compatibility, the URI should be accessible via Cross-Origin Resource Sharing (CORS). The URI may also be a data URI.

scale - Double

The scale of the model.

minimumPixelSize - Double

The approximate minimum pixel size of the model regardless of zoom.

maximumScale - Double

The maximum scale size of the model. This is used as an upper limit for minimumPixelSize.

incrementallyLoadTextures - Boolean

Whether or not the model can be rendered before all textures have loaded.

Default: true

runAnimations - Boolean

Whether or not to run all animations defined in the glTF model.

Default: true

nodeTransformations - NodeTransformations

A mapping of node names to node transformations.

Examples:

{
    "model": {
        "gltf": "example.gltf",
        "nodeTransformations": {
            "node1": {
                "scale": {
                    "cartesian": [
                        1.0, 2.0, 3.0
                    ]
                },
                "rotation": {
                    "unitQuaternion": [
                        0.0, 0.0, 0.0, 1.0
                    ]
                },
                "translation": {
                    "cartesian": [
                        4.0, 5.0, 6.0
                    ]
                }
            },
            "node2": {
                "scale": {
                    "epoch": "2012-04-02T12:00:00Z",
                    "cartesian": [
                        0.0, 1.0, 2.0, 3.0,
                        60.0, 10.0, 12.0, 14.0
                    ]
                }
            }
        }
    }
}
Clone this wiki locally