Skip to content

Materials & Rendering

Materials Array

An array of material definitions. Each material object contains rendering properties.

Common Properties:

KeyTypeDescription
idStringUnique string identifier for the material (e.g., "mat_department_obj_DEFAULT").
nameStringName of the material.
ambientArray[r, g, b] ambient color.
diffuseArray[r, g, b] diffuse color.
specularArray[r, g, b] specular color.
emissiveArray[r, g, b] emissive color.
alphaNumberTransparency level (0-1).
metadataObjectAdditional metadata (color hex, levels, etc.).
pluginsObjectMaterial plugins configuration (e.g., DetailMapConfiguration, ZFightPreventer).

MultiMaterials Array

Definitions of multi-materials used in the scene.

Lights Array

Definitions of light sources.

Common Properties:

KeyTypeDescription
idStringUnique identifier for the light.
typeNumberLight type (e.g., 3 for Hemisphere, 1 for Directional).
positionArray[x, y, z] position.
directionArray[x, y, z] direction vector.
intensityNumberLight intensity.
diffuseArray[r, g, b] diffuse color.

Cameras Array

Definitions of cameras in the scene. Typically includes ArcRotateCamera.

Common Properties:

KeyTypeDescription
idStringUnique identifier for the camera.
nameStringName of the camera.
positionArray[x, y, z] position.
targetArray[x, y, z] target point.
modeNumberCamera mode (Perspective/Orthographic).
fovNumberField of view.