RenderableConstellationBounds

Inherits Renderable

Members

Name

Documentation

Type

Description

Optional

File

A file that contains the vertex locations of the constellations bounds.

File

Value of type ‘File’

No

Color

The color of the lines.

Color3

Value of type ‘Color3’

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

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 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 coreKernels = asset.require("spice/core")
 2
 3
 4
 5local data = asset.resource({
 6  Name = "Constellation Files",
 7  Type = "HttpSynchronization",
 8  Identifier = "digitaluniverse_constellations_data",
 9  Version = 1
10})
11
12
13local zodiacs = {
14  "CNC", "TAU", "PSC", "ARI", "LIB", "AQR", "CAP", "SCO", "VIR", "SGR", "GEM", "LEO"
15}
16
17local Object = {
18  Identifier = "ConstellationBounds",
19  Renderable = {
20    Type = "RenderableConstellationBounds",
21    Enabled = false,
22    File = data .. "bound_20.dat",
23    NamesFile = data .. "constellations.dat",
24    -- Selection = zodiacs
25  },
26  Transform = {
27    Rotation = {
28      Type = "SpiceRotation",
29      SourceFrame = coreKernels.Frame.J2000,
30      DestinationFrame = coreKernels.Frame.Galactic
31    },
32    Scale = {
33      Type = "StaticScale",
34      Scale = 10e17
35    }
36  },
37  GUI = {
38    Name = "Constellation Boundaries",
39    Path = "/Milky Way/Constellations",
40    Description = [[As a continent is divided into countries, astronomers divide the sky
41      into 88 regions called constellations. Every object falls into one of these 88
42      regions. The boundaries of these regions are shown in this asset. Use these in
43      concert with the constellation labels. Census: 88 constellations.]]
44  }
45}
46
47
48asset.onInitialize(function()
49  openspace.addSceneGraphNode(Object)
50end)
51
52asset.onDeinitialize(function()
53  openspace.removeSceneGraphNode(Object)
54end)
55
56asset.export(Object)
57
58
59
60asset.meta = {
61  Name = "Constellation Bounds",
62  Description = Object.GUI.Description,
63  Author = "Brian Abbott (AMNH)",
64  URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
65  License = "AMNH Digital Universe"
66}