Scenegraph Layer
A 3D model per row, positioned, oriented (pitch, yaw, roll in degrees), scaled and colored by channels.
Syntax
{ "id": "n1", "op": "scenegraph", "name": "scenegraph", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:sizeScale, or read elsewhere as ch('scenegraph/sizeScale').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
position | expr | "P" | |
color | expr | "" | |
orientation | expr | "" | |
scale | expr | "" | |
translation | expr | "" | |
scenegraph | url | "https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/scenegraph-layer/airplane.glb" | |
sizeScale | float | 1 | |
sizeMinPixels | float | 0 | |
sizeMaxPixels | float | 100 | |
modelColor | color | [255,255,255] | |
ramp | menu | "viridis" | 37 choices |
opacity | float | 1 | |
blend | menu | "normal" | normal, additive, subtractive |
depthTest | toggle | true | |
depthWrite | toggle | true | |
extensions | field | [] |
Outputs
| Port | Type |
|---|---|
out | layer |
Details
- Category: Layers
- Operator:
scenegraph
Older projects
Projects saved before documents used operator classes. These convert to scenegraph when they open: ScenegraphLayerOp.