RenderableGlobe

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

Layers

A list of layers that should be added to the globe.

Table

Table parameters

No

Labels

Specifies information about planetary labels that can be rendered on the object’s surface.

Table

GlobeLabelsComponent

Yes

LightSourceNode

The identifier of a scene graph node that should be used as the source of illumination for the globe. If not specified, the solar system’s Sun is used.

String

Value of type ‘String’

Yes

PerformShading

Specifies whether the planet should be shaded by the primary light source or not. If disabled, all parts of the planet are illuminated. Note that if the globe has a corresponding atmosphere, there is a separate setting to control the shadowing induced by the atmosphere.

Boolean

Value of type ‘Boolean’

Yes

Radii

The radii for this planet. If only one value is given, all three radii are set to that value.

Vector3<double>, or Double

Value of type ‘Vector3’, or Value of type ‘Double’

Yes

RenderAtDistance

Tells the rendering engine not to perform distance based performance culling for this globe. Turning this property on will let the globe to be seen at far away distances when normally it would be hidden.

Boolean

Value of type ‘Boolean’

Yes

Rings

Details about the rings of the globe, if it has any.

Table

RingsComponent

Yes

ShadowGroup

Information about any object that might cause shadows to appear on the globe.

Table

Table parameters

Yes

Shadows

Table

ShadowComponent

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere.

Boolean

Value of type ‘Boolean’

Yes

Enabled

Determines whether this object will be visible or not.

Boolean

Value of type ‘Boolean’

Yes

Opacity

This value determines the opacity of this renderable. A value of 0 means completely transparent

Double

In range: ( 0,1 )

Yes

RenderBinMode

A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step.

String

In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay }

Yes

Tag

A single tag or a list of tags that this renderable will respond to when setting properties

Table, or String

Value of type ‘Table’, or Value of type ‘String’

Yes

Type

The type of the renderable.

String

Value of type ‘String’

Yes

Table parameters for Layers

A list of layers that should be added to the globe.

  • Optional: No

Name

Documentation

Type

Description

Optional

*

Table

LayerManager

No

Table parameters for ShadowGroup

Information about any object that might cause shadows to appear on the globe.

  • Optional: Yes

Name

Documentation

Type

Description

Optional

Casters

A list of potential shadow casters.

Table

Table parameters

No

Sources

A list of objects (light sources) that may cause shadows from the provided list of shadow casting objects.

Table

Table parameters

No

Table parameters for Casters

A list of potential shadow casters.

  • Optional: No

Name

Documentation

Type

Description

Optional

*

Table

Table parameters

Yes

Table parameters for *

  • Optional: Yes

Name

Documentation

Type

Description

Optional

Name

String

Value of type ‘String’

No

Radius

Double

Value of type ‘Double’

No

Table parameters for Sources

A list of objects (light sources) that may cause shadows from the provided list of shadow casting objects.

  • Optional: No

Name

Documentation

Type

Description

Optional

*

Table

Table parameters

Yes

Table parameters for *

  • Optional: Yes

Name

Documentation

Type

Description

Optional

Name

String

Value of type ‘String’

No

Radius

Double

Value of type ‘Double’

No

Asset Examples

 1-- Basic
 2-- This asset creates a rotation that places a coordinate axes on the surface of a
 3-- planetary body. The rotation causes the coordinate axes to remain fixed to the surface
 4-- of the globe.
 5--
 6-- In order for this feature to work properly, the coordinate axes need to be located at
 7-- the same place as well, so this example also needs a `GlobeTranslation` applied.
 8
 9-- The example needs a `RenderableGlobe` as a parent to function
10local Globe = {
11  Identifier = "GlobeRotation_Example_Globe",
12  Renderable = {
13    Type = "RenderableGlobe"
14  },
15  GUI = {
16    Name = "GlobeRotation - Basic (Globe)",
17    Path = "/Examples"
18  }
19}
20
21local Node = {
22  Identifier = "GlobeRotation_Example",
23  Parent = "GlobeRotation_Example_Globe",
24  Transform = {
25    Translation = {
26      Type = "GlobeTranslation",
27      Globe = "GlobeRotation_Example_Globe",
28      Latitude = 20.0,
29      Longitude = -45.0
30    },
31    Rotation = {
32      Type = "GlobeRotation",
33      Globe = "GlobeRotation_Example_Globe",
34      Latitude = 20.0,
35      Longitude = -45.0
36    }
37  },
38  Renderable = {
39    Type = "RenderableCartesianAxes"
40  },
41  GUI = {
42    Name = "GlobeRotation - Basic",
43    Path = "/Examples"
44  }
45}
46
47asset.onInitialize(function()
48  openspace.addSceneGraphNode(Globe)
49  openspace.addSceneGraphNode(Node)
50end)
51
52asset.onDeinitialize(function()
53  openspace.removeSceneGraphNode(Node)
54  openspace.removeSceneGraphNode(Globe)
55end)