RenderableGaiaStars
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
[codegen::verbatim(ColorTextureInfo.description)]] |
|
Value of type ‘String’ |
No |
|
The path to the file with data for the stars to be rendered. |
|
Value of type ‘String’ |
No |
|
This value tells the renderable what format the input data file has. ‘Fits’ will read a FITS file, construct an Octree from it and render full data. ‘Speck’ will read a SPECK file, construct an Octree from it and render full data. ‘BinaryRaw’ will read a preprocessed binary file with ordered star data, construct an Octree and render it. ‘BinaryOctree’ will read a constructed Octree from binary file and render full data. ‘StreamOctree’ will read an index file with full Octree structure and then stream nodes during runtime. (This option is suited for bigger datasets). |
|
In list { Fits, Speck, BinaryRaw, BinaryOctree, StreamOctree } |
No |
|
[codegen::verbatim(PsfTextureInfo.description)]] |
|
Value of type ‘String’ |
No |
|
[codegen::verbatim(AdditionalNodesInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(BillboardSizeInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(CloseUpBoostDistInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(ColumnNamesInfo.description)]] |
|
Yes |
|
|
[codegen::verbatim(CutOffThresholdInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(FilterBpRpInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(FilterDistInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(FilterGMagInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(FilterPosXInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(FilterPosYInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(FilterPosZInfo.description)]] |
|
Value of type ‘Vector2 |
Yes |
|
[codegen::verbatim(TmPointFilterSizeInfo.description)]] |
|
Value of type ‘Integer’ |
Yes |
|
[codegen::verbatim(FirstRowInfo.description)]] |
|
Value of type ‘Integer’ |
Yes |
|
[codegen::verbatim(LastRowInfo.description)]] |
|
Value of type ‘Integer’ |
Yes |
|
[codegen::verbatim(LodPixelThresholdInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(LuminosityMultiplierInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(MagnitudeBoostInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(MaxCpuMemoryPercentInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(MaxGpuMemoryPercentInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(TmPointPxThresholdInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
This value determines which predefined columns to use in rendering. If ‘Static’ only the position of the stars is used. ‘Color’ uses position + color parameters and ‘Motion’ uses pos, color as well as velocity for the stars. |
|
In list { Static, Color, Motion } |
Yes |
|
[codegen::verbatim(ReportGlErrorsInfo.description)]] |
|
Value of type ‘Boolean’ |
Yes |
|
[codegen::verbatim(ShaderOptionInfo.description)]] |
|
In list { Point_SSBO, Point_VBO, Billboard_SSBO, Billboard_VBO, Billboard_SSBO_noFBO } |
Yes |
|
[codegen::verbatim(SharpnessInfo.description)]] |
|
Value of type ‘Double’ |
Yes |
|
[codegen::verbatim(TmPointSigmaInfo.description)]] |
|
Value of type ‘Double’ |
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, Overlay, PostDeferredTransparent, Sticker } |
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 |
Asset Examples
1local fullOS = openspace.systemCapabilities.fullOperatingSystem()
2if string.find(fullOS, "Darwin") then
3 openspace.printWarning("Gaia module (RenderableGaiaStars) not supported on mac")
4 return
5end
6
7-- Download a preprocessed binary octree of Radial Velocity subset values per star
8-- (preprocessed into 8 binary files).
9local starsFolder = asset.resource({
10 Name = "Gaia Stars RV",
11 Type = "HttpSynchronization",
12 Identifier = "gaia_stars_rv_octree",
13 Version = 1
14})
15
16local colormaps = asset.resource({
17 Name = "Stars Color Table",
18 Type = "HttpSynchronization",
19 Identifier = "stars_colormap",
20 Version = 3
21})
22
23local textures = asset.resource({
24 Name = "Stars Textures",
25 Type = "HttpSynchronization",
26 Identifier = "stars_textures",
27 Version = 1
28})
29
30
31local GaiaStars = {
32 Identifier = "GaiaStars",
33 Renderable = {
34 Type = "RenderableGaiaStars",
35 File = starsFolder,
36 FileReaderOption = "StreamOctree",
37 RenderMode = "Motion",
38 ShaderOption = "Point_SSBO",
39 Texture = textures .. "halo.png",
40 ColorMap = colormaps .. "colorbv.cmap",
41 LuminosityMultiplier = 35,
42 MagnitudeBoost = 25,
43 CutOffThreshold = 38,
44 BillboardSize = 1,
45 CloseUpBoostDist = 250,
46 Sharpness = 1.45,
47 LodPixelThreshold = 0,
48 MaxGpuMemoryPercent = 0.24,
49 MaxCpuMemoryPercent = 0.4,
50 FilterSize = 5,
51 Sigma = 0.5,
52 AdditionalNodes = { 3.0, 2.0 },
53 FilterPosX = { 0.0, 0.0 },
54 FilterPosY = { 0.0, 0.0 },
55 FilterPosZ = { 0.0, 0.0 },
56 FilterGMag = { 20.0, 20.0 },
57 FilterBpRp = { 0.0, 0.0 },
58 FilterDist = { 9.0, 9.0 }
59 },
60 GUI = {
61 Name = "Gaia Stars",
62 Path = "/Milky Way",
63 Focusable = false,
64 Description = "Radial Velocity subset of GaiaDR2"
65 }
66}
67
68
69asset.onInitialize(function()
70 openspace.addSceneGraphNode(GaiaStars)
71end)
72
73asset.onDeinitialize(function()
74 openspace.removeSceneGraphNode(GaiaStars)
75end)
76
77asset.export(GaiaStars)
78
79
80
81asset.meta = {
82 Name = "Gaia Stars",
83 Description = [[This asset contains a subset of GaiaDR2. This subset contains 7.5M stars which have
84 accurate values for a number of columns]],
85 Author = "ESA/Gaia/DPAC",
86 URL = "https://gea.esac.esa.int/archive/documentation/GDR2/index.html",
87 License = [[The Gaia data are open and free to use, provided credit is given to
88 'ESA/Gaia/DPAC'. In general, access to, and use of, ESA's Gaia Archive (hereafter
89 called 'the website') constitutes acceptance of the following general terms and
90 conditions. Neither ESA nor any other party involved in creating, producing, or
91 delivering the website shall be liable for any direct, incidental, consequential,
92 indirect, or punitive damages arising out of user access to, or use of, the website.
93 The website does not guarantee the accuracy of information provided by external
94 sources and accepts no responsibility or liability for any consequences arising from
95 the use of such data]]
96}