RenderableGlobe
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
A list of layers that should be added to the globe. |
|
No |
|
|
Specifies information about planetary labels that can be rendered on the object’s surface. |
|
Yes |
|
|
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. |
|
Value of type ‘String’ |
Yes |
|
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. |
|
Value of type ‘Boolean’ |
Yes |
|
The radii for this planet. If only one value is given, all three radii are set to that value. |
|
Value of type ‘Vector3 |
Yes |
|
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. |
|
Value of type ‘Boolean’ |
Yes |
|
Details about the rings of the globe, if it has any. |
|
Yes |
|
|
Information about any object that might cause shadows to appear on the globe. |
|
Yes |
|
|
|
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent |
|
In range: ( 0,1 ) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
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 |
---|---|---|---|---|
|
|
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 |
---|---|---|---|---|
|
A list of potential shadow casters. |
|
No |
|
|
A list of objects (light sources) that may cause shadows from the provided list of shadow casting objects. |
|
No |
Table parameters for Casters
A list of potential shadow casters.
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Yes |
Table parameters for *
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘String’ |
No |
|
|
|
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 |
---|---|---|---|---|
|
|
Yes |
Table parameters for *
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘String’ |
No |
|
|
|
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)