RenderableConstellationLines

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

File

The path to a SPECK file that contains the data for the constellation lines.

File

Value of type ‘File’

No

Colors

A list of colors to use for the constellations. A data file may include several groups of constellations, where each group can have a distinct color. The index for the color parameter for each constellation in the data file corresponds to the order of the colors in this list.

Table

Table parameters

Yes

DrawElements

Enables/Disables the drawing of the constellations.

Boolean

Value of type ‘Boolean’

Yes

Labels

The labels for the constellations.

Table

LabelsComponent

Yes

LineWidth

The line width of the constellation.

Double

Value of type ‘Double’

Yes

NamesFile

Specifies the file that contains the mapping between constellation abbreviations and full names of the constellations. If this value is empty, the abbreviations are used as the full names.

File

Value of type ‘File’

Yes

Selection

The constellations that are selected are displayed on the celestial sphere.

Table

Table parameters

Yes

Unit

The distance unit used for the constellation lines data.

String

In list { m, Km, pc, Kpc, Mpc, Gpc, Gly }

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 Colors

A list of colors to use for the constellations. A data file may include several groups of constellations, where each group can have a distinct color. The index for the color parameter for each constellation in the data file corresponds to the order of the colors in this list.

  • Optional: Yes

Name

Documentation

Type

Description

Optional

*

Vector3<double>

Value of type ‘Vector3

Yes

Table parameters for Selection

The constellations that are selected are displayed on the celestial sphere.

  • Optional: Yes

Name

Documentation

Type

Description

Optional

*

String

Value of type ‘String’

Yes

Asset Examples

 1local speck = asset.resource({
 2  Name = "Big Dipper Constellation Files",
 3  Type = "HttpSynchronization",
 4  Identifier = "digitaluniverse_constellations_bigdipper",
 5  Version = 1
 6})
 7
 8
 9local BigDipper = {
10  Identifier = "BigDipperConstellation",
11  Renderable = {
12    Type = "RenderableConstellationLines",
13    Enabled = false,
14    Labels = {
15      File = speck .. "bigdipper.label",
16      Opacity = 0.3,
17      Color = { 0.8, 0.8, 0.8 },
18      Size = 14.5,
19      MinMaxSize = { 8, 170 },
20      Unit = "pc"
21    },
22    Opacity = 0.3,
23    File = speck .. "bigdipper.speck",
24    NamesFile = speck .. "bigdipper.dat",
25    Colors = { { 0.6, 0.4, 0.4 }, { 0.8, 0.0, 0.0 }, { 0.0, 0.3, 0.8 } },
26    Unit = "pc",
27    DimInAtmosphere = true
28  },
29  Tag = { "daytime_hidden" },
30  GUI = {
31    Name = "Big Dipper",
32    Path = "/Milky Way/Constellations",
33    Description = [[This item only draws the big dipper, and not the rest of the
34      lines of the Ursa Major constellation.]]
35  }
36}
37
38
39asset.onInitialize(function()
40  openspace.addSceneGraphNode(BigDipper)
41end)
42
43asset.onDeinitialize(function()
44  openspace.removeSceneGraphNode(BigDipper)
45end)
46
47asset.export(BigDipper)
48
49
50
51asset.meta = {
52  Name = "Big Dipper",
53  Description = "Constellation lines for the Big Dipper",
54  Author = "OpenSpace Team",
55  URL = "https://www.openspaceproject.com",
56  License = "MIT"
57}