RenderableConstellationLines
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The path to a SPECK file that contains the data for the constellation lines. |
|
Value of type ‘File’ |
No |
|
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. |
|
Yes |
|
|
Enables/Disables the drawing of the constellations. |
|
Value of type ‘Boolean’ |
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 |
|
|
The distance unit used for the constellation lines data. |
|
In list { m, Km, pc, Kpc, Mpc, Gpc, Gly } |
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 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 |
---|---|---|---|---|
|
|
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 |
---|---|---|---|---|
|
|
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}