From df06edbba7e7f21d82971bf7e454724ea3ee469b Mon Sep 17 00:00:00 2001 From: Micah Date: Mon, 28 Sep 2020 09:55:56 -0400 Subject: [PATCH] add milkyway arm label asset --- .../digitaluniverse/milkyway_arm_labels.asset | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 data/assets/scene/digitaluniverse/milkyway_arm_labels.asset diff --git a/data/assets/scene/digitaluniverse/milkyway_arm_labels.asset b/data/assets/scene/digitaluniverse/milkyway_arm_labels.asset new file mode 100644 index 0000000000..b330400462 --- /dev/null +++ b/data/assets/scene/digitaluniverse/milkyway_arm_labels.asset @@ -0,0 +1,53 @@ +local assetHelper = asset.require('util/asset_helper') + +local planeTextures = asset.syncedResource({ + Name = "Milky Way Plane Textures", + Type = "HttpSynchronization", + Identifier = "digitaluniverse_milkyway_textures", + Version = 2 +}) + +local planeSpeck = asset.syncedResource({ + Name = "Milky Way Plane Speck", + Type = "HttpSynchronization", + Identifier = "digitaluniverse_milkyway_speck", + Version = 1 +}) + +local plane = { + Identifier = "MilkyWayGalaxyArmLabelsImage", + Parent = "Root", + Renderable = { + Type = "RenderablePlanesCloud", + Enabled = false, + Color = { 1.0, 1.0, 1.0 }, + Opacity = 0.99, + ScaleFactor = 2.8, + File = planeSpeck .. "/galaxyArmLabels.speck", + TexturePath = planeTextures, + Luminosity = "size", + ScaleLuminosity = 1.0, + FadeInDistances = { 3000.0, 50000.0 }, + PlaneMinSize = 5.0, + Unit = "pc" + }, + GUI = { + Name = "Milky Way Spiral Arm Labels", + Path = "/Universe/Galaxies" + } +} + +assetHelper.registerSceneGraphNodesAndExport(asset, { plane }) + + +asset.meta = { + Name = "Milky Way Spiral Arm Labels", + Version = "1.0", + Description = [[ This image contains labels for the Milky Way’s spiral arms. We label + them in this manner ("hard coding" the labels into an image rather than having + native labels) so that they can retain their size, shape, and location as they + overlay the galaxy. (Description from AMNH Digital Universe)]], + Author = "Brian Abbott (AMNH)", + URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe", + License = "AMNH Digital Universe" +}