RenderableEclipseCone

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

LightSource

The SPICE name of the object that is used as the illuminator when computing the shadow cylinder.

String

Value of type ‘String’

No

LightSourceFrame

The SPICE name of the body-fixed reference frame for the light source.

String

Value of type ‘String’

No

Shadowee

The SPICE name of object that is receiving the shadow from the shadower.

String

Value of type ‘String’

No

Shadower

The SPICE name of the object that is casting the shadow on the shadowee.

String

Value of type ‘String’

No

ShadowerFrame

The SPICE name of the body-fixed reference frame for the shadower.

String

Value of type ‘String’

No

NumberOfPoints

The number of control points used for constructing the shadow geometry. The higher this number, the more detailed the shadow is. However, it will have a negative impact on the performance. Also note that rendering errors will occur if this value is an even number.

Integer

Value of type ‘Integer’

Yes

PenumbralShadowColor

The color for the shadow cylinder that represents the penumbral shadow.

Color4

Value of type ‘Color4’

Yes

ShadowLength

A factor that controls the length of the rendered shadow cone. The total length will be the distance from the shadower to the shadowee multiplied by this value.

Double

Value of type ‘Double’

Yes

ShowPenumbralShadow

Decides whether the penumbral portion of the shadow should be shown.

Boolean

Value of type ‘Boolean’

Yes

ShowUmbralShadow

Decides whether the umbral portion of the shadow should be shown.

Boolean

Value of type ‘Boolean’

Yes

UmbralShadowColor

The color for the shadow cylinder that represents the umbral shadow.

Color4

Value of type ‘Color4’

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

Asset Examples

 1local transforms = asset.require("scene/solarsystem/planets/earth/moon/moon")
 2local coreKernels = asset.require("spice/core")
 3
 4
 5
 6local EarthMoonShadow = {
 7  Identifier = "EarthMoonShadow",
 8  Parent = transforms.Moon.Identifier,
 9  Renderable = {
10    Type = "RenderableEclipseCone",
11    Opacity = 1.0,
12    ShadowLength = 1.0,
13    UmbralShadowColor = { 0.85, 1.0, 1.0, 0.20 },
14    PenumbralShadowColor = { 0.35, 0.35, 0.35, 0.29 },
15    LightSource = coreKernels.ID.Sun,
16    LightSourceFrame = coreKernels.Frame.Sun,
17    Shadower = coreKernels.ID.Moon,
18    ShadowerFrame = coreKernels.Frame.Moon,
19    Shadowee = coreKernels.ID.Earth
20  },
21  GUI = {
22    Name = "Earth/Moon Shadow",
23    Path = "/Solar System/Planets/Earth"
24  }
25}
26
27
28asset.onInitialize(function()
29  openspace.addSceneGraphNode(EarthMoonShadow)
30end)
31
32asset.onDeinitialize(function()
33  openspace.removeSceneGraphNode(EarthMoonShadow)
34end)
35
36asset.export(EarthMoonShadow)
37
38
39
40asset.meta = {
41  Name = "Eclipse Shadow",
42  Description = "The penumbral and umbral shadow eclipses for the Earth-Moon system",
43  Author = "OpenSpace Team",
44  URL = "http://openspaceproject.com",
45  License = "MIT license"
46}