RenderableConstellationBounds
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
A file that contains the vertex locations of the constellations bounds. |
|
Value of type ‘File’ |
No |
|
The color of the lines. |
|
Value of type ‘Color3’ |
Yes |
|
The labels for the constellations. |
|
Yes |
|
|
The line width of the constellation. |
|
Value of type ‘Double’ |
Yes |
|
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. |
|
Value of type ‘File’ |
Yes |
|
The constellations that are selected are displayed on the celestial sphere. |
|
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 Selection
The constellations that are selected are displayed on the celestial sphere.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
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}