Files
OpenSpace/data/assets/scene/digitaluniverse/openclusters.asset
T
Emma Broman 54cf26755c Feature/point cloud scaling (#2994)
* Try using angular max size rather than max pixel size

* Update property name and use for shader

* Add docs and remove mention of angle from user's perspective

* People will wonder, so add some details as to what the value represents

* Fix inconsistent punctuation in property texts with multiple sentences

* Slight clarification of transformation matrix usage

* Add values to asset files

* Increase max size of example points a bit

* Remove/Update comment

* Add TODO comment about potential optimization

* Reduce max size of SDSS and quasars a bit

* Address review comment

* Decrease 6df and increase globular clusters size as per review comment

* Remove any mention of pixel size in the example asset

* Remove some more mentions of pixel size

* Write view space position to G-buffer  to prevent atm. from shining through points
2024-01-18 13:23:22 +01:00

80 lines
2.4 KiB
Lua

local textures = asset.resource({
Name = "Open Clusters Textures",
Type = "HttpSynchronization",
Identifier = "digitaluniverse_openclusters_textures",
Version = 1
})
local speck = asset.resource({
Name = "Open Clusters Speck Files",
Type = "HttpSynchronization",
Identifier = "digitaluniverse_openclusters_speck",
Version = 3
})
local Object = {
Identifier = "OpenStarClusters",
Renderable = {
Type = "RenderablePolygonCloud",
Enabled = false,
Labels = {
File = speck .. "oc.label",
Color = { 0.05, 0.4, 0.2 },
Size = 15.5,
MinMaxSize = { 4, 30 },
Unit = "pc"
},
Coloring = {
FixedColor = { 0.1, 0.8, 0.4 }
},
Opacity = 0.5,
File = speck .. "oc.speck",
Unit = "pc",
PolygonSides = 12,
SizeSettings = {
ScaleExponent = 17.6,
MaxSize = 23.0,
EnableMaxSizeControl = true
}
},
GUI = {
Name = "Open Star Clusters",
Path = "/Milky Way",
Description = [[Census: 1,867 clusters. DU Version 7.8. <br> An open star cluster is a
loose assemblage of stars numbering from hundreds to thousands that are bound by
their mutual gravitation. Astronomers know from their stellar spectra that stars in
open clusters are typically young. (With a star's spectrum, we can determine the
spectral type and the luminosity class, revealing the star's age.) Because these are
young stars, we expect to see them in the star-forming regions of our Galaxy, namely
in the spiral arms. For this reason, open clusters exist, for the most part, in the
plane of the Galaxy, where we view the arms edge-on as that band of light in the
night sky. Because of this, open clusters were originally known as Galactic
clusters, but this term fell out of favor once astronomers began to understand that
the Galaxy includes objects beyond the Milky Way's disk. <br><br> Data Reference:
Galactic spiral structure revealed by Gaia EDR3 (Poggio+, 2021)]]
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Object)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Object)
end)
asset.export(Object)
asset.meta = {
Name = "Open Star Clusters",
Version = "3.0",
Description = "Digital Universe asset for Open Star Clusters",
Author = "Brian Abbott (AMNH)",
URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
License = "AMNH Digital Universe"
}