From 7989c7bbd98e9b5fab88586aab4ee933d7dc3d7c Mon Sep 17 00:00:00 2001 From: Jonathan Bosson Date: Thu, 16 Mar 2017 13:39:42 -0600 Subject: [PATCH] allow globebrowsing.scene to render mercury --- data/scene/lodglobes/mercury/mercury.mod | 101 +++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 data/scene/lodglobes/mercury/mercury.mod diff --git a/data/scene/lodglobes/mercury/mercury.mod b/data/scene/lodglobes/mercury/mercury.mod new file mode 100644 index 0000000000..8e211d3c5e --- /dev/null +++ b/data/scene/lodglobes/mercury/mercury.mod @@ -0,0 +1,101 @@ +return { + -- Barycenter module + { + Name = "MercuryBarycenter", + Parent = "SolarSystemBarycenter", + Transform = { + Translation = { + Type = "SpiceTranslation", + Body = "MERCURY", + Observer = "SUN", + Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" + }, + }, + }, + -- RenderableGlobe module + { + Name = "Mercury", + Parent = "MercuryBarycenter", + Transform = { + Rotation = { + Type = "SpiceRotation", + SourceFrame = "IAU_MERCURY", + DestinationFrame = "GALACTIC", + }, + Scale = { + Type = "StaticScale", + Scale = 1, + }, + }, + Renderable = { + Type = "RenderableGlobe", + Radii = {2439700, 2439700.0, 2439700.0}, + Frame = "IAU_MERCURY", + Body = "MERCURY", + + CameraMinHeight = 300, + InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Simple Texture", + FilePath = "textures/mercury.jpg", + Enabled = true, + MinimumPixelSize = 256, + }, + { + Name = "Messenger_Mosaic", + FilePath = "map_service_configs/Utah/MessengerMosaic.wms" + } + --[[ + { + Name = "On Mercury Color", + FilePath = "map_service_configs/OnMercuryColor.xml", + Enabled = true, + }, + { + Name = "On Mercury Image", + FilePath = "map_service_configs/OnMercuryImage.xml", + }, + ]] + }, + GrayScaleLayers = { + { + Name = "Messenger_MDIS", + FilePath = "map_service_configs/Utah/MessengerMDIS.wms" + } + }, + GrayScaleColorOverlays = { }, + NightLayers = { }, + WaterMasks = { }, + ColorOverlays = { }, + HeightLayers = { + --[[ + { + Name = "On Mercury Height", + FilePath = "map_service_configs/OnMercuryElevationGaskell.xml", + Enabled = true, + }, + ]] + }, + }, + }, + }, + -- Trail module + { + Name = "MercuryTrail", + Parent = "SolarSystemBarycenter", + Renderable = { + Type = "RenderableTrailOrbit", + Translation = { + Type = "SpiceTranslation", + Body = "MERCURY", + Observer = "SUN", + }, + Color = {0.6, 0.5, 0.5 }, + Period = 87.968, + Resolution = 100 + } + } +}