RenderableConstellationBounds
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The file pointed to with this value contains the vertex locations of the constellations |
|
Value of type ‘File’ |
No |
|
Specifies the color of the constellation lines. The lines are always drawn at full opacity |
|
Value of type ‘Color3’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Enables/Disables if the object should be dimmed when the camera is in the sunny part of an atmosphere |
|
Value of type ‘Boolean’ |
Yes |
|
This setting 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 |
|
This value specifies if the renderable should be rendered in the Background,Opaque, Pre/PostDeferredTransparency, or Overlay 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 |
|
This tells the type of the renderable |
|
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 Bounds",
39 Path = "/Milky Way/Constellations",
40 Description = [[A Spherical mesh dividing the sky into regions that fit the
41 constellations]]
42 }
43}
44
45
46asset.onInitialize(function()
47 openspace.addSceneGraphNode(Object)
48end)
49
50asset.onDeinitialize(function()
51 openspace.removeSceneGraphNode(Object)
52end)
53
54asset.export(Object)
55
56
57
58asset.meta = {
59 Name = "Constellation Bounds",
60 Version = "1.2",
61 Description = [[DU asset providing a Spherical mesh dividing the sky into regions that
62 fit the constellations]],
63 Author = "Brian Abbott (AMNH)",
64 URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
65 License = "AMNH Digital Universe"
66}