scene
Scene nodes, components, and interaction.
11 functions / 63 types
Modules
| Module |
|---|
scene.block_model |
scene.csg |
scene.interaction |
scene.mesh |
scene.name |
scene.point_cloud |
scene.polyline |
scene.shape |
scene.transform |
scene.visibility |
Index
| Function | Description |
|---|---|
| ClearSkybox | Remove the scene’s skybox, so the background is black from the next frame. Cancels a set_skybox load still in progress, which then fails with Cancelled. |
| Clone | Clone a scene node with shared render assets and the same parent and local component values. The clone has no project association. Active pointer drags are not copied. |
| Despawn | Despawn a scene object and all its descendants. |
| GetChildren | Get the children of a given NodeSchema |
| GetClock | Read the scene’s clock. |
| GetParent | Get the parent of a given scene object if it exists |
| GetSkybox | Read the skybox drawn now, or nothing when there is none. A load in progress is not reported. |
| SetClock | Set the scene’s clock, and answer it as it now is. Each field left out keeps its value. |
| SetParent | Set the parent of a given NodeSchema |
| SetSkybox | Draw one equirectangular image as the scene’s background, and answer the skybox drawn once it has loaded. |
| Spawn | Spawn a new blank scene object into the scene |
| Type | Description |
|---|---|
| Arrow | A 3D Arrow. |
| AttributeBasedAppearance | Colours a model by one of its attributes, through a named colour ramp. |
| AttributeRange | Numeric range an attribute-driven color ramp is stretched across. |
| AttributeValue | One attribute value of a leaf, one arm per attribute type. |
| BlockModel | A block model representation. |
| BlockModelAppearance | How a block model is drawn. |
| BlockModelAttributeRamp | Block model colored by a named attribute through a color ramp. |
| BlockModelColor | Block model drawn in one flat color. |
| BlockModelGradient | Block model colored by a ramp along a world-space axis. |
| BlockModelMatCap | Block model shaded with a named matcap texture. |
| Capsule | A 3D Capsule. |
| ClearSkybox | Remove the scene’s skybox, so the background is black from the next frame. Cancels a set_skybox load still in progress, which then fails with Cancelled. |
| Clock | The scene’s clock at the moment it was read. |
| Clone | Clone a scene node with shared render assets and the same parent and local component values. The clone has no project association. Active pointer drags are not copied. |
| Cube | A 3D Cube. |
| Despawn | Despawn a scene object and all its descendants. |
| DragKind | How a drag moves the shape it is set on. |
| DragRotation | An axis through a point, which a DragKind.Rotation turns about. |
| Geometry | |
| GetChildren | Get the children of a given NodeSchema |
| GetChildrenResponse | |
| GetClock | Read the scene’s clock. |
| GetParent | Get the parent of a given scene object if it exists |
| GetParentResponse | |
| GetSkybox | Read the skybox drawn now, or nothing when there is none. A load in progress is not reported. |
| GetSkyboxResponse | |
| GradientExtentsKind | Whether a gradient spans the object or the whole scene. |
| LeafDescription | Identifies a block or point in loaded scene geometry. |
| LeafInfo | Position, size, and attribute values of one leaf. |
| LineDash | |
| LineJoin | |
| LineRound | |
| LineStyle | |
| Mesh | A triangle mesh representation. |
| MeshAppearance | How a mesh is drawn. |
| MeshAttributeRamp | Mesh colored by its own vertex attributes. |
| MeshColor | Mesh drawn in one flat color. |
| MeshGradient | Mesh colored by a ramp along a world-space axis. |
| MeshMatCap | Mesh shaded with a named matcap texture. |
| Name | A custom label for a node |
| NoFilter | Filter that draws every element. |
| Node | |
| PointCloud | A point cloud representation. |
| PointCloudAppearance | How a point cloud is drawn. |
| PointCloudAttributeRamp | Point cloud colored by a named attribute through a color ramp. |
| PointCloudColor | Point cloud drawn in one flat color. |
| PointCloudGradient | Point cloud colored by a ramp along a world-space axis. |
| PointCloudMatCap | Point cloud shaded with a named matcap texture. |
| Polyline | A polyline representation, carried inline rather than by handle. |
| PolylineAppearance | |
| SetClock | Set the scene’s clock, and answer it as it now is. Each field left out keeps its value. |
| SetParent | Set the parent of a given NodeSchema |
| SetSkybox | Draw one equirectangular image as the scene’s background, and answer the skybox drawn once it has loaded. |
| Shape | |
| ShapeAppearance | How a shape is drawn. |
| Skybox | The scene’s skybox. |
| Spawn | Spawn a new blank scene object into the scene |
| Sphere | A 3D Sphere. |
| Transform | A translation, rotation, and scale in the scene. |
| ValueRangeFilter | Filter keeping elements whose attribute falls inside [min, max]. |
| Visibility | Whether an object is drawn. |
| VisibilityKind | Whether an object is drawn, hidden, or follows its parent. |
| VolumetricFilter | Which elements of a model are drawn. |
ClearSkybox
RPC
ClearSkybox(request: scene.ClearSkybox) -> google.protobuf.EmptyRemove the scene’s skybox, so the background is black from the next frame. Cancels a
set_skybox load still in progress, which then fails with Cancelled.
Service method: spatialengine.v1.scene.Scene.ClearSkybox.
Returns google.protobuf.Empty.
Clone
RPC
Clone(request: scene.Clone) -> scene.NodeClone a scene node with shared render assets and the same parent and local component values. The clone has no project association. Active pointer drags are not copied.
Service method: spatialengine.v1.scene.Scene.Clone.
Returns scene.Node.
node : scene.Node
Node to clone.
deep optional : bool
Include descendant nodes. Defaults to true.
Despawn
RPC
Despawn(request: scene.Despawn) -> google.protobuf.EmptyDespawn a scene object and all its descendants.
Service method: spatialengine.v1.scene.Scene.Despawn.
Returns google.protobuf.Empty.
node : scene.Node
GetChildren
RPC
GetChildren(request: scene.GetChildren) -> scene.GetChildrenResponseGet the children of a given NodeSchema
Service method: spatialengine.v1.scene.Scene.GetChildren.
Returns scene.GetChildrenResponse.
node : scene.Node
GetClock
RPC
GetClock(request: scene.GetClock) -> scene.ClockRead the scene’s clock.
Service method: spatialengine.v1.scene.Scene.GetClock.
Returns scene.Clock.
GetParent
RPC
GetParent(request: scene.GetParent) -> scene.GetParentResponseGet the parent of a given scene object if it exists
Service method: spatialengine.v1.scene.Scene.GetParent.
Returns scene.GetParentResponse.
node : scene.Node
GetSkybox
RPC
GetSkybox(request: scene.GetSkybox) -> scene.GetSkyboxResponseRead the skybox drawn now, or nothing when there is none. A load in progress is not reported.
Service method: spatialengine.v1.scene.Scene.GetSkybox.
Returns scene.GetSkyboxResponse.
SetClock
RPC
SetClock(request: scene.SetClock) -> scene.ClockSet the scene’s clock, and answer it as it now is. Each field left out keeps its value.
The scene has one clock. It starts at the moment the engine starts, held still. Layers with a
time axis show the date the clock reads, and the clock moves on by rate seconds for every
real second. It stops at the years 0 and 9999. Nothing in the scene moves with the clock; the
caller places objects for the moment it reads.
This is scene time, the moment the scene shows. It is separate from the project version being viewed, and setting one never moves the other.
Fails with InvalidArgument without changing anything when time_utc is not an RFC 3339 date
and time or rate is not finite.
Service method: spatialengine.v1.scene.Scene.SetClock.
Returns scene.Clock.
time_utc optional : string
An RFC 3339 date and time, such as 2024-06-20T20:51:00Z.
rate optional : double
Seconds of clock time that pass in each real second. 0 holds the clock still, and a negative rate runs it backward.
SetParent
RPC
SetParent(request: scene.SetParent) -> google.protobuf.EmptySet the parent of a given NodeSchema
Service method: spatialengine.v1.scene.Scene.SetParent.
Returns google.protobuf.Empty.
node : scene.Node
parent optional : scene.Node
SetSkybox
RPC
SetSkybox(request: scene.SetSkybox) -> scene.SkyboxDraw one equirectangular image as the scene’s background, and answer the skybox drawn once it has loaded.
The image is twice as wide as it is tall. The pixel at column u and row v, both from 0 to 1
from the top left corner, shows the direction (cos Dec cos RA, cos Dec sin RA, sin Dec) in the
image frame, where RA = (0.5 - u) * 360 degrees and Dec = (0.5 - v) * 180 degrees. The image
frame is z-up, so a star map in celestial coordinates has right ascension 0h along +x and the
north celestial pole along +z. orientation turns the image frame into scene axes.
A pixel’s linear value is drawn at that value times luminance, in cd/m^2, and each camera’s
exposure applies to it. PNG, JPEG and WebP pixels are sRGB; Radiance HDR and OpenEXR pixels are
linear. The image becomes a cubemap with faces a quarter of its width.
The source can instead be a KTX2 cubemap with its mips, in any texture format the GPU samples, and its faces show the same directions as the cubemap an image becomes. The engine uploads it as it is, so a large sky loads without the work of decoding and converting an image.
The current background stays drawn until the new image is ready. Given the source drawn now,
only the luminance and orientation change and nothing is fetched. A later set_skybox or
clear_skybox cancels a load still in progress, which then fails with Cancelled.
Fails with InvalidArgument when source is neither an absolute URL nor, outside a browser, an
absolute file path, when luminance is negative or not finite, or when orientation is not
finite or has zero length; with SourceUnavailable when the image cannot be fetched or read;
and with UnsupportedFormat when it is not PNG, JPEG, WebP, Radiance HDR, OpenEXR or KTX2,
cannot be decoded, is not twice as wide as it is tall, or is a KTX2 file that is not one
cubemap or is in a texture format the GPU cannot sample.
Service method: spatialengine.v1.scene.Scene.SetSkybox.
Returns scene.Skybox.
source : string
The absolute URL of the image. An engine running outside a browser also reads an absolute
file path or a file: URL from its own disk.
luminance optional : double
cd/m^2 drawn for a linear pixel value of 1. Absent, 1.
orientation optional : math.Quat
The turn from the image frame to scene axes. Absent, the identity. Normalized before use.
Spawn
RPC
Spawn(request: scene.Spawn) -> scene.NodeSpawn a new blank scene object into the scene
Service method: spatialengine.v1.scene.Scene.Spawn.
Returns scene.Node.
Arrow
Message
A 3D Arrow.
length : double
Length of the arrow
AttributeBasedAppearance
Message
Colours a model by one of its attributes, through a named colour ramp.
attribute : string
Name of the attribute driving the color.
range optional : scene.AttributeRange
Range the ramp is stretched across. When absent, the attribute’s own range is used.
ramp optional : string
Name of the color ramp. When absent, the viewer’s default is used.
AttributeRange
Message
Numeric range an attribute-driven color ramp is stretched across.
min : float
Value mapped to the start of the ramp.
max : float
Value mapped to the end of the ramp.
AttributeValue
Message
One attribute value of a leaf, one arm per attribute type.
Choose one of: bool, int, real, text, color.
bool optional : bool
A true/false value.
int optional : int64
A whole-number value.
real optional : double
A numeric value.
text optional : string
A text value.
color optional : color.ColorRgb
A red/green/blue color.
BlockModel
Message
A block model representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : scene.BlockModelAppearance
How the block model is drawn.
BlockModelAppearance
Message
How a block model is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : scene.BlockModelMatCap
Shaded with a named matcap texture.
color optional : scene.BlockModelColor
Drawn in one flat color.
attribute_ramp optional : scene.BlockModelAttributeRamp
Colored by a named attribute through a color ramp.
gradient optional : scene.BlockModelGradient
Colored by a ramp along a world-space axis.
BlockModelAttributeRamp
Message
Block model colored by a named attribute through a color ramp.
appearance optional : scene.AttributeBasedAppearance
Which attribute drives the color and over what range.
filter optional : scene.VolumetricFilter
Which blocks are drawn.
outline : bool
Whether block edges are outlined.
opacity optional : float
Alpha applied to the whole model, 1.0 being fully opaque. When absent, it reads as fully
opaque.
BlockModelColor
Message
Block model drawn in one flat color.
rgb : color.ColorRgb
The flat color. Transparency is opacity, not an alpha channel here.
filter optional : scene.VolumetricFilter
Which blocks are drawn.
outline : bool
Whether block edges are outlined.
opacity optional : float
Alpha applied to the whole model, 1.0 being fully opaque. When absent, it reads as fully
opaque.
BlockModelGradient
Message
Block model colored by a ramp along a world-space axis.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : scene.GradientExtentsKind
Which bounds the ramp is stretched across.
filter optional : scene.VolumetricFilter
Which blocks are drawn.
outline : bool
Whether block edges are outlined.
opacity optional : float
Alpha applied to the whole model, 1.0 being fully opaque. When absent, it reads as fully
opaque.
BlockModelMatCap
Message
Block model shaded with a named matcap texture.
name : string
Name of the matcap texture.
filter optional : scene.VolumetricFilter
Which blocks are drawn.
outline : bool
Whether block edges are outlined.
opacity optional : float
Alpha applied to the whole model, 1.0 being fully opaque. When absent, it reads as fully
opaque.
Capsule
Message
A 3D Capsule.
radius : double
The radius of the Semi-Sphere.
length : double
The length of the capsule, minus the caps.
ClearSkybox
Message
Remove the scene’s skybox, so the background is black from the next frame. Cancels a
set_skybox load still in progress, which then fails with Cancelled.
Clock
Message
The scene’s clock at the moment it was read.
time_utc : string
RFC 3339 in UTC, with milliseconds where there are any.
unix_seconds : double
The same moment as seconds since 1970-01-01T00:00:00Z, without leap seconds.
rate : double
Seconds of clock time that pass in each real second.
Clone
Message
Clone a scene node with shared render assets and the same parent and local component values. The clone has no project association. Active pointer drags are not copied.
node : scene.Node
Node to clone.
deep optional : bool
Include descendant nodes. Defaults to true.
Cube
Message
A 3D Cube.
half_extents : double
The half-extents of the Cube.
Despawn
Message
Despawn a scene object and all its descendants.
node : scene.Node
DragKind
Message
How a drag moves the shape it is set on.
Choose one of: translation_axis, translation_plane, rotation.
translation_axis optional : math.Vec3
Slide along an axis.
translation_plane optional : math.Vec3
Slide in the plane this vector is normal to.
rotation optional : scene.DragRotation
Turn about an axis through a point.
DragRotation
Message
An axis through a point, which a DragKind.Rotation turns about.
Geometry
Message
Choose one of: sphere, cube, arrow, capsule.
sphere optional : scene.Sphere
A 3D Sphere.
cube optional : scene.Cube
A 3D Cube.
arrow optional : scene.Arrow
A 3D Arrow.
capsule optional : scene.Capsule
A 3D Capsule.
GetChildren
Message
Get the children of a given NodeSchema
node : scene.Node
GetChildrenResponse
Message
value optional : list[scene.Node]
GetClock
Message
Read the scene’s clock.
GetParent
Message
Get the parent of a given scene object if it exists
node : scene.Node
GetParentResponse
Message
value optional : scene.Node
GetSkybox
Message
Read the skybox drawn now, or nothing when there is none. A load in progress is not reported.
GetSkyboxResponse
Message
value optional : scene.Skybox
GradientExtentsKind
Enum
Whether a gradient spans the object or the whole scene.
GRADIENT_EXTENTS_KIND_LOCAL = 0
Stretch the ramp across the node’s own extents.
GRADIENT_EXTENTS_KIND_GLOBAL = 1
Stretch the ramp across the whole scene’s extents.
LeafDescription
Message
Identifies a block or point in loaded scene geometry.
detail_level : uint32
Level of detail the leaf was hit at. 0 is full detail (a single
leaf); higher values cover progressively larger groups of leaves while
the model loads in.
leaf_index : uint32
Index of the leaf within its level of detail.
region : uint32
The region of the model containing the leaf.
data_id : uint32
The loaded model data containing the leaf.
LeafInfo
Message
Position, size, and attribute values of one leaf.
Unloaded values are listed in missing_attributes and can be queried again after loading.
bounds optional : math.Aabb
The leaf’s box in the model’s local coordinates, absent until its geometry has loaded.
attributes optional : list[scene.LeafInfo.AttributesEntry]
Attribute values by name.
missing_attributes optional : list[string]
Attributes whose values haven’t loaded yet.
LineDash
Message
gap_scale : float
Gap length in multiples of the line width.
line_scale : float
Dash length in multiples of the line width.
LineJoin
Message
Choose one of: none, miter, bevel, round.
none optional : google.protobuf.Empty
miter optional : google.protobuf.Empty
bevel optional : google.protobuf.Empty
round optional : scene.LineRound
LineRound
Message
resolution : uint32
LineStyle
Message
Choose one of: solid, dotted, dashed.
solid optional : google.protobuf.Empty
dotted optional : google.protobuf.Empty
dashed optional : scene.LineDash
Mesh
Message
A triangle mesh representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : scene.MeshAppearance
How the mesh is drawn.
MeshAppearance
Message
How a mesh is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : scene.MeshMatCap
Shaded with a named matcap texture.
color optional : scene.MeshColor
Drawn in one flat color.
attribute_ramp optional : scene.MeshAttributeRamp
Colored by the mesh’s own vertex attributes.
gradient optional : scene.MeshGradient
Colored by a ramp along a world-space axis.
MeshAttributeRamp
Message
Mesh colored by its own vertex attributes.
MeshColor
Message
Mesh drawn in one flat color.
rgba : color.ColorRgba
The flat color.
MeshGradient
Message
Mesh colored by a ramp along a world-space axis.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : scene.GradientExtentsKind
Which bounds the ramp is stretched across.
MeshMatCap
Message
Mesh shaded with a named matcap texture.
name : string
Name of the matcap texture.
Name
Message
A custom label for a node
name : string
Name of the node
NoFilter
Message
Filter that draws every element.
Node
Message
id : uint64
PointCloud
Message
A point cloud representation.
data : RemoteHandle
Handle of the stored model, as a hyphenated UUID.
appearance optional : scene.PointCloudAppearance
How the point cloud is drawn.
PointCloudAppearance
Message
How a point cloud is drawn.
Choose one of: mat_cap, color, attribute_ramp, gradient.
mat_cap optional : scene.PointCloudMatCap
Shaded with a named matcap texture.
color optional : scene.PointCloudColor
Drawn in one flat color.
attribute_ramp optional : scene.PointCloudAttributeRamp
Colored by a named attribute through a color ramp.
gradient optional : scene.PointCloudGradient
Colored by a ramp along a world-space axis.
PointCloudAttributeRamp
Message
Point cloud colored by a named attribute through a color ramp.
point_size : float
Diameter of a drawn point in world units.
appearance optional : scene.AttributeBasedAppearance
Which attribute drives the color and over what range.
filter optional : scene.VolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
PointCloudColor
Message
Point cloud drawn in one flat color.
point_size : float
Diameter of a drawn point in world units.
rgb : color.ColorRgb
The flat color. Transparency is opacity, not an alpha channel here.
filter optional : scene.VolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
PointCloudGradient
Message
Point cloud colored by a ramp along a world-space axis.
point_size : float
Diameter of a drawn point in world units.
axis : math.Vec3
Direction the ramp runs along.
ramp : string
Name of the color ramp.
extents : scene.GradientExtentsKind
Which bounds the ramp is stretched across.
filter optional : scene.VolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
PointCloudMatCap
Message
Point cloud shaded with a named matcap texture.
point_size : float
Diameter of a drawn point in world units.
name : string
Name of the matcap texture.
filter optional : scene.VolumetricFilter
Which points are drawn.
opacity optional : float
Alpha applied to the whole cloud, 1.0 being fully opaque. When absent, it reads as fully
opaque.
Polyline
Message
A polyline representation, carried inline rather than by handle.
vertices optional : list[math.Vec3]
Polyline vertices in order. A closed polyline repeats its first vertex last.
appearance optional : scene.PolylineAppearance
PolylineAppearance
Message
color optional : color.ColorRgba
line_width optional : float
Stroke width in pixels when perspective is disabled. It must be positive; the default is 4.
line_style optional : scene.LineStyle
line_join optional : scene.LineJoin
line_perspective optional : bool
Whether stroke width decreases with distance. The default is false.
depth_bias optional : float
Depth offset between -1 and 1. Negative values move lines toward the camera.
fill_color optional : color.ColorRgba
Fill color for a closed planar polyline. Absent means no fill.
SetClock
Message
Set the scene’s clock, and answer it as it now is. Each field left out keeps its value.
The scene has one clock. It starts at the moment the engine starts, held still. Layers with a
time axis show the date the clock reads, and the clock moves on by rate seconds for every
real second. It stops at the years 0 and 9999. Nothing in the scene moves with the clock; the
caller places objects for the moment it reads.
This is scene time, the moment the scene shows. It is separate from the project version being viewed, and setting one never moves the other.
Fails with InvalidArgument without changing anything when time_utc is not an RFC 3339 date
and time or rate is not finite.
time_utc optional : string
An RFC 3339 date and time, such as 2024-06-20T20:51:00Z.
rate optional : double
Seconds of clock time that pass in each real second. 0 holds the clock still, and a negative rate runs it backward.
SetParent
Message
Set the parent of a given NodeSchema
node : scene.Node
parent optional : scene.Node
SetSkybox
Message
Draw one equirectangular image as the scene’s background, and answer the skybox drawn once it has loaded.
The image is twice as wide as it is tall. The pixel at column u and row v, both from 0 to 1
from the top left corner, shows the direction (cos Dec cos RA, cos Dec sin RA, sin Dec) in the
image frame, where RA = (0.5 - u) * 360 degrees and Dec = (0.5 - v) * 180 degrees. The image
frame is z-up, so a star map in celestial coordinates has right ascension 0h along +x and the
north celestial pole along +z. orientation turns the image frame into scene axes.
A pixel’s linear value is drawn at that value times luminance, in cd/m^2, and each camera’s
exposure applies to it. PNG, JPEG and WebP pixels are sRGB; Radiance HDR and OpenEXR pixels are
linear. The image becomes a cubemap with faces a quarter of its width.
The source can instead be a KTX2 cubemap with its mips, in any texture format the GPU samples, and its faces show the same directions as the cubemap an image becomes. The engine uploads it as it is, so a large sky loads without the work of decoding and converting an image.
The current background stays drawn until the new image is ready. Given the source drawn now,
only the luminance and orientation change and nothing is fetched. A later set_skybox or
clear_skybox cancels a load still in progress, which then fails with Cancelled.
Fails with InvalidArgument when source is neither an absolute URL nor, outside a browser, an
absolute file path, when luminance is negative or not finite, or when orientation is not
finite or has zero length; with SourceUnavailable when the image cannot be fetched or read;
and with UnsupportedFormat when it is not PNG, JPEG, WebP, Radiance HDR, OpenEXR or KTX2,
cannot be decoded, is not twice as wide as it is tall, or is a KTX2 file that is not one
cubemap or is in a texture format the GPU cannot sample.
source : string
The absolute URL of the image. An engine running outside a browser also reads an absolute
file path or a file: URL from its own disk.
luminance optional : double
cd/m^2 drawn for a linear pixel value of 1. Absent, 1.
orientation optional : math.Quat
The turn from the image frame to scene axes. Absent, the identity. Normalized before use.
Shape
Message
geometry : scene.Geometry
The shape geometry
appearance : scene.ShapeAppearance
The appearance of the shape
ShapeAppearance
Message
How a shape is drawn.
color optional : color.ColorRgba
The color of the shape.
wireframe : bool
Whether the engine draws the shape as a solid mesh or as a wireframe.
line_width optional : float
Wireframe width in pixels when perspective is disabled. It must be positive; the default is 2.
line_style optional : scene.LineStyle
line_join optional : scene.LineJoin
line_perspective optional : bool
Whether wireframe width decreases with distance. The default is false.
depth_bias optional : float
Depth offset between -1 and 1. Negative values move lines toward the camera.
Skybox
Message
The scene’s skybox.
source : string
The image URL.
luminance : double
cd/m^2 for a linear pixel value of 1.
orientation : math.Quat
The turn from the image frame to scene axes.
Spawn
Message
Spawn a new blank scene object into the scene
Sphere
Message
A 3D Sphere.
radius : double
The radius of the Sphere.
Transform
Message
A translation, rotation, and scale in the scene.
translation : math.Vec3
Where the shape sits.
rotation : math.Quat
How the shape is turned.
scale : math.Vec3
How the shape is stretched along each of its own axes.
ValueRangeFilter
Message
Filter keeping elements whose attribute falls inside [min, max].
attribute : string
Name of the attribute being tested.
min : float
Inclusive lower bound.
max : float
Inclusive upper bound.
Visibility
Message
Whether an object is drawn.
kind : scene.VisibilityKind
The VisibilityKind as an i32 kind.
VisibilityKind
Enum
Whether an object is drawn, hidden, or follows its parent.
VISIBILITY_KIND_INHERITED = 0
Inherit visibility from the parent node.
VISIBILITY_KIND_VISIBLE = 1
Force the node visible.
VISIBILITY_KIND_HIDDEN = 2
Force the node hidden.
VolumetricFilter
Message
Which elements of a model are drawn.
Choose one of: none, value_range.
none optional : scene.NoFilter
Every element is drawn.
value_range optional : scene.ValueRangeFilter
Only elements whose attribute falls inside a numeric range are drawn.