diff --git a/.gitignore b/.gitignore index a39f0eb829..7b140e286b 100644 --- a/.gitignore +++ b/.gitignore @@ -55,8 +55,8 @@ data/scene/lodglobes/uranus/textures data/scene/lodglobes/venus/textures data/scene/mars/textures data/scene/mercury/textures -data/scene/milkyway/textures -data/scene/milkyway-eso/textures +data/scene/milkyway/digitaluniverse/textures +data/scene/milkyway/eso/textures data/scene/missions/dawn/ceres/textures data/scene/missions/dawn/dawn/obj data/scene/missions/dawn/dawn/textures @@ -98,12 +98,12 @@ data/scene/saturn/rhea/textures data/scene/saturn/saturn/textures data/scene/saturn/tethys/textures data/scene/saturn/titan/textures -data/scene/stars/colorbv.cmap -data/scene/stars/speck -data/scene/stars/textures -data/scene/stars-denver/denver_colorbv.cmap -data/scene/stars-denver/speck -data/scene/stars-denver/textures +data/scene/stars/digitaluniverse/colorbv.cmap +data/scene/stars/digitaluniverse/speck +data/scene/stars/digitaluniverse/textures +data/scene/stars/denver/denver_colorbv.cmap +data/scene/stars/denver/speck +data/scene/stars/denver/textures data/scene/sun/textures data/scene/uranus/textures data/scene/venus/textures diff --git a/data/scene/atmosphereearth.scene b/data/scene/atmosphereearth.scene index a129c1700c..bbfaf10dd1 100644 --- a/data/scene/atmosphereearth.scene +++ b/data/scene/atmosphereearth.scene @@ -42,14 +42,14 @@ return { Camera = { Focus = "Earth", Position = {1, 0, 0}, - Rotation = {0.250635, -0.028751, 0.879269, 0.404030}, + Rotation = {0.250635, -0.028751, 0.879269, 0.404030}, }, Modules = { "sun", "earth", - "stars", - --"stars-denver", - "milkyway", - -- "milkyway-eso", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", } } diff --git a/data/scene/atmosphereearth/atmosphereearth.mod b/data/scene/atmosphereearth/atmosphereearth.mod index b019c71241..fd7116b122 100644 --- a/data/scene/atmosphereearth/atmosphereearth.mod +++ b/data/scene/atmosphereearth/atmosphereearth.mod @@ -40,10 +40,10 @@ return { }, --Caster2 = { Name = "Independency Day Ship", Radius = 0 } }, + ColorTexture = "textures/earth_bluemarble.jpg", + NightTexture = "textures/earth_night.jpg", Textures = { Type = "simple", - Color = "textures/earth_bluemarble.jpg", - Night = "textures/earth_night.jpg", --Height = "textures/earth_bluemarble_height.jpg", -- Depth = "textures/earth_depth.png", Reflectance = "textures/earth_reflectance.png", @@ -110,7 +110,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "EARTH", + Target = "EARTH", Observer = "SUN" }, Color = { 0.5, 0.8, 1.0 }, diff --git a/data/scene/lodglobes/arrows.png b/data/scene/common/textures/arrows.png similarity index 100% rename from data/scene/lodglobes/arrows.png rename to data/scene/common/textures/arrows.png diff --git a/data/scene/constellationbounds/constellationbounds.mod b/data/scene/constellationbounds/constellationbounds.mod index beb1295d26..fe5e3b2122 100644 --- a/data/scene/constellationbounds/constellationbounds.mod +++ b/data/scene/constellationbounds/constellationbounds.mod @@ -1,3 +1,8 @@ +local zodiacs = { + "Cancer", "Taurus", "Pisces", "Aries", "Libra", "Aquarius", "Capricornus", "Scorpius", + "Virgo", "Sagittarius", "Gemini", "Leo" +} + return { -- Stars module { @@ -6,7 +11,8 @@ return { Renderable = { Type = "RenderableConstellationBounds", File = "${OPENSPACE_DATA}/scene/constellationbounds/data/bound_20.dat", - ConstellationFile = "${OPENSPACE_DATA}/scene/constellationbounds/data/constellations.dat" + ConstellationFile = "${OPENSPACE_DATA}/scene/constellationbounds/data/constellations.dat", + -- ConstellationSelection = zodiacs }, Transform = { Rotation = { diff --git a/data/scene/dawn.scene b/data/scene/dawn.scene index a18bf0c916..6dddbc93fd 100644 --- a/data/scene/dawn.scene +++ b/data/scene/dawn.scene @@ -51,8 +51,10 @@ return { "uranus", "neptune", "pluto", - "stars", - "milkyway", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "missions/dawn" } } diff --git a/data/scene/default.scene b/data/scene/default.scene index b887f7de54..48cb27dc77 100644 --- a/data/scene/default.scene +++ b/data/scene/default.scene @@ -1,3 +1,8 @@ +-- Add folders to this list that contain .info files describing HiRISE patches +local mars_folders = { + -- Add a folder here whose contents will be automatically added to the Mars globe +} + function preInitialization() --[[ The scripts in this function are executed after the scene is loaded but before the @@ -11,35 +16,76 @@ function preInitialization() openspace.time.setTime(openspace.time.currentWallTime()) dofile(openspace.absPath('${SCRIPTS}/bind_common_keys.lua')) + + + -- Toggle night texture, shading, atmosphere and water + openspace.bindKey("s", + helper.property.invert('Earth.RenderableGlobe.Layers.NightLayers.Earth at Night 2012.Enabled') .. + helper.property.invert('Earth.RenderableGlobe.PerformShading') .. + helper.property.invert('Earth.RenderableGlobe.Atmosphere') .. + helper.property.invert('Earth.RenderableGlobe.Layers.WaterMasks.MODIS_Water_Mask.Enabled'), + "Toggle night texture, shading, atmosphere, and water for Earth." + ) + + -- Toggle background + openspace.bindKey("b", + helper.property.invert('MilkyWay.renderable.Enabled') .. + helper.property.invert('Stars.renderable.Enabled'), + "Toggle background (Stars and Milkyway)." + ) + + openspace.bindKey("g", + helper.property.invert('MilkyWay.renderable.Enabled') .. + helper.property.invert('Stars.renderable.Enabled') .. + helper.property.invert('Earth.RenderableGlobe.Layers.NightLayers.Earth at Night 2012.Enabled') .. + helper.property.invert('Earth.RenderableGlobe.PerformShading') .. + helper.property.invert('Mars.RenderableGlobe.PerformShading') .. + helper.property.invert('Earth.RenderableGlobe.Atmosphere') .. + helper.property.invert('Earth.RenderableGlobe.Layers.WaterMasks.MODIS_Water_Mask.Enabled') .. + helper.property.invert('Moon.RenderableGlobe.Enabled') .. + helper.property.invert('Sun.renderable.Enabled'), + "Toogles background and shading mode on the Earth and Mars alongside visibility of the Moon and the Sun" + ) + + openspace.bindKey("h", + "openspace.setPropertyValue('*Trail.renderable.Enabled', false)", + "Disables visibility of the trails" + ) end function postInitialization() - --[[ - The scripts in this function are executed after all objects in the scene have been - created and initialized, but before the first render call. This is the place to set - graphical settings for the renderables. - ]]-- - openspace.printInfo("Setting default values") - openspace.setPropertyValue("SunMarker.renderable.Enabled", false) - openspace.setPropertyValue("EarthMarker.renderable.Enabled", false) - openspace.setPropertyValue("Constellation Bounds.renderable.Enabled", false) - - openspace.setPropertyValue("MilkyWay.renderable.Transparency", 0.55) - openspace.setPropertyValue("MilkyWay.renderable.Segments", 50) - openspace.addVirtualProperty( "BoolProperty", "Show Trails", - "*Trail.renderable.enabled", + "*Trail.renderable.Enabled", "Disable or enable all trails of the scene at the same time", true, nil, nil ) - openspace.navigation.resetCameraDirection() + openspace.printInfo("Setting default values") + + openspace.setPropertyValue("SunGlare.renderable.Enabled", false) + openspace.setPropertyValue("SunMarker.renderable.Enabled", false) + + openspace.setPropertyValue("Constellation Bounds.renderable.Enabled", false) + + openspace.setPropertyValue("Earth.RenderableGlobe.Atmosphere", true) + openspace.setPropertyValue("Earth.RenderableGlobe.Debug.LevelByProjectedAreaElseDistance", false) + + openspace.setPropertyValue("Ecliptic Grid.renderable.Enabled", false) + openspace.setPropertyValue("Equatorial Grid.renderable.Enabled", false) + openspace.setPropertyValue("Galactic Grid.renderable.Enabled", false) + + openspace.globebrowsing.goToGeo(58.5877, 16.1924, 20000000) openspace.printInfo("Done setting default values") + + -- Add the HiRISE patches described at the top of this file + for _, file in pairs(mars_folders) do + openspace.globebrowsing.addBlendingLayersFromDirectory(file, "Mars") + end end @@ -48,23 +94,27 @@ return { CommonFolder = "common", Camera = { Focus = "Earth", - Position = {505370268486.696167, 1089706179272.719116, -890259148524.319458}, - Rotation = {0.250635, -0.028751, 0.879269, 0.404030}, + Position = {0, 0, 0}, + Rotation = {0.758797, 0.221490, -0.605693, -0.091135}, }, Modules = { "sun", "mercury", "venus", "earth", + "moon", "mars", "jupiter", "saturn", "uranus", "neptune", - "stars", - -- "stars-denver", - "milkyway", - --"milkyway-eso", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", + -- "satellites" "constellationbounds", + "grids" } } + diff --git a/data/scene/batsrus/batsrus.mod b/data/scene/deprecated/batsrus/batsrus.mod similarity index 100% rename from data/scene/batsrus/batsrus.mod rename to data/scene/deprecated/batsrus/batsrus.mod diff --git a/data/scene/batsrus/psampler.glsl b/data/scene/deprecated/batsrus/psampler.glsl similarity index 100% rename from data/scene/batsrus/psampler.glsl rename to data/scene/deprecated/batsrus/psampler.glsl diff --git a/data/scene/batsrus/rhosampler.glsl b/data/scene/deprecated/batsrus/rhosampler.glsl similarity index 100% rename from data/scene/batsrus/rhosampler.glsl rename to data/scene/deprecated/batsrus/rhosampler.glsl diff --git a/data/scene/batsrus/transferfunctions/p.txt b/data/scene/deprecated/batsrus/transferfunctions/p.txt similarity index 100% rename from data/scene/batsrus/transferfunctions/p.txt rename to data/scene/deprecated/batsrus/transferfunctions/p.txt diff --git a/data/scene/batsrus/transferfunctions/rho.txt b/data/scene/deprecated/batsrus/transferfunctions/rho.txt similarity index 100% rename from data/scene/batsrus/transferfunctions/rho.txt rename to data/scene/deprecated/batsrus/transferfunctions/rho.txt diff --git a/data/scene/enlil/enlil.cl b/data/scene/deprecated/enlil/enlil.cl similarity index 100% rename from data/scene/enlil/enlil.cl rename to data/scene/deprecated/enlil/enlil.cl diff --git a/data/scene/enlil/enlil.mod b/data/scene/deprecated/enlil/enlil.mod similarity index 100% rename from data/scene/enlil/enlil.mod rename to data/scene/deprecated/enlil/enlil.mod diff --git a/data/scene/enlil/sampler.glsl b/data/scene/deprecated/enlil/sampler.glsl similarity index 100% rename from data/scene/enlil/sampler.glsl rename to data/scene/deprecated/enlil/sampler.glsl diff --git a/data/scene/enlil/transferfunctions/t1.txt b/data/scene/deprecated/enlil/transferfunctions/t1.txt similarity index 100% rename from data/scene/enlil/transferfunctions/t1.txt rename to data/scene/deprecated/enlil/transferfunctions/t1.txt diff --git a/data/scene/enlil/transferfunctions/t2.txt b/data/scene/deprecated/enlil/transferfunctions/t2.txt similarity index 100% rename from data/scene/enlil/transferfunctions/t2.txt rename to data/scene/deprecated/enlil/transferfunctions/t2.txt diff --git a/data/scene/enlilnh/enlilnh.mod b/data/scene/deprecated/enlilnh/enlilnh.mod similarity index 100% rename from data/scene/enlilnh/enlilnh.mod rename to data/scene/deprecated/enlilnh/enlilnh.mod diff --git a/data/scene/enlilnh/transferfunctions/fire.txt b/data/scene/deprecated/enlilnh/transferfunctions/fire.txt similarity index 100% rename from data/scene/enlilnh/transferfunctions/fire.txt rename to data/scene/deprecated/enlilnh/transferfunctions/fire.txt diff --git a/data/scene/flare/TSPTraversal_cs.glsl b/data/scene/deprecated/flare/TSPTraversal_cs.glsl similarity index 100% rename from data/scene/flare/TSPTraversal_cs.glsl rename to data/scene/deprecated/flare/TSPTraversal_cs.glsl diff --git a/data/scene/flare/TSPTraversal_fs.glsl b/data/scene/deprecated/flare/TSPTraversal_fs.glsl similarity index 100% rename from data/scene/flare/TSPTraversal_fs.glsl rename to data/scene/deprecated/flare/TSPTraversal_fs.glsl diff --git a/data/scene/flare/fire.txt b/data/scene/deprecated/flare/fire.txt similarity index 100% rename from data/scene/flare/fire.txt rename to data/scene/deprecated/flare/fire.txt diff --git a/data/scene/flare/flare.mod b/data/scene/deprecated/flare/flare.mod similarity index 100% rename from data/scene/flare/flare.mod rename to data/scene/deprecated/flare/flare.mod diff --git a/data/scene/flare/helpers_cs.hglsl b/data/scene/deprecated/flare/helpers_cs.hglsl similarity index 100% rename from data/scene/flare/helpers_cs.hglsl rename to data/scene/deprecated/flare/helpers_cs.hglsl diff --git a/data/scene/flare/passthrough_vs.glsl b/data/scene/deprecated/flare/passthrough_vs.glsl similarity index 100% rename from data/scene/flare/passthrough_vs.glsl rename to data/scene/deprecated/flare/passthrough_vs.glsl diff --git a/data/scene/flare/raycasterTSP_cs.glsl b/data/scene/deprecated/flare/raycasterTSP_cs.glsl similarity index 100% rename from data/scene/flare/raycasterTSP_cs.glsl rename to data/scene/deprecated/flare/raycasterTSP_cs.glsl diff --git a/data/scene/flare/raycasterTSP_fs.glsl b/data/scene/deprecated/flare/raycasterTSP_fs.glsl similarity index 100% rename from data/scene/flare/raycasterTSP_fs.glsl rename to data/scene/deprecated/flare/raycasterTSP_fs.glsl diff --git a/data/scene/iswa/cdf/fieldlines.json b/data/scene/deprecated/iswa/cdf/fieldlines.json similarity index 100% rename from data/scene/iswa/cdf/fieldlines.json rename to data/scene/deprecated/iswa/cdf/fieldlines.json diff --git a/data/scene/iswa/tfs/autumn.tf b/data/scene/deprecated/iswa/tfs/autumn.tf similarity index 100% rename from data/scene/iswa/tfs/autumn.tf rename to data/scene/deprecated/iswa/tfs/autumn.tf diff --git a/data/scene/iswa/tfs/blue.jpg b/data/scene/deprecated/iswa/tfs/blue.jpg similarity index 100% rename from data/scene/iswa/tfs/blue.jpg rename to data/scene/deprecated/iswa/tfs/blue.jpg diff --git a/data/scene/iswa/tfs/ccmc-cdf.tf b/data/scene/deprecated/iswa/tfs/ccmc-cdf.tf similarity index 100% rename from data/scene/iswa/tfs/ccmc-cdf.tf rename to data/scene/deprecated/iswa/tfs/ccmc-cdf.tf diff --git a/data/scene/iswa/tfs/colormap_autumn.png b/data/scene/deprecated/iswa/tfs/colormap_autumn.png similarity index 100% rename from data/scene/iswa/tfs/colormap_autumn.png rename to data/scene/deprecated/iswa/tfs/colormap_autumn.png diff --git a/data/scene/iswa/tfs/colormap_hot.jpg b/data/scene/deprecated/iswa/tfs/colormap_hot.jpg similarity index 100% rename from data/scene/iswa/tfs/colormap_hot.jpg rename to data/scene/deprecated/iswa/tfs/colormap_hot.jpg diff --git a/data/scene/iswa/tfs/colormap_hot.png b/data/scene/deprecated/iswa/tfs/colormap_hot.png similarity index 100% rename from data/scene/iswa/tfs/colormap_hot.png rename to data/scene/deprecated/iswa/tfs/colormap_hot.png diff --git a/data/scene/iswa/tfs/colormap_parula.jpg b/data/scene/deprecated/iswa/tfs/colormap_parula.jpg similarity index 100% rename from data/scene/iswa/tfs/colormap_parula.jpg rename to data/scene/deprecated/iswa/tfs/colormap_parula.jpg diff --git a/data/scene/iswa/tfs/colormap_parula.png b/data/scene/deprecated/iswa/tfs/colormap_parula.png similarity index 100% rename from data/scene/iswa/tfs/colormap_parula.png rename to data/scene/deprecated/iswa/tfs/colormap_parula.png diff --git a/data/scene/iswa/tfs/default.tf b/data/scene/deprecated/iswa/tfs/default.tf similarity index 100% rename from data/scene/iswa/tfs/default.tf rename to data/scene/deprecated/iswa/tfs/default.tf diff --git a/data/scene/iswa/tfs/green.jpg b/data/scene/deprecated/iswa/tfs/green.jpg similarity index 100% rename from data/scene/iswa/tfs/green.jpg rename to data/scene/deprecated/iswa/tfs/green.jpg diff --git a/data/scene/iswa/tfs/hot.tf b/data/scene/deprecated/iswa/tfs/hot.tf similarity index 100% rename from data/scene/iswa/tfs/hot.tf rename to data/scene/deprecated/iswa/tfs/hot.tf diff --git a/data/scene/iswa/tfs/parula.tf b/data/scene/deprecated/iswa/tfs/parula.tf similarity index 100% rename from data/scene/iswa/tfs/parula.tf rename to data/scene/deprecated/iswa/tfs/parula.tf diff --git a/data/scene/iswa/tfs/red.jpg b/data/scene/deprecated/iswa/tfs/red.jpg similarity index 100% rename from data/scene/iswa/tfs/red.jpg rename to data/scene/deprecated/iswa/tfs/red.jpg diff --git a/data/scene/iswa/tfs/rgb.tf b/data/scene/deprecated/iswa/tfs/rgb.tf similarity index 100% rename from data/scene/iswa/tfs/rgb.tf rename to data/scene/deprecated/iswa/tfs/rgb.tf diff --git a/data/scene/earth/earth.data b/data/scene/earth/earth.data deleted file mode 100644 index e168d4c8be..0000000000 --- a/data/scene/earth/earth.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "earth_textures", Destination = "textures", Version = 2 } - }, -} diff --git a/data/scene/earth/earth.mod b/data/scene/earth/earth.mod index 3e293f6f3d..da1de19a55 100644 --- a/data/scene/earth/earth.mod +++ b/data/scene/earth/earth.mod @@ -1,3 +1,4 @@ +earthEllipsoid = {6378137.0, 6378137.0, 6356752.314245} -- Earth's radii return { -- Earth barycenter module { @@ -6,7 +7,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "EARTH", + Target = "EARTH", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" } @@ -20,58 +21,19 @@ return { Rotation = { Type = "SpiceRotation", SourceFrame = "J2000", - DestinationFrame = "GALACTIC", + DestinationFrame = "GALACTIC" } - }, - }, - -- Earth module - { - Name = "Earth", - Parent = "EarthBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_EARTH", - Body = "EARTH", - Geometry = { - Type = "SimpleSphere", - Radius = 6.371E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/earth_bluemarble.jpg", - Night = "textures/earth_night.jpg", - Height = "textures/earth_bluemarble_height.jpg" - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = {"planet_solarSystem", "planet_terrestrial"}, - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_EARTH", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - GuiName = "/Solar/Planets/Earth" + } }, -- EarthTrail module - { + { Name = "EarthTrail", Parent = "SolarSystemBarycenter", Renderable = { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "EARTH", + Target = "EARTH", Observer = "SUN" }, Color = { 0.5, 0.8, 1.0 }, @@ -79,27 +41,154 @@ return { -- EndTime = "2017 JAN 01 12:00:00.000", -- SampleInterval = 3600 Period = 365.242, - Resolution = 1000, - Tag = {"planetTrail_solarSystem", "planetTrail_terrestrial"} + Resolution = 1000 }, - GuiName = "/Solar/EarthTrail", + Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" }, + GuiName = "/Solar/EarthTrail" }, - --[[ + -- RenderableGlobe module { - Name = "EarthMarker", - Parent = "Earth", - Renderable = { - Type = "RenderablePlane", - Size = 3.0E11, - Origin = "Center", - Billboard = true, - Texture = "textures/marker.png", - BlendMode = "Additive" + Name = "Earth", + Parent = "EarthBarycenter", + Transform = { + Rotation = { + Type = "SpiceRotation", + SourceFrame = "IAU_EARTH", + DestinationFrame = "GALACTIC", + } }, - Ephemeris = { - Type = "Static", - Position = {0, 0, 0, 5} + Tag = { "planet_solarSystem", "planet_terrestrial" }, + Renderable = { + Type = "RenderableGlobe", + Radii = earthEllipsoid, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "ESRI VIIRS Combo", + Type = "ByLevelTileLayer", + LevelTileProviders = { + { + MaxLevel = 3, + TileProvider = { + Name = "Temporal VIIRS SNPP", + Type = "TemporalTileLayer", + FilePath = "map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml", + } + }, + { + MaxLevel = 22, + TileProvider = { + Name = "ESRI Imagery World 2D", + FilePath = "map_service_configs/ESRI/ESRI_Imagery_World_2D.wms" + } + }, + }, + Enabled = true, + }, + { + Name = "ESRI Imagery World 2D", + FilePath = "map_service_configs/ESRI/ESRI_Imagery_World_2D.wms", + }, + { + Name = "Temporal VIIRS SNPP", + Type = "TemporalTileLayer", + FilePath = "map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml", + }, + { + Name = "BMNG", + FilePath = "map_service_configs/Utah/Bmng.wms" + }, + { + Name = "Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration", + Type = "TemporalTileLayer", + FilePath = "map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml", + }, + { + Name = "MODIS_Terra_Chlorophyll_A", + Type = "TemporalTileLayer", + FilePath = openspace.globebrowsing.createTemporalGibsGdalXml( + "MODIS_Terra_Chlorophyll_A", + "2013-07-02", + "Yesterday", + "1d", + "1km", + "png" + ) + }, + { + Name = "GHRSST_L4_G1SST_Sea_Surface_Temperature", + Type = "TemporalTileLayer", + FilePath = openspace.globebrowsing.createTemporalGibsGdalXml( + "GHRSST_L4_G1SST_Sea_Surface_Temperature", + "2010-06-21", + "Yesterday", + "1d", + "1km", + "png" + ) + }, + }, + NightLayers = { + { + Name = "Earth at Night 2012", + FilePath = "map_service_configs/GIBS/VIIRS_CityLights_2012.xml", + Enabled = true, + Settings = { + Opacity = 1.0, + Gamma = 1.5, + Multiplier = 15.0, + }, + }, + { + Name = "Temporal Earth at Night", + Type = "TemporalTileLayer", + FilePath = "map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml" + } + }, + WaterMasks = { + { + Name = "MODIS_Water_Mask", + FilePath = "map_service_configs/GIBS/MODIS_Water_Mask.xml", + Enabled = true, + }, + { + Name = "GEBCO", + FilePath = "map_service_configs/Utah/Gebco.wms", + } + }, + Overlays = { + { + Name = "Coastlines", + FilePath = "map_service_configs/GIBS/Coastlines.xml", + }, + { + Name = "Reference_Features", + FilePath = "map_service_configs/GIBS/Reference_Features.xml", + }, + { + Name = "Reference_Labels", + FilePath = "map_service_configs/GIBS/Reference_Labels.xml", + }, + { + Name = "Tile Indices", + Type = "TileIndexTileLayer", + }, + { + Name = "Size Reference", + Type = "SizeReferenceTileLayer", + Radii = earthEllipsoid, + }, + }, + HeightLayers = { + { + Name = "Terrain tileset", + FilePath = "map_service_configs/ESRI/TERRAIN.wms", + Enabled = true, + TilePixelSize = 64, + } + } + } } } - ]] } diff --git a/data/scene/lodglobes/earth/map_service_configs/ESRI/ESRI_Imagery_World_2D.wms b/data/scene/earth/map_service_configs/ESRI/ESRI_Imagery_World_2D.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/ESRI/ESRI_Imagery_World_2D.wms rename to data/scene/earth/map_service_configs/ESRI/ESRI_Imagery_World_2D.wms diff --git a/data/scene/lodglobes/earth/map_service_configs/ESRI/TERRAIN.wms b/data/scene/earth/map_service_configs/ESRI/TERRAIN.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/ESRI/TERRAIN.wms rename to data/scene/earth/map_service_configs/ESRI/TERRAIN.wms diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Coastlines.xml b/data/scene/earth/map_service_configs/GIBS/Coastlines.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Coastlines.xml rename to data/scene/earth/map_service_configs/GIBS/Coastlines.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/GIBS_Aqua_MODIS_true.xml b/data/scene/earth/map_service_configs/GIBS/GIBS_Aqua_MODIS_true.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/GIBS_Aqua_MODIS_true.xml rename to data/scene/earth/map_service_configs/GIBS/GIBS_Aqua_MODIS_true.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Terra_Brightness_Temp_Band31_Day.xml b/data/scene/earth/map_service_configs/GIBS/MODIS_Terra_Brightness_Temp_Band31_Day.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Terra_Brightness_Temp_Band31_Day.xml rename to data/scene/earth/map_service_configs/GIBS/MODIS_Terra_Brightness_Temp_Band31_Day.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Terra_CorrectedReflectance_TrueColor.xml b/data/scene/earth/map_service_configs/GIBS/MODIS_Terra_CorrectedReflectance_TrueColor.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Terra_CorrectedReflectance_TrueColor.xml rename to data/scene/earth/map_service_configs/GIBS/MODIS_Terra_CorrectedReflectance_TrueColor.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Water_Mask.xml b/data/scene/earth/map_service_configs/GIBS/MODIS_Water_Mask.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/MODIS_Water_Mask.xml rename to data/scene/earth/map_service_configs/GIBS/MODIS_Water_Mask.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Reference_Features.xml b/data/scene/earth/map_service_configs/GIBS/Reference_Features.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Reference_Features.xml rename to data/scene/earth/map_service_configs/GIBS/Reference_Features.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Reference_Labels.xml b/data/scene/earth/map_service_configs/GIBS/Reference_Labels.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Reference_Labels.xml rename to data/scene/earth/map_service_configs/GIBS/Reference_Labels.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/TERRA_CR_B143_2016-04-12.wms b/data/scene/earth/map_service_configs/GIBS/TERRA_CR_B143_2016-04-12.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/TERRA_CR_B143_2016-04-12.wms rename to data/scene/earth/map_service_configs/GIBS/TERRA_CR_B143_2016-04-12.wms diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_Aqua_Orbit_Asc.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_Aqua_Orbit_Asc.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_Aqua_Orbit_Asc.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_Aqua_Orbit_Asc.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_GHRSST_L4_MUR_Sea_Surface_Temperature.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_GHRSST_L4_MUR_Sea_Surface_Temperature.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_GHRSST_L4_MUR_Sea_Surface_Temperature.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_GHRSST_L4_MUR_Sea_Surface_Temperature.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_MODIS_Aqua_CorrectedReflectance_TrueColor.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_MODIS_Aqua_CorrectedReflectance_TrueColor.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_MODIS_Aqua_CorrectedReflectance_TrueColor.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_MODIS_Aqua_CorrectedReflectance_TrueColor.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_MODIS_Terra_CorrectedReflectance_TrueColor.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_MODIS_Terra_CorrectedReflectance_TrueColor.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_MODIS_Terra_CorrectedReflectance_TrueColor.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_MODIS_Terra_CorrectedReflectance_TrueColor.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml b/data/scene/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml rename to data/scene/earth/map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/VIIRS_CityLights_2012.xml b/data/scene/earth/map_service_configs/GIBS/VIIRS_CityLights_2012.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/VIIRS_CityLights_2012.xml rename to data/scene/earth/map_service_configs/GIBS/VIIRS_CityLights_2012.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/GIBS/VIIRS_SNPP_CorrectedReflectance_TrueColor.xml b/data/scene/earth/map_service_configs/GIBS/VIIRS_SNPP_CorrectedReflectance_TrueColor.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/GIBS/VIIRS_SNPP_CorrectedReflectance_TrueColor.xml rename to data/scene/earth/map_service_configs/GIBS/VIIRS_SNPP_CorrectedReflectance_TrueColor.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/Utah/Bmng.wms b/data/scene/earth/map_service_configs/Utah/Bmng.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/Utah/Bmng.wms rename to data/scene/earth/map_service_configs/Utah/Bmng.wms diff --git a/data/scene/lodglobes/earth/map_service_configs/Utah/Gebco.wms b/data/scene/earth/map_service_configs/Utah/Gebco.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/Utah/Gebco.wms rename to data/scene/earth/map_service_configs/Utah/Gebco.wms diff --git a/data/scene/lodglobes/earth/map_service_configs/other/ASTER_GDEM_Greyscale_Shaded_Relief.xml b/data/scene/earth/map_service_configs/other/ASTER_GDEM_Greyscale_Shaded_Relief.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/ASTER_GDEM_Greyscale_Shaded_Relief.xml rename to data/scene/earth/map_service_configs/other/ASTER_GDEM_Greyscale_Shaded_Relief.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/Landsat_WELD_CorrectedReflectance_TrueColor_Global_Monthly_v3_STD_temporal.xml b/data/scene/earth/map_service_configs/other/Landsat_WELD_CorrectedReflectance_TrueColor_Global_Monthly_v3_STD_temporal.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/Landsat_WELD_CorrectedReflectance_TrueColor_Global_Monthly_v3_STD_temporal.xml rename to data/scene/earth/map_service_configs/other/Landsat_WELD_CorrectedReflectance_TrueColor_Global_Monthly_v3_STD_temporal.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/MLS_O3_46hPa_Day.xml b/data/scene/earth/map_service_configs/other/MLS_O3_46hPa_Day.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/MLS_O3_46hPa_Day.xml rename to data/scene/earth/map_service_configs/other/MLS_O3_46hPa_Day.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/OpenStreetMap.xml b/data/scene/earth/map_service_configs/other/OpenStreetMap.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/OpenStreetMap.xml rename to data/scene/earth/map_service_configs/other/OpenStreetMap.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/frmt_wms_virtualearth.xml b/data/scene/earth/map_service_configs/other/frmt_wms_virtualearth.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/frmt_wms_virtualearth.xml rename to data/scene/earth/map_service_configs/other/frmt_wms_virtualearth.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/noaa_rt.xml b/data/scene/earth/map_service_configs/other/noaa_rt.xml similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/noaa_rt.xml rename to data/scene/earth/map_service_configs/other/noaa_rt.xml diff --git a/data/scene/lodglobes/earth/map_service_configs/other/test.wms b/data/scene/earth/map_service_configs/other/test.wms similarity index 100% rename from data/scene/lodglobes/earth/map_service_configs/other/test.wms rename to data/scene/earth/map_service_configs/other/test.wms diff --git a/data/scene/fieldlines.scene b/data/scene/fieldlines.scene index b4936dc5d4..2a9da28b7c 100644 --- a/data/scene/fieldlines.scene +++ b/data/scene/fieldlines.scene @@ -49,11 +49,11 @@ return { "saturn", "uranus", "neptune", - "stars", "fieldlines", - -- "stars-denver", - "milkyway", - -- "milkyway-eso", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "constellationbounds", } } diff --git a/data/scene/globebrowsing.scene b/data/scene/globebrowsing.scene deleted file mode 100644 index 96ff9c3df9..0000000000 --- a/data/scene/globebrowsing.scene +++ /dev/null @@ -1,93 +0,0 @@ -function preInitialization() - --[[ - The scripts in this function are executed after the scene is loaded but before the - scene elements have been initialized, thus they should be used to set the time at - which the scene should start and other settings that might determine initialization - critical objects. - ]]-- - - openspace.spice.loadKernel("${SPICE}/naif0012.tls") - openspace.spice.loadKernel("${SPICE}/pck00010.tpc") - - -- For unit test - --openspace.time.setTime("2016 SEP 8 23:00:00.500") - --openspace.time.togglePause() - - openspace.time.setTime(openspace.time.currentWallTime()) - dofile(openspace.absPath('${SCRIPTS}/bind_common_keys.lua')) - - - -- Toggle night texture, shading, atmosphere and water - openspace.bindKey("s", - helper.property.invert('Earth.RenderableGlobe.Layers.NightLayers.Earth at Night 2012.Enabled') .. - helper.property.invert('Earth.RenderableGlobe.PerformShading') .. - helper.property.invert('Earth.RenderableGlobe.Atmosphere') .. - helper.property.invert('Earth.RenderableGlobe.Layers.WaterMasks.MODIS_Water_Mask.Enabled'), - "Toggle night texture, shading, atmosphere, and water for Earth." - ) - - -- Toggle background - openspace.bindKey("b", - helper.property.invert('MilkyWay.renderable.Enabled') .. - helper.property.invert('Stars.renderable.Enabled'), - "Toggle background (Stars and Milkyway)." - ) - - openspace.bindKey("g", - "openspace.setInteractionMode('GlobeBrowsing')" .. - helper.property.invert('MilkyWay.renderable.Enabled') .. - helper.property.invert('Stars.renderable.Enabled') .. - helper.property.invert('Earth.RenderableGlobe.Layers.NightLayers.Earth at Night 2012.Enabled') .. - helper.property.invert('Earth.RenderableGlobe.PerformShading') .. - helper.property.invert('Mars.RenderableGlobe.PerformShading') .. - helper.property.invert('Earth.RenderableGlobe.Atmosphere') .. - helper.property.invert('Earth.RenderableGlobe.Layers.WaterMasks.MODIS_Water_Mask.Enabled') .. - helper.property.invert('Moon.RenderableGlobe.Enabled') .. - helper.property.invert('Sun.renderable.Enabled'), - "Toogles background and shading mode on the Earth and Mars alongside visibility of the Moon and the Sun" - ) - - openspace.bindKey("h", - "openspace.setPropertyValue('*Trail.renderable.Enabled', false)", - "Disables visibility of the trails" - ) -end - -function postInitialization() - openspace.printInfo("Setting default values") - - openspace.setPropertyValue("MilkyWay.renderable.Transparency", 0.55) - openspace.setPropertyValue("MilkyWay.renderable.Segments", 50) - - openspace.setPropertyValue("Sun.renderable.Enabled", true) - openspace.setPropertyValue("SunGlare.renderable.Enabled", false) - openspace.setPropertyValue("SunMarker.renderable.Enabled", false) - - openspace.setPropertyValue("Earth.RenderableGlobe.Atmosphere", true) - openspace.setPropertyValue("Earth.RenderableGlobe.Debug.LevelByProjectedAreaElseDistance", false) - openspace.setPropertyValue("Earth.RenderableGlobe.Layers.ColorLayers.BlendTileLevels", true) - - openspace.globebrowsing.goToGeo(0, 0, 20000000) - - openspace.printInfo("Done setting default values") -end - - -return { - ScenePath = ".", - CommonFolder = "common", - Camera = { - Focus = "Earth", - Position = {0, 0, 0}, - Rotation = {0.758797, 0.221490, -0.605693, -0.091135}, - }, - - Modules = { - "lodglobes", - "sun", - "stars", - "milkyway", - -- "satellites" - } -} - diff --git a/data/scene/grids/gridEcliptic/gridEcliptic.mod b/data/scene/grids/gridEcliptic/gridEcliptic.mod deleted file mode 100644 index ed4e7fb452..0000000000 --- a/data/scene/grids/gridEcliptic/gridEcliptic.mod +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- SphericalGrid module - { - Name = "SphericalGrid", - Parent = "Root", - Renderable = { - Type = "RenderableSphericalGrid", - GridType = "ECLIPJ2000", - GridColor = { 0.4, 0.0, 0.0, 1}, - GridMatrix = { -0.05487554, 0.4941095, -0.8676661 , 0.0, - -0.9938214 , -0.1109906, -0.0003515167, 0.0, - -0.09647644, 0.8622859, 0.4971472 , 0.0, - 0.0 , 0.0 , 0.0 , 1.0 }, - GridSegments = 36, - } - } -} \ No newline at end of file diff --git a/data/scene/grids/gridEquatorial/gridEquatorial.mod b/data/scene/grids/gridEquatorial/gridEquatorial.mod deleted file mode 100644 index ccee24ccad..0000000000 --- a/data/scene/grids/gridEquatorial/gridEquatorial.mod +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- SphericalGrid module - { - Name = "SphericalGrid", - Parent = "Root", - Renderable = { - Type = "RenderableSphericalGrid", - GridType = "ICRF", - GridColor = { 0.0, 0.0, 0.4, 1}, - GridMatrix = { -0.05487554, 0.4941095, -0.8676661, 0.0, - -0.8734371 , -0.4448296, -0.1980764, 0.0, - -0.483835 , 0.7469823, 0.4559838, 0.0, - 0.0 , 0.0 , 0.0 , 1.0 }, - GridSegments = 36, - } - } -} \ No newline at end of file diff --git a/data/scene/grids/gridGalactic/gridGalactic.mod b/data/scene/grids/gridGalactic/gridGalactic.mod deleted file mode 100644 index b27d939b6c..0000000000 --- a/data/scene/grids/gridGalactic/gridGalactic.mod +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- gridGalactic module - { - Name = "gridGalactic", - Parent = "SolarSystem", - Renderable = { - Type = "RenderableSphericalGrid", - GridType = "GALACTIC", - GridColor = { 0.0, 0.4, 0.4, 1}, - GridMatrix = { 1.0, 0.0, 0.0, 0.0, - 0.0, 1.0, 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, - 0.0, 0.0, 0.0, 1.0 }, - GridSegments = 36, - } - } -} \ No newline at end of file diff --git a/data/scene/grids/grids.mod b/data/scene/grids/grids.mod new file mode 100644 index 0000000000..a9ec4af6a4 --- /dev/null +++ b/data/scene/grids/grids.mod @@ -0,0 +1,38 @@ +return { + -- SphericalGrid module + { + Name = "Ecliptic Grid", + Parent = "Root", + Renderable = { + Type = "RenderableSphericalGrid", + GridColor = { 0.75, 0.0, 0.0, 1.0}, + LineWidth = 0.75, + GridMatrix = { -0.05487554, 0.4941095, -0.8676661 , 0.0, + -0.9938214 , -0.1109906, -0.0003515167, 0.0, + -0.09647644, 0.8622859, 0.4971472 , 0.0, + 0.0 , 0.0 , 0.0 , 1.0 } + } + }, + { + Name = "Equatorial Grid", + Parent = "Root", + Renderable = { + Type = "RenderableSphericalGrid", + GridColor = { 0.0, 0.0, 0.75, 1.0}, + LineWidth = 0.75, + GridMatrix = { -0.05487554, 0.4941095, -0.8676661, 0.0, + -0.8734371 , -0.4448296, -0.1980764, 0.0, + -0.483835 , 0.7469823, 0.4559838, 0.0, + 0.0 , 0.0 , 0.0 , 1.0 } + } + }, + { + Name = "Galactic Grid", + Parent = "SolarSystem", + Renderable = { + Type = "RenderableSphericalGrid", + LineWidth = 0.75, + GridColor = { 0.0, 0.75, 0.75, 1.0} + } + } +} diff --git a/data/scene/juno.scene b/data/scene/juno.scene index f3fb214f73..69f68db08b 100755 --- a/data/scene/juno.scene +++ b/data/scene/juno.scene @@ -55,8 +55,10 @@ return { "saturn/saturn", "uranus", "neptune", - "stars", - "milkyway", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "missions/juno" } } diff --git a/data/scene/jupiter/callisto/callisto.mod b/data/scene/jupiter/callisto/callisto.mod index aa6122bd47..7ee86055fb 100644 --- a/data/scene/jupiter/callisto/callisto.mod +++ b/data/scene/jupiter/callisto/callisto.mod @@ -1,46 +1,38 @@ return { - -- Callisto module - { + -- RenderableGlobe module + { Name = "Callisto", Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_CALLISTO", -- should exist. - Body = "CALLISTO", - Geometry = { - Type = "SimpleSphere", - Radius = 2.631E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/callisto.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "CALLISTO", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_CALLISTO", - DestinationFrame = "IAU_JUPITER", - }, - Scale = { - Type = "StaticScale", - Scale = 1, + DestinationFrame = "GALACTIC", }, + Translation = { + Type = "SpiceTranslation", + Target = "CALLISTO", + Observer = "JUPITER BARYCENTER", + Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" + } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = 2410000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Callisto Texture", + FilePath = "textures/callisto.jpg", + Enabled = true + } + } + } } }, - -- CallistoTrail module + + -- Trail module { Name = "CallistoTrail", Parent = "JupiterBarycenter", @@ -48,11 +40,11 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "CALLISTO", - Observer = "JUPITER BARYCENTER", + Target = "CALLISTO", + Observer = "JUPITER BARYCENTER" }, Color = { 0.4, 0.3, 0.01 }, - Period = 17, + Period = 17, Resolution = 1000 } } diff --git a/data/scene/jupiter/europa/europa.mod b/data/scene/jupiter/europa/europa.mod index fea16b4627..92f9177da0 100644 --- a/data/scene/jupiter/europa/europa.mod +++ b/data/scene/jupiter/europa/europa.mod @@ -1,42 +1,38 @@ return { - -- Europa module - { + -- RenderableGlobe module + { Name = "Europa", Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_EUROPA", -- should exist. - Body = "EUROPA", - Geometry = { - Type = "SimpleSphere", - Radius = 1.561E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/europa.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "EUROPA", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_EUROPA", - DestinationFrame = "IAU_JUPITER", - } + DestinationFrame = "GALACTIC", + }, + Translation = { + Type = "SpiceTranslation", + Target = "EUROPA", + Observer = "JUPITER BARYCENTER", + Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" + }, + }, + Renderable = { + Type = "RenderableGlobe", + Radii = 1560800, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Europa Texture", + FilePath = "textures/europa.jpg", + Enabled = true, + }, + }, + }, } }, - -- EuropaTrail module + + -- Trail module { Name = "EuropaTrail", Parent = "JupiterBarycenter", @@ -44,7 +40,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "EUROPA", + Target = "EUROPA", Observer = "JUPITER BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, diff --git a/data/scene/jupiter/ganymede/ganymede.mod b/data/scene/jupiter/ganymede/ganymede.mod index 16aa1c175a..61f048b368 100644 --- a/data/scene/jupiter/ganymede/ganymede.mod +++ b/data/scene/jupiter/ganymede/ganymede.mod @@ -1,46 +1,37 @@ return { - -- Ganymede module - { + -- RenderableGlobe module + { Name = "Ganymede", Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_GANYMEDE", -- should exist. - Body = "JUPITER BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 2.631E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/ganymede.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "GANYMEDE", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_GANYMEDE", - DestinationFrame = "IAU_JUPITER", - }, - Scale = { - Type = "StaticScale", - Scale = 1, + DestinationFrame = "GALACTIC" }, + Translation = { + Type = "SpiceTranslation", + Target = "GANYMEDE", + Observer = "JUPITER BARYCENTER", + Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" + } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = 2631000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Ganymede Texture", + FilePath = "textures/ganymede.jpg", + Enabled = true + } + } + } } }, - -- GanymedeTrail module + -- Trail module { Name = "GanymedeTrail", Parent = "JupiterBarycenter", @@ -48,8 +39,8 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "GANYMEDE", - Observer = "JUPITER BARYCENTER", + Target = "GANYMEDE", + Observer = "JUPITER BARYCENTER" }, Color = { 0.4, 0.3, 0.3 }, Period = 172 / 24, diff --git a/data/scene/jupiter/io/io.mod b/data/scene/jupiter/io/io.mod index 98e5e88e7f..70c265d266 100644 --- a/data/scene/jupiter/io/io.mod +++ b/data/scene/jupiter/io/io.mod @@ -1,46 +1,37 @@ return { - -- Io module - { + -- RenderableGlobe module + { Name = "Io", Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_IO", -- should exist. - Body = "IO", - Geometry = { - Type = "SimpleSphere", - Radius = 1.8213E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/io.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "IO", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_IO", - DestinationFrame = "IAU_JUPITER", + DestinationFrame = "GALACTIC" }, - Scale = { - Type = "StaticScale", - Scale = 1, + Translation = { + Type = "SpiceTranslation", + Target = "IO", + Observer = "JUPITER BARYCENTER", + Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" }, + }, + Renderable = { + Type = "RenderableGlobe", + Radii = 1821600, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Io Texture", + FilePath = "textures/io.jpg", + Enabled = true + } + } + } } }, - -- IoTrail module + -- Trail module { Name = "IoTrail", Parent = "JupiterBarycenter", @@ -48,8 +39,8 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "IO", - Observer = "JUPITER BARYCENTER", + Target = "IO", + Observer = "JUPITER BARYCENTER" }, Color = { 0.4, 0.4, 0.2 }, Period = 42 / 24, diff --git a/data/scene/jupiter/jupiter/jupiter.mod b/data/scene/jupiter/jupiter/jupiter.mod index f9030b25f1..c8e822b5af 100644 --- a/data/scene/jupiter/jupiter/jupiter.mod +++ b/data/scene/jupiter/jupiter/jupiter.mod @@ -1,58 +1,45 @@ return { - -- Jupiter barycenter module + -- Barycenter module { Name = "JupiterBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", + Target = "JUPITER BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, + } + } }, - -- Jupiter module - { + -- RenderableGlobe module + { Name = "Jupiter", Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_JUPITER", - Body = "JUPITER BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 0.71492E8, - Segments = 200 - }, - Textures = { - Type = "simple", - Color = "textures/jupiter.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = "planet_solarSystem", Transform = { - Translation = { - Type = "StaticTranslation", - Position = {0, 0, 0}, -- jupiter is at its barycenter - }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_JUPITER", - DestinationFrame = "ECLIPJ2000", + DestinationFrame = "GALACTIC" }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = { 71492000, 71492000, 66854000 }, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Jupiter Texture", + FilePath = "textures/jupiter.jpg", + Enabled = true + } + } + } + }, + Tag = { "planet_solarSystem", "planet_giants" }, }, - -- JupiterTrail module + -- Trail module { Name = "JupiterTrail", Parent = "SolarSystemBarycenter", @@ -60,13 +47,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", - Observer = "SUN", + Target = "JUPITER BARYCENTER", + Observer = "SUN" }, Color = { 0.8, 0.7, 0.7 }, Period = 4330.595, - Resolution = 1000, + Resolution = 1000 }, - Tag = "planetTrail_solarSystem" + Tag = { "planetTrail_solarSystem", "planetTrail_giants" } } -} +} \ No newline at end of file diff --git a/data/scene/lodglobes/earth/earth.data b/data/scene/lodglobes/earth/earth.data deleted file mode 100644 index e168d4c8be..0000000000 --- a/data/scene/lodglobes/earth/earth.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "earth_textures", Destination = "textures", Version = 2 } - }, -} diff --git a/data/scene/lodglobes/earth/earth.mod b/data/scene/lodglobes/earth/earth.mod deleted file mode 100644 index 0819aa8638..0000000000 --- a/data/scene/lodglobes/earth/earth.mod +++ /dev/null @@ -1,188 +0,0 @@ -earthEllipsoid = {6378137.0, 6378137.0, 6356752.314245} -- Earth's radii -return { - -- Earth barycenter module - { - Name = "EarthBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "EARTH", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - { - -- The default reference frame for Earth-orbiting satellites - Name = "EarthInertial", - Parent = "EarthBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "J2000", - DestinationFrame = "GALACTIC", - } - }, - }, - -- EarthTrail module - { - Name = "EarthTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "EARTH", - Observer = "SUN" - }, - Color = { 0.5, 0.8, 1.0 }, - -- StartTime = "2016 JUN 01 12:00:00.000", - -- EndTime = "2017 JAN 01 12:00:00.000", - -- SampleInterval = 3600 - Period = 365.242, - Resolution = 1000 - }, - GuiName = "/Solar/EarthTrail" - }, - -- RenderableGlobe module - { - Name = "Earth", - Parent = "EarthBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_EARTH", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = earthEllipsoid, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "ESRI VIIRS Combo", - Type = "ByLevelTileLayer", - LevelTileProviders = { - { - MaxLevel = 3, - TileProvider = { - Type = "TemporalTileLayer", - Name = "Temporal VIIRS SNPP", - FilePath = "map_service_configs/GIBS/Temporal_VIIRS_SNPP_CorrectedReflectance_TrueColor.xml", }, - }, - { - MaxLevel = 22, - TileProvider = { - Name = "ESRI Imagery World 2D", - FilePath = "map_service_configs/ESRI/ESRI_Imagery_World_2D.wms" - }, - }, - }, - Enabled = true, - }, - { - FilePath = "map_service_configs/ESRI/ESRI_Imagery_World_2D.wms", - Name = "ESRI", - }, - { - Name = "BMNG", - FilePath = "map_service_configs/Utah/Bmng.wms" - }, - { - Type = "TemporalTileLayer", - Name = "Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration", - FilePath = "map_service_configs/GIBS/Temporal_AMSR2_GCOM_W1_Sea_Ice_Concentration.xml", - }, - { - Type = "TemporalTileLayer", - Name = "MODIS_Terra_Chlorophyll_A", - FilePath = openspace.globebrowsing.createTemporalGibsGdalXml( - "MODIS_Terra_Chlorophyll_A", - "2013-07-02", - "Yesterday", - "1d", - "1km", - "png") - }, - { - Type = "TemporalTileLayer", - Name = "GHRSST_L4_G1SST_Sea_Surface_Temperature", - FilePath = openspace.globebrowsing.createTemporalGibsGdalXml( - "GHRSST_L4_G1SST_Sea_Surface_Temperature", - "2010-06-21", - "Yesterday", - "1d", - "1km", - "png") - }, - }, - NightLayers = { - { - Name = "Earth at Night 2012", - FilePath = "map_service_configs/GIBS/VIIRS_CityLights_2012.xml", - Enabled = true, - Settings = { - Opacity = 1.0, - Gamma = 1.5, - Multiplier = 15.0, - }, - }, - { - Type = "TemporalTileLayer", - Name = "Temporal Earth at Night", - FilePath = "map_service_configs/GIBS/Temporal_VIIRS_SNPP_DayNightBand_ENCC.xml" - } - }, - WaterMasks = { - { - Name = "MODIS_Water_Mask", - FilePath = "map_service_configs/GIBS/MODIS_Water_Mask.xml", - Enabled = true, - }, - { - Name = "GEBCO", - FilePath = "map_service_configs/Utah/Gebco.wms", - } - }, - Overlays = { - { - Name = "Coastlines", - FilePath = "map_service_configs/GIBS/Coastlines.xml", - }, - { - Name = "Reference_Features", - FilePath = "map_service_configs/GIBS/Reference_Features.xml", - }, - { - Name = "Reference_Labels", - FilePath = "map_service_configs/GIBS/Reference_Labels.xml", - }, - { - Type = "TileIndexTileLayer", - Name = "Tile Indices", - }, - { - Type = "SizeReferenceTileLayer", - Name = "Size Reference", - Radii = earthEllipsoid, - }, - }, - HeightLayers = { - { - Name = "Terrain tileset", - FilePath = "map_service_configs/ESRI/TERRAIN.wms", - Enabled = true, - TilePixelSize = 64, - }, - }, - }, - } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/callisto/callisto.data b/data/scene/lodglobes/jupiter/callisto/callisto.data deleted file mode 100644 index 9c381ecce7..0000000000 --- a/data/scene/lodglobes/jupiter/callisto/callisto.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "callisto_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/callisto/callisto.mod b/data/scene/lodglobes/jupiter/callisto/callisto.mod deleted file mode 100644 index 302fc7a103..0000000000 --- a/data/scene/lodglobes/jupiter/callisto/callisto.mod +++ /dev/null @@ -1,54 +0,0 @@ -return { - -- RenderableGlobe module - { - Name = "Callisto", - Parent = "JupiterBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_CALLISTO", - DestinationFrame = "GALACTIC", - }, - Translation = { - Type = "SpiceTranslation", - Body = "CALLISTO", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {2631000, 2631000, 2631000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Callisto Texture", - FilePath = "textures/callisto.jpg", - Enabled = true, - }, - }, - }, - } - }, - -- Trail module - { - Name = "CallistoTrail", - Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "CALLISTO", - Observer = "JUPITER BARYCENTER", - }, - Color = { 0.4, 0.3, 0.01 }, - Period = 17, - Resolution = 1000 - } - } -} diff --git a/data/scene/lodglobes/jupiter/europa/europa.data b/data/scene/lodglobes/jupiter/europa/europa.data deleted file mode 100644 index 4364fcbc49..0000000000 --- a/data/scene/lodglobes/jupiter/europa/europa.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "europa_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/europa/europa.mod b/data/scene/lodglobes/jupiter/europa/europa.mod deleted file mode 100644 index d84d20d48d..0000000000 --- a/data/scene/lodglobes/jupiter/europa/europa.mod +++ /dev/null @@ -1,55 +0,0 @@ -return { - -- RenderableGlobe module - { - Name = "Europa", - Parent = "JupiterBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_EUROPA", - DestinationFrame = "GALACTIC", - }, - Translation = { - Type = "SpiceTranslation", - Body = "EUROPA", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {1561000, 1561000, 1561000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Europa Texture", - FilePath = "textures/europa.jpg", - Enabled = true, - }, - }, - }, - } - }, - - -- Trail module - { - Name = "EuropaTrail", - Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "EUROPA", - Observer = "JUPITER BARYCENTER", - }, - Color = { 0.5, 0.3, 0.3 }, - Period = 85 / 24, - Resolution = 1000 - } - } -} diff --git a/data/scene/lodglobes/jupiter/ganymede/ganymede.data b/data/scene/lodglobes/jupiter/ganymede/ganymede.data deleted file mode 100644 index 4ae2714582..0000000000 --- a/data/scene/lodglobes/jupiter/ganymede/ganymede.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "ganymede_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/ganymede/ganymede.mod b/data/scene/lodglobes/jupiter/ganymede/ganymede.mod deleted file mode 100644 index e37a193bb8..0000000000 --- a/data/scene/lodglobes/jupiter/ganymede/ganymede.mod +++ /dev/null @@ -1,54 +0,0 @@ -return { - -- RenderableGlobe module - { - Name = "Ganymede", - Parent = "JupiterBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_GANYMEDE", - DestinationFrame = "GALACTIC", - }, - Translation = { - Type = "SpiceTranslation", - Body = "GANYMEDE", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {2631000, 2631000, 2631000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Ganymede Texture", - FilePath = "textures/ganymede.jpg", - Enabled = true, - }, - }, - }, - } - }, - -- Trail module - { - Name = "GanymedeTrail", - Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "GANYMEDE", - Observer = "JUPITER BARYCENTER", - }, - Color = { 0.4, 0.3, 0.3 }, - Period = 172 / 24, - Resolution = 1000 - } - } -} diff --git a/data/scene/lodglobes/jupiter/io/io.data b/data/scene/lodglobes/jupiter/io/io.data deleted file mode 100644 index baca863e4b..0000000000 --- a/data/scene/lodglobes/jupiter/io/io.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "io_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/io/io.mod b/data/scene/lodglobes/jupiter/io/io.mod deleted file mode 100644 index 87dfc06b20..0000000000 --- a/data/scene/lodglobes/jupiter/io/io.mod +++ /dev/null @@ -1,54 +0,0 @@ -return { - -- RenderableGlobe module - { - Name = "Io", - Parent = "JupiterBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_IO", - DestinationFrame = "GALACTIC", - }, - Translation = { - Type = "SpiceTranslation", - Body = "IO", - Observer = "JUPITER BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/jup260.bsp" - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {1821300, 1821300, 1821300}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Io Texture", - FilePath = "textures/io.jpg", - Enabled = true, - }, - }, - }, - } - }, - -- Trail module - { - Name = "IoTrail", - Parent = "JupiterBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "IO", - Observer = "JUPITER BARYCENTER", - }, - Color = { 0.4, 0.4, 0.2 }, - Period = 42 / 24, - Resolution = 1000 - } - } -} diff --git a/data/scene/lodglobes/jupiter/jupiter/jup260.bsp.torrent b/data/scene/lodglobes/jupiter/jupiter/jup260.bsp.torrent deleted file mode 100644 index 0c82073d38..0000000000 Binary files a/data/scene/lodglobes/jupiter/jupiter/jup260.bsp.torrent and /dev/null differ diff --git a/data/scene/lodglobes/jupiter/jupiter/jupiter.data b/data/scene/lodglobes/jupiter/jupiter/jupiter.data deleted file mode 100644 index b22e81119b..0000000000 --- a/data/scene/lodglobes/jupiter/jupiter/jupiter.data +++ /dev/null @@ -1,8 +0,0 @@ -return { - FileRequest = { - { Identifier = "jupiter_textures", Destination = "textures", Version = 1 } - }, - TorrentFiles = { - { File = "jup260.bsp.torrent", Destination = "${SPICE}" }, - } -} \ No newline at end of file diff --git a/data/scene/lodglobes/jupiter/jupiter/jupiter.mod b/data/scene/lodglobes/jupiter/jupiter/jupiter.mod deleted file mode 100644 index 58dc65149d..0000000000 --- a/data/scene/lodglobes/jupiter/jupiter/jupiter.mod +++ /dev/null @@ -1,65 +0,0 @@ -return { - -- Barycenter module - { - Name = "JupiterBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Jupiter", - Parent = "JupiterBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_JUPITER", - DestinationFrame = "GALACTIC", - }, - Translation = { - Type = "StaticTranslation", - Position = {0, 0, 0}, -- jupiter is at its barycenter - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {71492000, 71492000, 66854000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Jupiter Texture", - FilePath = "textures/jupiter.jpg", - Enabled = true, - }, - }, - }, - } - }, - -- Trail module - { - Name = "JupiterTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", - Observer = "SUN", - }, - Color = { 0.8, 0.7, 0.7 }, - Period = 4330.595, - Resolution = 1000 - } - } -} \ No newline at end of file diff --git a/data/scene/lodglobes/mars/MAR063.BSP.torrent b/data/scene/lodglobes/mars/MAR063.BSP.torrent deleted file mode 100644 index 50cab2e6bf..0000000000 Binary files a/data/scene/lodglobes/mars/MAR063.BSP.torrent and /dev/null differ diff --git a/data/scene/lodglobes/mars/mars.data b/data/scene/lodglobes/mars/mars.data deleted file mode 100644 index afaf7ab69d..0000000000 --- a/data/scene/lodglobes/mars/mars.data +++ /dev/null @@ -1,8 +0,0 @@ -return { - FileRequest = { - { Identifier = "mars_textures", Destination = "textures", Version = 1 } - }, - TorrentFiles = { - -- { File = "MAR063.BSP.torrent", Destination = "${SPICE}" } - } -} \ No newline at end of file diff --git a/data/scene/lodglobes/mars/mars.mod b/data/scene/lodglobes/mars/mars.mod deleted file mode 100644 index ceee56e4ea..0000000000 --- a/data/scene/lodglobes/mars/mars.mod +++ /dev/null @@ -1,96 +0,0 @@ -local marsEllipsoid = {3396190.0, 3396190.0, 3376200.0} - -return { - -- Barycenter module - { - Name = "MarsBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "MARS BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Mars", - Parent = "MarsBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_MARS", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = marsEllipsoid, - SegmentsPerPatch = 90, - Layers = { - ColorLayers = { - { - Name = "Viking", - FilePath = "map_service_configs/MARS_Viking_MDIM21.xml", - Enabled = true, - }, - { - Name = "MOLA Pseudo Color", - FilePath = "map_service_configs/Utah/MolaPseudoColor.xml", - }, - { - Name = "CTX Mosaic [Europe]", - FilePath = "map_service_configs/CTX_Mosaic.xml", - BlendMode = "Color" - }, - { - Name = "CTX Mosaic [Utah]", - FilePath = "map_service_configs/Utah/CTX_Mosaic.xml", - BlendMode = "Color" - }, - }, - Overlays = { - { - Type = "TileIndexTileLayer", - Name = "Indices", - }, - { - Type = "SizeReferenceTileLayer", - Name = "Size Reference", - Radii = marsEllipsoid, - }, - }, - HeightLayers = { - { - Name = "Mola Elevation [Europe]", - FilePath = "map_service_configs/Mola_Elevation.xml", - Enabled = true, - TilePixelSize = 90, - }, - }, - }, - } - }, - -- Trail module - { - Name = "MarsTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "MARS BARYCENTER", - Observer = "SUN", - }, - Color = { 0.814, 0.305, 0.220 }, - Period = 686.973, - Resolution = 1000 - } - } -} diff --git a/data/scene/lodglobes/mercury/mercury.data b/data/scene/lodglobes/mercury/mercury.data deleted file mode 100644 index f2df36620b..0000000000 --- a/data/scene/lodglobes/mercury/mercury.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "mercury_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/mercury/mercury.mod b/data/scene/lodglobes/mercury/mercury.mod deleted file mode 100644 index 531b855ba7..0000000000 --- a/data/scene/lodglobes/mercury/mercury.mod +++ /dev/null @@ -1,74 +0,0 @@ -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, - }, - { - Name = "Messenger_Mosaic", - FilePath = "map_service_configs/Utah/MessengerMosaic.wms" - }, - { - Name = "Messenger_MDIS", - FilePath = "map_service_configs/Utah/MessengerMDIS.wms" - } - }, - }, - }, - }, - -- 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 - } - } -} diff --git a/data/scene/lodglobes/moon/moon.data b/data/scene/lodglobes/moon/moon.data deleted file mode 100644 index f8c7094165..0000000000 --- a/data/scene/lodglobes/moon/moon.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "moon_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/moon/moon.mod b/data/scene/lodglobes/moon/moon.mod deleted file mode 100644 index 1ddb3cf044..0000000000 --- a/data/scene/lodglobes/moon/moon.mod +++ /dev/null @@ -1,71 +0,0 @@ -return { - -- Moon module - { - Name = "Moon", - Parent = "EarthBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "MOON", - Observer = "EARTH BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_MOON", - DestinationFrame = "GALACTIC" - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {1738140, 1738140, 1735970}, -- Moons's radius - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "OnMoonColorGrayscale", - FilePath = "map_service_configs/OnMoonColor.xml", - Enabled = true, - }, - { - Name = "ClemUvvis", - FilePath = "map_service_configs/Utah/ClemUvvis.wms" - }, - { - Name = "Kaguya", - FilePath = "map_service_configs/Utah/Kaguya.wms" - }, - { - Name = "WAC", - FilePath = "map_service_configs/Utah/Wac.wms" - } - }, - HeightLayers = { - { - Name = "LolaDem", - FilePath = "map_service_configs/Utah/LolaDem.wms", - Enabled = true, - TilePixelSize = 64, - Settings = { Multiplier = 0.5 }, - } - }, - }, - } - }, - -- MoonTrail module - { - Name = "MoonTrail", - Parent = "EarthBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "MOON", - Observer = "EARTH BARYCENTER", - }, - Color = { 0.5, 0.3, 0.3 }, - Period = 27, - Resolution = 1000 - }, - } -} diff --git a/data/scene/lodglobes/neptune/neptune.data b/data/scene/lodglobes/neptune/neptune.data deleted file mode 100644 index 60b294047e..0000000000 --- a/data/scene/lodglobes/neptune/neptune.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "neptune_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/neptune/neptune.mod b/data/scene/lodglobes/neptune/neptune.mod deleted file mode 100644 index 99513e18bb..0000000000 --- a/data/scene/lodglobes/neptune/neptune.mod +++ /dev/null @@ -1,62 +0,0 @@ -return { - -- Barycenter module - { - Name = "NeptuneBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "NEPTUNE BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Neptune", - Parent = "NeptuneBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_NEPTUNE", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - -- No translation, Neptune is in its barycenter - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {24764000, 24764000, 24314000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Texture", - FilePath = "textures/neptune.jpg", - Enabled = true, - }, - }, - }, - }, - }, - -- Trail module - { - Name = "NeptuneTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "NEPTUNE BARYCENTER", - Observer = "SUN", - }, - Color = {0.2, 0.5, 1.0 }, - Period = 60200, - Resolution = 1000 - }, - } -} diff --git a/data/scene/lodglobes/saturn/saturn.data b/data/scene/lodglobes/saturn/saturn.data deleted file mode 100644 index cf0748dfc1..0000000000 --- a/data/scene/lodglobes/saturn/saturn.data +++ /dev/null @@ -1,8 +0,0 @@ -return { - FileRequest = { - { Identifier = "saturn_textures", Destination = "textures", Version = 2 } - }, - TorrentFiles = { - { File = "sat375.bsp.torrent", Destination = "${SPICE}" }, - } -} \ No newline at end of file diff --git a/data/scene/lodglobes/saturn/saturn.mod b/data/scene/lodglobes/saturn/saturn.mod deleted file mode 100644 index dc1ef691eb..0000000000 --- a/data/scene/lodglobes/saturn/saturn.mod +++ /dev/null @@ -1,72 +0,0 @@ -return { - -- Barycenter module - { - Name = "SaturnBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "SATURN BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Saturn", - Parent = "SaturnBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_SATURN", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - -- No translation, Saturn is in its barycenter - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {60268000, 60268000, 54364000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Saturn Texture", - FilePath = "textures/saturn.jpg", - Enabled = true, - }, - }, - }, - }, - }, - { - Name = "SaturnRings", - Parent = "Saturn", - Renderable = { - Type = "RenderableRings", - Texture = "textures/saturn_rings.png", - Size = 140220000, - Offset = { 74500 / 140445.100671159, 1.0 } -- min / max extend - }, - }, - -- Trail module - { - Name = "SaturnTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "SATURN BARYCENTER", - Observer = "SUN", - }, - Color = {0.85,0.75,0.51 }, - Period = 10746.94, - Resolution = 1000 - }, - } -} diff --git a/data/scene/lodglobes/uranus/uranus.data b/data/scene/lodglobes/uranus/uranus.data deleted file mode 100644 index 1260617597..0000000000 --- a/data/scene/lodglobes/uranus/uranus.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "uranus_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/uranus/uranus.mod b/data/scene/lodglobes/uranus/uranus.mod deleted file mode 100644 index b8cda62a16..0000000000 --- a/data/scene/lodglobes/uranus/uranus.mod +++ /dev/null @@ -1,62 +0,0 @@ -return { - -- Barycenter module - { - Name = "UranusBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "URANUS BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Uranus", - Parent = "UranusBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_URANUS", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - -- No translation, Uranus is in its barycenter - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {25559000, 25559000, 24973000}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Texture", - FilePath = "textures/uranus.jpg", - Enabled = true, - }, - }, - }, - }, - }, - -- Trail module - { - Name = "UranusTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "URANUS BARYCENTER", - Observer = "SUN", - }, - Color = {0.60, 0.95, 1.00 }, - Period = 30588.740, - Resolution = 1000 - }, - } -} diff --git a/data/scene/lodglobes/venus/venus.data b/data/scene/lodglobes/venus/venus.data deleted file mode 100644 index 07753359f6..0000000000 --- a/data/scene/lodglobes/venus/venus.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "venus_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/lodglobes/venus/venus.mod b/data/scene/lodglobes/venus/venus.mod deleted file mode 100644 index 285f88f466..0000000000 --- a/data/scene/lodglobes/venus/venus.mod +++ /dev/null @@ -1,67 +0,0 @@ -return { - -- Barycenter module - { - Name = "VenusBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "VENUS BARYCENTER", - Observer = "SUN", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - }, - -- RenderableGlobe module - { - Name = "Venus", - Parent = "VenusBarycenter", - Transform = { - Rotation = { - Type = "SpiceRotation", - SourceFrame = "IAU_VENUS", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - Translation = { - Type = "SpiceTranslation", - Body = "VENUS", - Observer = "VENUS BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, - }, - Renderable = { - Type = "RenderableGlobe", - Radii = {6051900, 6051900, 6051800}, - SegmentsPerPatch = 64, - Layers = { - ColorLayers = { - { - Name = "Venus Texture", - FilePath = "textures/venus.jpg", - Enabled = true, - }, - }, - }, - }, - }, - -- Trail module - { - Name = "VenusTrail", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "VENUS BARYCENTER", - Observer = "SUN", - }, - Color = { 1.0, 0.5, 0.2 }, - Period = 224.695, - Resolution = 1000 - }, - } -} diff --git a/data/scene/lodglobes/mars/map_service_configs/CTX_Mosaic.xml b/data/scene/mars/map_service_configs/CTX_Mosaic.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/CTX_Mosaic.xml rename to data/scene/mars/map_service_configs/CTX_Mosaic.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/MARS_Viking.xml b/data/scene/mars/map_service_configs/MARS_Viking.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/MARS_Viking.xml rename to data/scene/mars/map_service_configs/MARS_Viking.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/MARS_Viking_MDIM21.xml b/data/scene/mars/map_service_configs/MARS_Viking_MDIM21.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/MARS_Viking_MDIM21.xml rename to data/scene/mars/map_service_configs/MARS_Viking_MDIM21.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/MDIM21_color.xml b/data/scene/mars/map_service_configs/MDIM21_color.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/MDIM21_color.xml rename to data/scene/mars/map_service_configs/MDIM21_color.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Mars_MGS_MOLA_DEM.xml b/data/scene/mars/map_service_configs/Mars_MGS_MOLA_DEM.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Mars_MGS_MOLA_DEM.xml rename to data/scene/mars/map_service_configs/Mars_MGS_MOLA_DEM.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Mola_Elevation.xml b/data/scene/mars/map_service_configs/Mola_Elevation.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Mola_Elevation.xml rename to data/scene/mars/map_service_configs/Mola_Elevation.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/CTX_Mosaic.xml b/data/scene/mars/map_service_configs/Utah/CTX_Mosaic.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/CTX_Mosaic.xml rename to data/scene/mars/map_service_configs/Utah/CTX_Mosaic.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/Mdim.xml b/data/scene/mars/map_service_configs/Utah/Mdim.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/Mdim.xml rename to data/scene/mars/map_service_configs/Utah/Mdim.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/MolaCTX_Elevation.xml b/data/scene/mars/map_service_configs/Utah/MolaCTX_Elevation.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/MolaCTX_Elevation.xml rename to data/scene/mars/map_service_configs/Utah/MolaCTX_Elevation.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/MolaPseudoColor.xml b/data/scene/mars/map_service_configs/Utah/MolaPseudoColor.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/MolaPseudoColor.xml rename to data/scene/mars/map_service_configs/Utah/MolaPseudoColor.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/Mola_Elevation.xml b/data/scene/mars/map_service_configs/Utah/Mola_Elevation.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/Mola_Elevation.xml rename to data/scene/mars/map_service_configs/Utah/Mola_Elevation.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/ThemisIRDay.xml b/data/scene/mars/map_service_configs/Utah/ThemisIRDay.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/ThemisIRDay.xml rename to data/scene/mars/map_service_configs/Utah/ThemisIRDay.xml diff --git a/data/scene/lodglobes/mars/map_service_configs/Utah/ThemisIRNight.xml b/data/scene/mars/map_service_configs/Utah/ThemisIRNight.xml similarity index 100% rename from data/scene/lodglobes/mars/map_service_configs/Utah/ThemisIRNight.xml rename to data/scene/mars/map_service_configs/Utah/ThemisIRNight.xml diff --git a/data/scene/mars/mars.mod b/data/scene/mars/mars.mod index 301f510e5f..dbcaf7838f 100644 --- a/data/scene/mars/mars.mod +++ b/data/scene/mars/mars.mod @@ -1,54 +1,81 @@ +local marsEllipsoid = {3396190.0, 3396190.0, 3376200.0} + return { - -- Mars barycenter module + -- Barycenter module { Name = "MarsBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "MARS BARYCENTER", + Target = "MARS BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" } } }, - -- Mars module + -- RenderableGlobe module { Name = "Mars", Parent = "MarsBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_MARS", - Body = "MARS BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 6.390E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/mars.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = {"planet_solarSystem", "planet_terrestrial"}, Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_MARS", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - } + DestinationFrame = "GALACTIC" + } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = marsEllipsoid, + SegmentsPerPatch = 90, + Layers = { + ColorLayers = { + { + Name = "Viking", + FilePath = "map_service_configs/MARS_Viking_MDIM21.xml", + Enabled = true, + }, + { + Name = "MOLA Pseudo Color", + FilePath = "map_service_configs/Utah/MolaPseudoColor.xml" + }, + { + Name = "CTX Mosaic [Europe]", + FilePath = "map_service_configs/CTX_Mosaic.xml", + BlendMode = "Color" + }, + { + Name = "CTX Mosaic [Utah]", + FilePath = "map_service_configs/Utah/CTX_Mosaic.xml", + BlendMode = "Color" + } + }, + Overlays = { + { + Type = "TileIndexTileLayer", + Name = "Indices" + }, + { + Type = "SizeReferenceTileLayer", + Name = "Size Reference", + Radii = marsEllipsoid + } + }, + HeightLayers = { + { + Name = "Mola Elevation [Europe]", + FilePath = "map_service_configs/Mola_Elevation.xml", + Enabled = true, + TilePixelSize = 90 + } + } + } + }, + Tag = { "planet_solarSystem", "planet_terrestrial" }, }, - -- MarsTrail module + + -- Trail module { Name = "MarsTrail", Parent = "SolarSystemBarycenter", @@ -56,13 +83,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "MARS BARYCENTER", - Observer = "SUN", + Target = "MARS BARYCENTER", + Observer = "SUN" }, Color = { 0.814, 0.305, 0.220 }, Period = 686.973, - Resolution = 1000, - Tag = {"planetTrail_solarSystem", "planetTrail_terrestrial"} - } + Resolution = 1000 + }, + Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" } } } diff --git a/data/scene/lodglobes/mercury/map_service_configs/OnMercuryColor.xml b/data/scene/mercury/map_service_configs/OnMercuryColor.xml similarity index 100% rename from data/scene/lodglobes/mercury/map_service_configs/OnMercuryColor.xml rename to data/scene/mercury/map_service_configs/OnMercuryColor.xml diff --git a/data/scene/lodglobes/mercury/map_service_configs/OnMercuryElevationGaskell.xml b/data/scene/mercury/map_service_configs/OnMercuryElevationGaskell.xml similarity index 100% rename from data/scene/lodglobes/mercury/map_service_configs/OnMercuryElevationGaskell.xml rename to data/scene/mercury/map_service_configs/OnMercuryElevationGaskell.xml diff --git a/data/scene/lodglobes/mercury/map_service_configs/OnMercuryImage.xml b/data/scene/mercury/map_service_configs/OnMercuryImage.xml similarity index 100% rename from data/scene/lodglobes/mercury/map_service_configs/OnMercuryImage.xml rename to data/scene/mercury/map_service_configs/OnMercuryImage.xml diff --git a/data/scene/lodglobes/mercury/map_service_configs/Utah/MessengerMdis.wms b/data/scene/mercury/map_service_configs/Utah/MessengerMdis.wms similarity index 100% rename from data/scene/lodglobes/mercury/map_service_configs/Utah/MessengerMdis.wms rename to data/scene/mercury/map_service_configs/Utah/MessengerMdis.wms diff --git a/data/scene/lodglobes/mercury/map_service_configs/Utah/MessengerMosaic.wms b/data/scene/mercury/map_service_configs/Utah/MessengerMosaic.wms similarity index 100% rename from data/scene/lodglobes/mercury/map_service_configs/Utah/MessengerMosaic.wms rename to data/scene/mercury/map_service_configs/Utah/MessengerMosaic.wms diff --git a/data/scene/mercury/mercury.data b/data/scene/mercury/mercury.data deleted file mode 100644 index f2df36620b..0000000000 --- a/data/scene/mercury/mercury.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "mercury_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/mercury/mercury.mod b/data/scene/mercury/mercury.mod index 61d5c6ff8b..7f825463d8 100644 --- a/data/scene/mercury/mercury.mod +++ b/data/scene/mercury/mercury.mod @@ -1,54 +1,52 @@ return { - -- Mercury barycenter module + -- Barycenter module { Name = "MercuryBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "MERCURY BARYCENTER", + Target = "MERCURY", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, + } } }, - -- Mercury module + -- RenderableGlobe module { Name = "Mercury", Parent = "MercuryBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_MERCURY", - Body = "MERCURY", - Geometry = { - Type = "SimpleSphere", - Radius = 2.4397E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/mercury.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = {"planet_solarSystem", "planet_terrestrial"}, Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_MERCURY", - DestinationFrame = "ECLIPJ2000", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - } + DestinationFrame = "GALACTIC" + } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = 2439700, + Frame = "IAU_MERCURY", + Body = "MERCURY", + CameraMinHeight = 300, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Messenger_MDIS", + FilePath = "map_service_configs/Utah/MessengerMDIS.wms", + Enabled = true + }, + { + Name = "Messenger_Mosaic", + FilePath = "map_service_configs/Utah/MessengerMosaic.wms" + } + } + } + }, + Tag = { "planet_solarSystem", "planet_terrestrial" }, }, - -- MercuryTrail module + -- Trail module { Name = "MercuryTrail", Parent = "SolarSystemBarycenter", @@ -56,13 +54,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "MERCURY", + Target = "MERCURY", Observer = "SUN", }, Color = {0.6, 0.5, 0.5 }, Period = 87.968, - Resolution = 100, - Tag = {"planetTrail_solarSystem", "planetTrail_terrestrial"} - } + Resolution = 100 + }, + Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" } } } diff --git a/data/scene/milkyway/milkyway.data b/data/scene/milkyway/digitaluniverse/digitaluniverse.data similarity index 100% rename from data/scene/milkyway/milkyway.data rename to data/scene/milkyway/digitaluniverse/digitaluniverse.data diff --git a/data/scene/milkyway/milkyway.mod b/data/scene/milkyway/digitaluniverse/digitaluniverse.mod similarity index 100% rename from data/scene/milkyway/milkyway.mod rename to data/scene/milkyway/digitaluniverse/digitaluniverse.mod diff --git a/data/scene/milkyway-eso/milkyway-eso.data b/data/scene/milkyway/eso/eso.data similarity index 100% rename from data/scene/milkyway-eso/milkyway-eso.data rename to data/scene/milkyway/eso/eso.data diff --git a/data/scene/milkyway-eso/milkyway-eso.mod b/data/scene/milkyway/eso/eso.mod similarity index 100% rename from data/scene/milkyway-eso/milkyway-eso.mod rename to data/scene/milkyway/eso/eso.mod diff --git a/data/scene/missions/dawn/ceres/ceres.mod b/data/scene/missions/dawn/ceres/ceres.mod index 0c29ae852b..775b94dae8 100644 --- a/data/scene/missions/dawn/ceres/ceres.mod +++ b/data/scene/missions/dawn/ceres/ceres.mod @@ -13,10 +13,7 @@ return { Radius = 6.390E5, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/gray.png", - }, + ColorTexture = "textures/gray.png", StartTime = "2010 JAN 01 00:00:00", EndTime = "2018 JAN 22 12:00:00" }, diff --git a/data/scene/missions/dawn/dawn/dawn.mod b/data/scene/missions/dawn/dawn/dawn.mod index 3d4a14e917..54aae8158d 100644 --- a/data/scene/missions/dawn/dawn/dawn.mod +++ b/data/scene/missions/dawn/dawn/dawn.mod @@ -11,10 +11,7 @@ return { Type = "MultiModelGeometry", GeometryFile = "${OPENSPACE_DATA}/scene/dawn/obj/mainbodydawn.obj", }, - Textures = { - Type = "simple", - Color = "textures/gray.png", - }, + ColorTexture = "textures/gray.png", Rotation = { Source = "DAWN_SPACECRAFT", Destination = "GALACTIC" @@ -634,10 +631,7 @@ return { Type = "MultiModelGeometry", GeometryFile = "${OPENSPACE_DATA}/scene/dawn/obj/solarpanelleft.obj", }, - Textures = { - Type = "simple", - Color = "textures/gray.png", - }, + ColorTexture = "textures/gray.png", Rotation = { Source = "DAWN_SA-Y", Destination = "GALACTIC" @@ -657,10 +651,7 @@ return { Type = "MultiModelGeometry", GeometryFile = "${OPENSPACE_DATA}/scene/dawn/obj/solarpanelright.obj", }, - Textures = { - Type = "simple", - Color = "textures/gray.png", - }, + ColorTexture = "textures/gray.png", Rotation = { Source = "DAWN_SA+Y", Destination = "GALACTIC" @@ -703,7 +694,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "DAWN", + Target = "DAWN", Observer = "SUN", }, Color = { 0.7, 0.4, 0.9 }, diff --git a/data/scene/missions/dawn/vestaprojection/vestaprojection.mod b/data/scene/missions/dawn/vestaprojection/vestaprojection.mod index f0b8cc87b6..379d0272c2 100644 --- a/data/scene/missions/dawn/vestaprojection/vestaprojection.mod +++ b/data/scene/missions/dawn/vestaprojection/vestaprojection.mod @@ -11,9 +11,9 @@ return { Type = "MultiModelGeometry", GeometryFile = "${OPENSPACE_DATA}/scene/vestaprojection_2/obj/VestaComet_5000.obj", }, + ColorTexture = "textures/dummy.jpg", Textures = { Type = "simple", - Color = "textures/dummy.jpg", Project = "textures/projectMe.png", Default = "textures/defaultProj_backup.png" }, @@ -103,7 +103,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "VESTA", + Target = "VESTA", Observer = "SUN", }, Color = { 0.7, 0.8, 0.7 }, diff --git a/data/scene/missions/juno/juno/juno.mod b/data/scene/missions/juno/juno/juno.mod index 823c8f9339..8ef710ddcc 100644 --- a/data/scene/missions/juno/juno/juno.mod +++ b/data/scene/missions/juno/juno/juno.mod @@ -13,10 +13,7 @@ return { GeometryFile = "Juno.obj", Magnification = 4, }, - Textures = { - Type = "simple", - Color = "textures/gray.png", - }, + ColorTexture = "textures/gray.png", Rotation = { Source = "JUNO_SPACECRAFT", Destination = "GALACTIC", @@ -129,7 +126,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "JUNO", + Target = "JUNO", Observer = "JUPITER BARYCENTER" }, Color = { 0.70, 0.50, 0.20 }, diff --git a/data/scene/missions/newhorizons/jupiter/callisto/callisto.mod b/data/scene/missions/newhorizons/jupiter/callisto/callisto.mod index 3a51e4c5bb..25facc74d4 100644 --- a/data/scene/missions/newhorizons/jupiter/callisto/callisto.mod +++ b/data/scene/missions/newhorizons/jupiter/callisto/callisto.mod @@ -15,9 +15,9 @@ return { Radius = callisto_radius, Segments = 100 }, + ColorTexture = "textures/callisto.jpg", Textures = { Type = "simple", - Color = "textures/callisto.jpg", Project = "textures/defaultProj.png", Sequencing = "true", }, @@ -45,7 +45,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "CALLISTO", + Target = "CALLISTO", Observer = "JUPITER BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -88,7 +88,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "CALLISTO", + Target = "CALLISTO", Observer = "JUPITER BARYCENTER", }, Color = { 0.4, 0.3, 0.01 }, diff --git a/data/scene/missions/newhorizons/jupiter/europa/europa.mod b/data/scene/missions/newhorizons/jupiter/europa/europa.mod index 37a137fdb0..8d0fbe1039 100644 --- a/data/scene/missions/newhorizons/jupiter/europa/europa.mod +++ b/data/scene/missions/newhorizons/jupiter/europa/europa.mod @@ -15,9 +15,9 @@ return { Radius = europa_radius, Segments = 100 }, + ColorTexture = "textures/europa.jpg", Textures = { Type = "simple", - Color = "textures/europa.jpg", Project = "textures/defaultProj.png", Sequencing = "true", }, @@ -45,7 +45,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "EUROPA", + Target = "EUROPA", Observer = "JUPITER BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -88,7 +88,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "EUROPA", + Target = "EUROPA", Observer = "JUPITER BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, diff --git a/data/scene/missions/newhorizons/jupiter/ganymede/ganymede.mod b/data/scene/missions/newhorizons/jupiter/ganymede/ganymede.mod index 9d16289f9b..fe5facac2b 100644 --- a/data/scene/missions/newhorizons/jupiter/ganymede/ganymede.mod +++ b/data/scene/missions/newhorizons/jupiter/ganymede/ganymede.mod @@ -15,9 +15,9 @@ return { Radius = ganymede_local, Segments = 100 }, + ColorTexture = "textures/ganymede.jpg", Textures = { Type = "simple", - Color = "textures/ganymede.jpg", Project = "textures/defaultProj.png", Sequencing = "true", }, @@ -45,7 +45,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "GANYMEDE", + Target = "GANYMEDE", Observer = "JUPITER BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -82,7 +82,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "GANYMEDE", + Target = "GANYMEDE", Observer = "JUPITER BARYCENTER", }, Color = { 0.4, 0.3, 0.3 }, diff --git a/data/scene/missions/newhorizons/jupiter/io/io.mod b/data/scene/missions/newhorizons/jupiter/io/io.mod index 60ed022544..c8bc937554 100644 --- a/data/scene/missions/newhorizons/jupiter/io/io.mod +++ b/data/scene/missions/newhorizons/jupiter/io/io.mod @@ -15,9 +15,9 @@ return { Radius = io_radius, Segments = 100 }, + ColorTexture = "textures/io.jpg", Textures = { Type = "simple", - Color = "textures/io.jpg", Project = "textures/defaultProj.png", Sequencing = "true", }, @@ -45,7 +45,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "IO", + Target = "IO", Observer = "JUPITER BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -98,7 +98,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "IO", + Target = "IO", Observer = "JUPITER BARYCENTER", }, Color = { 0.4, 0.4, 0.2 }, diff --git a/data/scene/missions/newhorizons/jupiter/jupiter/jupiter.mod b/data/scene/missions/newhorizons/jupiter/jupiter/jupiter.mod index f4fbe278f0..f611aa5542 100644 --- a/data/scene/missions/newhorizons/jupiter/jupiter/jupiter.mod +++ b/data/scene/missions/newhorizons/jupiter/jupiter/jupiter.mod @@ -8,7 +8,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", + Target = "JUPITER BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -28,9 +28,9 @@ return { Radius = jupiter_local, Segments = 200, }, + ColorTexture = "textures/jupiterFlipped_low.jpg", Textures = { Type = "simple", - Color = "textures/jupiterFlipped_low.jpg", Project = "textures/lorriTest1.jpg", Sequencing = "true", }, @@ -125,7 +125,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "JUPITER BARYCENTER", + Target = "JUPITER BARYCENTER", Observer = "SUN", }, Color = { 0.8, 0.7, 0.7 }, diff --git a/data/scene/missions/newhorizons/newhorizons/newhorizons.mod b/data/scene/missions/newhorizons/newhorizons/newhorizons.mod index 3e00eac771..d15b46d79d 100644 --- a/data/scene/missions/newhorizons/newhorizons/newhorizons.mod +++ b/data/scene/missions/newhorizons/newhorizons/newhorizons.mod @@ -74,7 +74,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "NEW HORIZONS", + Target = "NEW HORIZONS", Observer = "SUN", Kernels = NewHorizonsKernels }, @@ -98,10 +98,7 @@ return { GeometryFile = "models/NewHorizonsCleanModel.obj", -- Magnification = 4, }, - Textures = { - Type = "simple", - Color = "textures/NHTexture.jpg", - }, + ColorTexture = "textures/NHTexture.jpg", Shading = { PerformShading = true, Fadeable = false, @@ -145,9 +142,9 @@ return { GeometryFile = "models/Labels.obj", -- Magnification = 4, }, + ColorTexture = "textures/labels.png", Textures = { Type = "simple", - Color = "textures/labels.png", BumpMap = "textures/goldfoilbump.tif" }, Rotation = { @@ -168,7 +165,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "NEW HORIZONS", + Target = "NEW HORIZONS", Observer = "PLUTO BARYCENTER" }, Color = { 1.0, 0.8, 0.4 }, diff --git a/data/scene/missions/newhorizons/pluto/charon/charon.mod b/data/scene/missions/newhorizons/pluto/charon/charon.mod index 1813547e25..2f611209cb 100644 --- a/data/scene/missions/newhorizons/pluto/charon/charon.mod +++ b/data/scene/missions/newhorizons/pluto/charon/charon.mod @@ -31,10 +31,8 @@ return { Radius = charon_radius, Segments = 100 }, - Textures = { - Color = ColorTexture, - Height = "textures/cpdem-Mcolor2-MLorriCA-lr-5_ZMfs-cyl.jpg", - }, + ColorTexture = ColorTexture, + HeightTexture = "textures/cpdem-Mcolor2-MLorriCA-lr-5_ZMfs-cyl.jpg", Projection = { Observer = "NEW HORIZONS", Target = "CHARON", @@ -60,7 +58,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "CHARON", + Target = "CHARON", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -99,7 +97,6 @@ return { Observer = "NEW HORIZONS", Body = "CHARON", BodyFrame = "IAU_CHARON", - MainFrame = "GALACTIC", Aberration = "NONE", }, }, @@ -111,7 +108,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "CHARON", + Target = "CHARON", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, diff --git a/data/scene/missions/newhorizons/pluto/hydra/hydra.mod b/data/scene/missions/newhorizons/pluto/hydra/hydra.mod index 9418f4ceb4..b6d7101c42 100644 --- a/data/scene/missions/newhorizons/pluto/hydra/hydra.mod +++ b/data/scene/missions/newhorizons/pluto/hydra/hydra.mod @@ -25,15 +25,12 @@ return { Radius = charon_radius, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/gray.jpg", - } + ColorTexture = "textures/gray.jpg", }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "HYDRA", + Target = "HYDRA", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -69,7 +66,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "HYDRA", + Target = "HYDRA", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, diff --git a/data/scene/missions/newhorizons/pluto/kerberos/kerberos.mod b/data/scene/missions/newhorizons/pluto/kerberos/kerberos.mod index 9dab2c556f..f75c930f0d 100644 --- a/data/scene/missions/newhorizons/pluto/kerberos/kerberos.mod +++ b/data/scene/missions/newhorizons/pluto/kerberos/kerberos.mod @@ -25,15 +25,12 @@ return { Radius = kerberos_radius, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/gray.jpg", - } + ColorTexture = "textures/gray.jpg", }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "KERBEROS", + Target = "KERBEROS", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -69,7 +66,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "KERBEROS", + Target = "KERBEROS", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, diff --git a/data/scene/missions/newhorizons/pluto/nix/nix.mod b/data/scene/missions/newhorizons/pluto/nix/nix.mod index 5ea9374cf0..f5c75c866f 100644 --- a/data/scene/missions/newhorizons/pluto/nix/nix.mod +++ b/data/scene/missions/newhorizons/pluto/nix/nix.mod @@ -25,15 +25,12 @@ return { Radius = nix_radius, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/gray.jpg", - } + ColorTexture = "textures/gray.jpg", }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "NIX", + Target = "NIX", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -63,7 +60,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "NIX", + Target = "NIX", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, diff --git a/data/scene/missions/newhorizons/pluto/pluto/pluto.mod b/data/scene/missions/newhorizons/pluto/pluto/pluto.mod index 4e54ff8b2a..5077ef65af 100644 --- a/data/scene/missions/newhorizons/pluto/pluto/pluto.mod +++ b/data/scene/missions/newhorizons/pluto/pluto/pluto.mod @@ -26,7 +26,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "PLUTO BARYCENTER", + Target = "PLUTO BARYCENTER", Observer = "SUN", Kernels = NewHorizonsKernels }, @@ -44,10 +44,8 @@ return { Radius = pluto_radius, Segments = 100 }, - Textures = { - Color = ColorTexture, - Height = "textures/pluto_shenk_heightmap.jpg", - }, + ColorTexture = ColorTexture, + HeightTexture = "textures/pluto_shenk_heightmap.jpg", Projection = { Sequence = "${OPENSPACE_DATA}/scene/missions/newhorizons/pluto/pluto/images", EventFile = "${OPENSPACE_DATA}/scene/missions/newhorizons/pluto/pluto/assets/core_v9h_obs_getmets_v8_time_fix_nofrcd_mld.txt", @@ -159,7 +157,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "PLUTO", + Target = "PLUTO", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -231,7 +229,6 @@ return { Observer = "NEW HORIZONS", Body = "PLUTO", BodyFrame = "IAU_PLUTO", - MainFrame = "GALACTIC", Aberration = "NONE", }, }, @@ -243,7 +240,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "PLUTO", + Target = "PLUTO", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, @@ -259,7 +256,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "PLUTO BARYCENTER", + Target = "PLUTO BARYCENTER", Observer = "SUN", }, Color = { 0.3, 0.7, 0.3 }, diff --git a/data/scene/missions/newhorizons/pluto/styx/styx.mod b/data/scene/missions/newhorizons/pluto/styx/styx.mod index da6e1bce05..3d157182e5 100644 --- a/data/scene/missions/newhorizons/pluto/styx/styx.mod +++ b/data/scene/missions/newhorizons/pluto/styx/styx.mod @@ -25,15 +25,12 @@ return { Radius = styx_radius, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/gray.jpg", - } + ColorTexture = "textures/gray.jpg", }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "STYX", + Target = "STYX", Observer = "PLUTO BARYCENTER", Kernels = NewHorizonsKernels }, @@ -70,7 +67,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "STYX", + Target = "STYX", Observer = "PLUTO BARYCENTER", }, Color = {0.00, 0.62, 1.00}, diff --git a/data/scene/missions/osirisrex/bennu/bennu.mod b/data/scene/missions/osirisrex/bennu/bennu.mod index d7718f66bb..ff099ce50e 100644 --- a/data/scene/missions/osirisrex/bennu/bennu.mod +++ b/data/scene/missions/osirisrex/bennu/bennu.mod @@ -10,7 +10,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = BENNU_BODY, + Target = BENNU_BODY, Observer = "SUN", }, }, @@ -100,7 +100,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = BENNU_BODY, + Target = BENNU_BODY, Observer = "SUN", }, Color = { 0.4, 0.0, 0.7}, diff --git a/data/scene/missions/osirisrex/osirisrex/osirisrex.mod b/data/scene/missions/osirisrex/osirisrex/osirisrex.mod index 12776ce226..8871183179 100644 --- a/data/scene/missions/osirisrex/osirisrex/osirisrex.mod +++ b/data/scene/missions/osirisrex/osirisrex/osirisrex.mod @@ -169,10 +169,7 @@ return { GeometryFile = "models/orx_base_resized_12_sep_2016.obj", Magnification = 0, }, - Textures = { - Type = "simple", - Color = "textures/osirisTex.png", - }, + ColorTexture = "textures/osirisTex.png", Shading = { PerformShading = true, Fadeable = false, @@ -182,7 +179,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "OSIRIS-REX", + Target = "OSIRIS-REX", Observer = "SUN", Kernels = OsirisRexKernels }, @@ -204,10 +201,7 @@ return { GeometryFile = "models/orx_polycam_resized_12_sep_2016.obj", Magnification = 0, }, - Textures = { - Type = "simple", - Color = "textures/osirisTex.png", - }, + ColorTexture = "textures/osirisTex.png", Shading = { PerformShading = true, Fadeable = false, @@ -237,10 +231,7 @@ return { GeometryFile = "models/orx_rexis_resized_12_sep_2016.obj", Magnification = 0, }, - Textures = { - Type = "simple", - Color = "textures/osirisTex.png", - }, + ColorTexture = "textures/osirisTex.png", Shading = { PerformShading = true, Fadeable = false, @@ -345,7 +336,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "OSIRIS-REX", + Target = "OSIRIS-REX", Frame = "IAU_EARTH", Observer = "EARTH", }, @@ -364,7 +355,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "OSIRIS-REX", + Target = "OSIRIS-REX", Observer = "SUN", }, Color = { 0.2, 0.9, 0.2 }, @@ -382,7 +373,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "OSIRIS-REX", + Target = "OSIRIS-REX", Observer = BENNU_BODY, }, Color = { 0.9, 0.2, 0.9 }, diff --git a/data/scene/missions/rosetta/67P/67P.mod b/data/scene/missions/rosetta/67P/67P.mod index a039c22b4d..ca06b45f03 100644 --- a/data/scene/missions/rosetta/67P/67P.mod +++ b/data/scene/missions/rosetta/67P/67P.mod @@ -6,7 +6,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "CHURYUMOV-GERASIMENKO", + Target = "CHURYUMOV-GERASIMENKO", Observer = "SUN", }, }, @@ -22,10 +22,7 @@ return { GeometryFile = "obj/67P_rotated_5_130.obj", Magnification = 0, }, - Textures = { - Color = "textures/gray.jpg", - -- Color = "textures/may9_map.jpg", - }, + ColorTexture = "textures/gray.jpg", Projection = { Sequence = "rosettaimages", SequenceType = "image-sequence", @@ -90,7 +87,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "CHURYUMOV-GERASIMENKO", + Target = "CHURYUMOV-GERASIMENKO", Observer = "SUN", }, Color = { 0.1, 0.9, 0.2 }, diff --git a/data/scene/missions/rosetta/rosetta/rosetta.mod b/data/scene/missions/rosetta/rosetta/rosetta.mod index 930a4941df..fecc927266 100644 --- a/data/scene/missions/rosetta/rosetta/rosetta.mod +++ b/data/scene/missions/rosetta/rosetta/rosetta.mod @@ -48,7 +48,7 @@ RosettaKernels = { "${OPENSPACE_DATA}/spice/Rosetta/PCK/ROS_CGS_RSOC_V03.TPC", } -RotationMatrix = { +local RotationMatrix = { 0, 1, 0, 0, 0, 1, 1, 0, 0 @@ -63,7 +63,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "ROSETTA", + Target = "ROSETTA", Observer = "SUN", Kernels = RosettaKernels }, @@ -95,11 +95,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/black_foil.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_silver_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } + ColorTexture = "textures/foil_silver_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -112,11 +109,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/black_parts.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_silver_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } + ColorTexture = "textures/foil_silver_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -129,20 +123,9 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/dish.obj" }, - Textures = { - Type = "simple", - Color = "textures/dish_AO.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/dish_AO.png", + ModelTransform = RotationMatrix }, - -- Transform = { - -- Rotation = { - -- Type = "SpiceRotation", - -- SourceFrame = "-226071", -- ROS_HGA - -- DestinationFrame = "ROS_SPACECRAFT", - -- } - -- } }, { Name = "Rosetta_parts", @@ -154,12 +137,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/parts.obj" }, - Textures = { - Type = "simple", - Color = "textures/parts2_AO.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/parts2_AO.png", + ModelTransform = RotationMatrix } }, { @@ -172,12 +151,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/silver_foil.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_silver_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/foil_silver_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -190,12 +165,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/vents.obj" }, - Textures = { - Type = "simple", - Color = "textures/tex_01.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/tex_01.png", + ModelTransform = RotationMatrix } }, { @@ -208,20 +179,9 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/wingA.obj" }, - Textures = { - Type = "simple", - Color = "textures/tex_01.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/tex_01.png", + ModelTransform = RotationMatrix }, - -- Transform = { - -- Rotation = { - -- Type = "SpiceRotation", - -- SourceFrame = "-226015", -- ROS_SA - -- DestinationFrame = "ROS_SPACECRAFT", - -- } - -- } }, { Name = "Rosetta_wing_b", @@ -233,12 +193,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/wingB.obj" }, - Textures = { - Type = "simple", - Color = "textures/tex_01.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/tex_01.png", + ModelTransform = RotationMatrix }, -- Transform = { -- Rotation = { @@ -258,12 +214,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/yellow_foil.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_gold_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/foil_gold_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -274,7 +226,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "PHILAE", + Target = "PHILAE", Observer = "CHURYUMOV-GERASIMENKO", Kernels = RosettaKernels }, @@ -300,12 +252,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/lander_foil.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_silver_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/foil_silver_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -318,12 +266,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/lander_lids.obj" }, - Textures = { - Type = "simple", - Color = "textures/parts2_AO.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/parts2_AO.png", + ModelTransform = RotationMatrix } }, { @@ -336,12 +280,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/lander_parts.obj" }, - Textures = { - Type = "simple", - Color = "textures/foil_silver_ramp.png" - }, - Rotation = { ModelTransform = RotationMatrix } - + ColorTexture = "textures/foil_silver_ramp.png", + ModelTransform = RotationMatrix } }, { @@ -354,11 +294,8 @@ return { Type = "MultiModelGeometry", GeometryFile = "rosetta/lander_solarp.obj" }, - Textures = { - Type = "simple", - Color = "textures/tex_01.png" - }, - Rotation = { ModelTransform = RotationMatrix } + ColorTexture = "textures/tex_01.png", + ModelTransform = RotationMatrix } }, { @@ -368,7 +305,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "ROSETTA", + Target = "ROSETTA", Observer = "CHURYUMOV-GERASIMENKO", }, Color = { 0.288, 0.375, 0.934 }, @@ -384,7 +321,7 @@ return { Type = "RenderableTrailTrajectory", Translation = { Type = "SpiceTranslation", - Body = "PHILAE", + Target = "PHILAE", Observer = "CHURYUMOV-GERASIMENKO", }, Color = { 0.8, 0.5, 1.0 }, diff --git a/data/scene/lodglobes/moon/map_service_configs/OnMoonColor.xml b/data/scene/moon/map_service_configs/OnMoonColor.xml similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/OnMoonColor.xml rename to data/scene/moon/map_service_configs/OnMoonColor.xml diff --git a/data/scene/lodglobes/moon/map_service_configs/OnMoonHeight.xml b/data/scene/moon/map_service_configs/OnMoonHeight.xml similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/OnMoonHeight.xml rename to data/scene/moon/map_service_configs/OnMoonHeight.xml diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/ClemUvvis.wms b/data/scene/moon/map_service_configs/Utah/ClemUvvis.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/ClemUvvis.wms rename to data/scene/moon/map_service_configs/Utah/ClemUvvis.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/Kaguya.wms b/data/scene/moon/map_service_configs/Utah/Kaguya.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/Kaguya.wms rename to data/scene/moon/map_service_configs/Utah/Kaguya.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/LolaClrShade.wms b/data/scene/moon/map_service_configs/Utah/LolaClrShade.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/LolaClrShade.wms rename to data/scene/moon/map_service_configs/Utah/LolaClrShade.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/LolaDem.wms b/data/scene/moon/map_service_configs/Utah/LolaDem.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/LolaDem.wms rename to data/scene/moon/map_service_configs/Utah/LolaDem.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/LolaShade.wms b/data/scene/moon/map_service_configs/Utah/LolaShade.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/LolaShade.wms rename to data/scene/moon/map_service_configs/Utah/LolaShade.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/UvvisHybrid.wms b/data/scene/moon/map_service_configs/Utah/UvvisHybrid.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/UvvisHybrid.wms rename to data/scene/moon/map_service_configs/Utah/UvvisHybrid.wms diff --git a/data/scene/lodglobes/moon/map_service_configs/Utah/Wac.wms b/data/scene/moon/map_service_configs/Utah/Wac.wms similarity index 100% rename from data/scene/lodglobes/moon/map_service_configs/Utah/Wac.wms rename to data/scene/moon/map_service_configs/Utah/Wac.wms diff --git a/data/scene/moon/moon.data b/data/scene/moon/moon.data deleted file mode 100644 index f8c7094165..0000000000 --- a/data/scene/moon/moon.data +++ /dev/null @@ -1,5 +0,0 @@ -return { - FileRequest = { - { Identifier = "moon_textures", Destination = "textures", Version = 1 } - }, -} \ No newline at end of file diff --git a/data/scene/moon/moon.mod b/data/scene/moon/moon.mod index 534adf617c..6c441d2b7b 100644 --- a/data/scene/moon/moon.mod +++ b/data/scene/moon/moon.mod @@ -1,46 +1,56 @@ return { -- Moon module - { + { Name = "Moon", Parent = "EarthBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_MOON", - Body = "MOON", - Geometry = { - Type = "SimpleSphere", - Radius = 1.737E6, - Segments = 100 - }, - Shadow_Group = { - Source1 = { - Name = "Sun", - Radius = 696.3E6 - }, - Caster1 = { - Name = "Earth", - Radius = 6.371E6 - }, - }, - Textures = { - Type = "simple", - Color = "textures/Moon16K.dds", - --Color = "textures/moonmap4k.jpg", - }, - }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "MOON", + Target = "MOON", Observer = "EARTH BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_MOON", - DestinationFrame = "ECLIPJ2000" - }, + DestinationFrame = "GALACTIC" + } }, + Renderable = { + Type = "RenderableGlobe", + Radii = 1738140, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "OnMoonColorGrayscale", + FilePath = "map_service_configs/OnMoonColor.xml", + Enabled = true, + }, + { + Name = "ClemUvvis", + FilePath = "map_service_configs/Utah/ClemUvvis.wms" + }, + { + Name = "Kaguya", + FilePath = "map_service_configs/Utah/Kaguya.wms" + }, + { + Name = "WAC", + FilePath = "map_service_configs/Utah/Wac.wms" + } + }, + HeightLayers = { + { + Name = "LolaDem", + FilePath = "map_service_configs/Utah/LolaDem.wms", + Enabled = true, + TilePixelSize = 64, + Settings = { Multiplier = 0.5 }, + } + } + } + } }, -- MoonTrail module { @@ -50,12 +60,12 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "MOON", - Observer = "EARTH BARYCENTER", + Target = "MOON", + Observer = "EARTH BARYCENTER" }, Color = { 0.5, 0.3, 0.3 }, Period = 27, Resolution = 1000 - }, + } } } diff --git a/data/scene/neptune/neptune.mod b/data/scene/neptune/neptune.mod index 38e698c9ea..57448d3042 100644 --- a/data/scene/neptune/neptune.mod +++ b/data/scene/neptune/neptune.mod @@ -1,50 +1,46 @@ return { - -- Neptune barycenter module + -- Barycenter module { Name = "NeptuneBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "NEPTUNE BARYCENTER", + Target = "NEPTUNE BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" } } }, - - -- Neptune module + -- RenderableGlobe module { Name = "Neptune", Parent = "NeptuneBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_NEPTUNE", - Body = "NEPTUNE BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 2.4622E7, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/neptune.jpg", - } - }, - Tag = "planet_solarSystem", Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_NEPTUNE", DestinationFrame = "GALACTIC" - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - } + } + }, + Renderable = { + Type = "RenderableGlobe", + Radii = { 24764000, 24764000, 24314000 }, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Texture", + FilePath = "textures/neptune.jpg", + Enabled = true + } + } + } + }, + Tag = { "planet_solarSystem", "planet_giants" }, + }, - -- NeptuneTrail module + -- Trail module { Name = "NeptuneTrail", Parent = "SolarSystemBarycenter", @@ -52,13 +48,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "NEPTUNE BARYCENTER", - Observer = "SUN", + Target = "NEPTUNE BARYCENTER", + Observer = "SUN" }, Color = {0.2, 0.5, 1.0 }, Period = 60200, - Resolution = 1000, - Tag = "planetTrail_solarSystem" - } + Resolution = 1000 + }, + Tag = { "planetTrail_solarSystem", "planetTrail_giants" } } } diff --git a/data/scene/newhorizons.scene b/data/scene/newhorizons.scene index 7dc39df870..267a88e5d5 100644 --- a/data/scene/newhorizons.scene +++ b/data/scene/newhorizons.scene @@ -16,7 +16,139 @@ function preInitialization() openspace.time.setTime("2015-07-14T10:05:00.00") - dofile(openspace.absPath('${SCRIPTS}/bind_keys_newhorizons.lua')) + -- Load the common helper functions + dofile(openspace.absPath('${SCRIPTS}/common.lua')) + + openspace.clearKeys() + helper.setCommonKeys() + helper.setDeltaTimeKeys({ + 1, 5, 10, 20, 40, 60, 120, 360, 540, 1080, + 2160, 4320, 8640 + }) + + openspace.bindKey( + "a", + "openspace.setPropertyValue('Interaction.origin', 'NewHorizons')", + "Sets the focus of the camera on 'NewHorizons'." + ) + openspace.bindKey( + "s", + "openspace.setPropertyValue('Interaction.origin', 'Pluto')", + "Sets the focus of the camera on 'Pluto'" + ) + openspace.bindKey( + "d", + "openspace.setPropertyValue('Interaction.origin', 'Charon')", + "Sets the focus of the camera on 'Charon'." + ) + openspace.bindKey( + "z", + "openspace.setPropertyValue('Interaction.origin', 'JupiterProjection')", + "Sets the focus of the camera on 'Jupiter'." + ) + openspace.bindKey( + "x", + "openspace.setPropertyValue('Interaction.origin', 'Europa')", + "Sets the focus of the camera on 'Europa'." + ) + + openspace.bindKey( + "F8", + "openspace.setPropertyValue('Pluto.renderable.ProjectionComponent.clearAllProjections', true);" .. + "openspace.setPropertyValue('Charon.renderable.ProjectionComponent.clearAllProjections', true);", + "Removes all image projections from Pluto and Charon." + ) + + openspace.bindKey( + "F9", + "openspace.time.setTime('2015-07-14T09:00:00.00');" .. + "openspace.setPropertyValue('Pluto.renderable.clearAllProjections', true);" .. + "openspace.setPropertyValue('Charon.renderable.clearAllProjections', true);", + "Jumps to the 14th of July 2015 at 0900 UTC and clears all projections." + ) + + openspace.bindKey( + "KP_8", + helper.property.increment('Pluto.renderable.heightExaggeration', 0.1), + "Increases the height map exaggeration on Pluto." + ) + openspace.bindKey( + "KP_2", + helper.property.decrement('Pluto.renderable.heightExaggeration', 0.1), + "Decreases the height map exaggeration on Pluto." + ) + openspace.bindKey( + "KP_9", + helper.property.increment('Charon.renderable.heightExaggeration', 2), + "Increases the height map exaggeration on Charon." + ) + openspace.bindKey( + "KP_3", + helper.property.decrement('Charon.renderable.heightExaggeration', 2), + "Decreases the height map exaggeration on Charon." + ) + + openspace.bindKey( + "q", + helper.property.invert('SunMarker.renderable.enabled'), + "Toggles the visibility of the text marking the location of the Sun." + ) + openspace.bindKey( + "e", + helper.property.invert('EarthMarker.renderable.enabled'), + "Toggles the visibility of the text marking the location of the Earth." + ) + openspace.bindKey( + "o", + helper.property.invert('PlutoTrail.renderable.enabled'), + "Toggles the visibility of the trail behind Pluto." + ) + + openspace.bindKey( + "j", + helper.renderable.toggle('PlutoText') .. helper.renderable.toggle('CharonText') .. + helper.renderable.toggle('HydraText') .. helper.renderable.toggle('NixText') .. + helper.renderable.toggle('KerberosText') .. helper.renderable.toggle('StyxText'), + "Toggles the visibility of the text labels of Pluto, Charon, Hydra, Nix, Kerberos, and Styx." + ) + + openspace.bindKey( + "l", + helper.property.invert('Labels.renderable.performFading'), + "Toggles the visibility of the labels for the New Horizons instruments." + ) + + openspace.bindKey("m", + helper.property.invert('NH_LORRI.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_LEISA.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_PAN1.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_PAN2.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_RED.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_BLUE.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_FT.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_METHANE.renderable.solidDraw') .. + helper.property.invert('NH_RALPH_MVIC_NIR.renderable.solidDraw') .. + helper.property.invert('NH_ALICE_AIRGLOW.renderable.solidDraw') .. + helper.property.invert('NH_ALICE_SOC.renderable.solidDraw'), + "Draws the instrument field of views in a solid color or as lines." + ) + + openspace.bindKey( + "t", + helper.renderable.toggle('PlutoShadow') .. helper.renderable.toggle('CharonShadow'), + "Toggles the visibility of the shadow visualization of Pluto and Charon." + ) + + openspace.bindKey("p", + helper.property.invert('JupiterProjection.renderable.performProjection') .. + helper.property.invert('Io.renderable.performProjection') .. + helper.property.invert('Ganymede.renderable.performProjection') .. + helper.property.invert('Europa.renderable.performProjection') .. + helper.property.invert('Callisto.renderable.performProjection') .. + helper.property.invert('Pluto.renderable.performProjection') .. + helper.property.invert('Charon.renderable.performProjection'), + "Enables or disables the image projection on the different available objects." + ) end function postInitialization() @@ -56,10 +188,10 @@ return { "saturn/saturn", "uranus", "neptune", - "stars", - -- "stars-denver", - "milkyway", - -- "milkyway-eso", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "missions/newhorizons/pluto", "missions/newhorizons/jupiter", "missions/newhorizons/newhorizons", diff --git a/data/scene/osirisrex.scene b/data/scene/osirisrex.scene index b869051f7b..0902c47df5 100644 --- a/data/scene/osirisrex.scene +++ b/data/scene/osirisrex.scene @@ -12,13 +12,68 @@ function preInitialization() openspace.spice.loadKernel("${SPICE}/naif0012.tls") openspace.spice.loadKernel("${SPICE}/pck00010.tpc") - dofile(openspace.absPath('${SCRIPTS}/bind_keys_osirisrex.lua')) - --local startTime = "2019 APR 16 12:03:00.00" openspace.time.setTime("2016 SEP 8 23:00:00.500") - openspace.scriptScheduler.loadFile("${OPENSPACE_DATA}/scene/missions/osirisrex/scheduled_scripts.lua") + -- Load the common helper functions + dofile(openspace.absPath('${SCRIPTS}/common.lua')) + dofile(openspace.absPath('${SCRIPTS}/bind_common_keys.lua')) + -- Set focuses + openspace.bindKey( + "a", + "openspace.setPropertyValue('Interaction.origin', 'OsirisRex')", + "Sets the focus of the camera on 'Osiris Rex'." + ) + openspace.bindKey( + "s", + "openspace.setPropertyValue('Interaction.origin', 'BennuBarycenter')", + "Sets the focus of the camera on 'Bennu'." + ) + + openspace.bindKey( + "F6" , + "openspace.printInfo('Set time: Launch');openspace.time.setTime('2016 SEP 08 23:05:00');", + "Sets the time to the launch." + ) + openspace.bindKey( + "F7", + "openspace.printInfo('Set time: Gravity Assist');openspace.time.setTime('2017 SEP 22 15:00:00');", + "Sets the time to the Earth gravity assist." + ) + openspace.bindKey( + "F8", + "openspace.printInfo('Set time: Approach');openspace.time.setTime('2018-SEP-11 21:31:01.183');", + "Sets the time to the approach at Bennu." + ) + openspace.bindKey( + "F9", + "openspace.printInfo('Set time: Preliminary Survey');openspace.time.setTime('2018-NOV-20 01:13:12.183');", + "Sets the time to the preliminary survey of Bennu." + ) + openspace.bindKey( + "F10", + "openspace.printInfo('Set time: Orbital B');openspace.time.setTime('2019-APR-08 10:35:27.186');", + "Sets the time to the orbital B event." + ) + openspace.bindKey( + "F11", + "openspace.printInfo('Set time: Recon');openspace.time.setTime('2019-MAY-25 03:50:31.195');", + "Sets the time to the recon event." + ) + + openspace.bindKey( + "q", + helper.property.invert('SunMarker.renderable.enabled'), + "Toggles the visibility of the text marking the location of the Sun." + ) + openspace.bindKey( + "e", + helper.property.invert('EarthMarker.renderable.enabled'), + "Toggles the visibility of the text marking the location of the Earth." + ) + + openspace.scriptScheduler.loadFile("${OPENSPACE_DATA}/scene/missions/osirisrex/scheduled_scripts.lua") end function postInitialization() @@ -68,10 +123,10 @@ return { "saturn", "uranus", "neptune", - "stars", - -- "stars-denver", - "milkyway", - -- "milkyway-eso", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "missions/osirisrex", } } diff --git a/data/scene/pluto/pluto.data b/data/scene/pluto/pluto.data deleted file mode 100644 index db86c15f8c..0000000000 --- a/data/scene/pluto/pluto.data +++ /dev/null @@ -1,7 +0,0 @@ -return { - FileRequest = { - { Identifier = "charon_textures", Destination = "textures", Version = 1 }, - { Identifier = "pluto_textures", Destination = "textures", Version = 4 }, - { Identifier = "pluto_spice", Destination = "${SPICE}", Version = 1 } - } -} \ No newline at end of file diff --git a/data/scene/pluto/pluto.mod b/data/scene/pluto/pluto.mod deleted file mode 100644 index 27f540d731..0000000000 --- a/data/scene/pluto/pluto.mod +++ /dev/null @@ -1,140 +0,0 @@ -return { - -- Pluto barycenter module - { - Name = "PlutoBarycenter", - Parent = "SolarSystemBarycenter", - Transform = { - Translation = { - Type = "SpiceTranslation", - Body = "PLUTO BARYCENTER", - Observer = "SUN", - Kernels = { - "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp", - "${OPENSPACE_DATA}/spice/plu055.bsp", - } - } - } - }, - -- Pluto module - { - Name = "Pluto", - Parent = "PlutoBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_PLUTO", - Body = "PLUTO", - Geometry = { - Type = "SimpleSphere", - Radius = 1.173E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/pluto.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Transformation = { - Translation = { - Type = "SpiceTranslation", - Body = "PLUTO", - Observer = "PLUTO BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/plu055.bsp", - }, - Rotation = { - Type = "Spice", - SourceFrame = "IAU_PLUTO", - DestinationFrame = "GALACTIC" - } - } - }, - { - Name = "Charon", - Parent = "PlutoBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_CHARON", - Body = "CHARON", - Geometry = { - Type = "SimpleSphere", - Radius = 6.035E5, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/gray.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Transformation = { - Translation = { - Type = "SpiceTranslation", - Body = "CHARON", - Observer = "PLUTO BARYCENTER", - Kernels = "${OPENSPACE_DATA}/spice/plu055.bsp", - }, - Rotation = { - Type = "Spice", - SourceFrame = "IAU_CHARON", - DestinationFrame = "GALACTIC" - } - } - }, - -- CharonTrail module - { - Name = "CharonTrail", - Parent = "PlutoBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "CHARON", - Observer = "PLUTO BARYCENTER", - }, - Color = {0.00,0.62,1.00}, - Period = 6.38725, - Resolution = 1000, - }, - }, - -- PlutoTrail module - { - Name = "PlutoTrailSolarSystem", - Parent = "SolarSystemBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "PLUTO BARYCENTER", - Observer = "SUN", - }, - Color = {0.58, 0.61, 1.00}, - Period = 247.92 * 365.242, - Resolution = 1000 - }, - GuiName = "/Solar/PlutoTrail" - }, - { - Name = "PlutoTrailPluto", - Parent = "PlutoBarycenter", - Renderable = { - Type = "RenderableTrailOrbit", - Translation = { - Type = "SpiceTranslation", - Body = "PLUTO", - Observer = "PLUTO BARYCENTER", - }, - Color = {0.58, 0.61, 1.00}, - Period = 6.38725, - Resolution = 1000 - }, - GuiName = "/Solar/PlutoTrail" - } -} diff --git a/data/scene/rosetta.scene b/data/scene/rosetta.scene index ce4c0213da..1c6727314c 100644 --- a/data/scene/rosetta.scene +++ b/data/scene/rosetta.scene @@ -18,7 +18,71 @@ function preInitialization() -- Shadow flyby -- openspace.time.setTime("2015-02-14T12:00:00.000") - dofile(openspace.absPath('${SCRIPTS}/bind_keys_rosetta.lua')) + -- Load the common helper functions + dofile(openspace.absPath('${SCRIPTS}/common.lua')) + + openspace.clearKeys() + helper.setCommonKeys() + + helper.setDeltaTimeKeys({ + 1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400, + 28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600 + }) + + openspace.bindKey( + "a", + "openspace.setPropertyValue('Interaction.origin', '67P')", + "Sets the focus of the camera on '67P'." + ) + openspace.bindKey( + "s", + "openspace.setPropertyValue('Interaction.origin', 'Rosetta')", + "Sets the focus of the camera on 'Rosetta'." + ) + + openspace.bindKey( + "F5", + "openspace.time.setTime('2014-08-01T03:05:18.101')", + "Jumps to the time of initial approach of Rosetta to 67P." + ) + openspace.bindKey( + "F6", + "openspace.time.setTime('2014-11-12T08:20:00.00')", + "Jumps to the time when the Philae lander is released." + ) + openspace.bindKey( + "F8", + "openspace.setPropertyValue('67P.renderable.ProjectionComponent.clearAllProjections', true)", + "Removes all image projections from 67P." + ) + + openspace.bindKey( + "i", + helper.renderable.toggle('ImagePlaneRosetta'), + "Toggles the visibility of the free floating image plane." + ) + openspace.bindKey( + "q", + helper.renderable.toggle('SunMarker'), + "Toggles the visibility of the text marking the location of the Sun." + ) + openspace.bindKey( + "e", + helper.renderable.toggle('JupiterTrail') .. helper.renderable.toggle('SaturnTrail') .. + helper.renderable.toggle('UranusTrail') .. helper.renderable.toggle('NeptuneTrail'), + "Toggles the visibility of all trails further from the Sun than 67P." + ) + openspace.bindKey( + "f", + helper.renderable.toggle('PhilaeTrail'), + "Toggles the visibility of Philae's trail." + ) + + openspace.bindKey( + "p", + helper.property.invert('67P.renderable.ProjectionComponent.performProjection'), + "Enables or disables the image projection on 67P." + ) end function postInitialization() @@ -58,8 +122,10 @@ return { "saturn/saturn", "uranus", -- "neptune", - "stars", - "milkyway", + "stars/digitaluniverse", + -- "stars/denver", + "milkyway/digitaluniverse", + --"milkyway/eso", "missions/rosetta", } } diff --git a/data/scene/satellites.scene b/data/scene/satellites.scene deleted file mode 100644 index 46cf989799..0000000000 --- a/data/scene/satellites.scene +++ /dev/null @@ -1,71 +0,0 @@ -function preInitialization() - --[[ - The scripts in this function are executed after the scene is loaded but before the - scene elements have been initialized, thus they should be used to set the time at - which the scene should start and other settings that might determine initialization - critical objects. - ]]-- - - openspace.spice.loadKernel("${SPICE}/naif0011.tls") - openspace.spice.loadKernel("${SPICE}/pck00010.tpc") - -- openspace.spice.loadKernel("${OPENSPACE_DATA}/spice/de430_1850-2150.bsp") - - openspace.time.setTime(openspace.time.currentWallTime()) - - --Test for vernal equinox time 2017 - --openspace.time.setTime("2017 MAR 20 10:28:30.500") - - dofile(openspace.absPath('${SCRIPTS}/bind_keys_satellites.lua')) -end - -function postInitialization() - --[[ - The scripts in this function are executed after all objects in the scene have been - created and initialized, but before the first render call. This is the place to set - graphical settings for the renderables. - ]]-- - openspace.printInfo("Setting default values") - openspace.setPropertyValue("SunMarker.renderable.Enabled", false) - openspace.setPropertyValue("SunGlare.renderable.Enabled", false) - openspace.setPropertyValue("MilkyWay.renderable.Enabled", false) - openspace.setPropertyValue("EarthMarker.renderable.Enabled", false) - openspace.setPropertyValue("EarthTrail.renderable.Enabled", false) - openspace.setPropertyValue("Earth.renderable.PerformShading", false) - - openspace.navigation.resetCameraDirection() - - openspace.printInfo("Done setting default values") - - if openspace.modules.isLoaded("ISWA") then - - openspace.iswa.addCdfFiles("${OPENSPACE_DATA}/cdflist.json"); - - --openspace.iswa.addCygnet(7); - - --openspace.iswa.addCygnet(-4,"Data","Gm"); - --openspace.iswa.addCygnet(-5,"Data","Gm"); - --openspace.iswa.addCygnet(-6,"Data","Gm"); - --openspace.iswa.addCygnet(-7,"Data","Gm"); - --openspace.iswa.addCygnet(-8,"Data","Gm"); - --openspace.iswa.addCygnet(-9,"Data","Gm"); - end -end - -return { - ScenePath = ".", - CommonFolder = "common", - Camera = { - Focus = "Earth", - Position = {-54343425747.129051, -73298476295.934555, 116584089130.590012}, - Rotation = {-0.078983, 0.830093, 0.014241, -0.551819}, - }, - Modules = { - --"satellites/earth", - "sun", - "earth", - -- "stars", - -- "milkyway", - "satellites" - } -} - diff --git a/data/scene/saturn/dione/dione.mod b/data/scene/saturn/dione/dione.mod index 477705ea2b..57517df105 100644 --- a/data/scene/saturn/dione/dione.mod +++ b/data/scene/saturn/dione/dione.mod @@ -3,22 +3,23 @@ return { Name = "Dione", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_DIONE", - Body = "DIONE", - Geometry = { - Type = "SimpleSphere", - Radius = 0.563E3, - Segments = 50 - }, - Textures = { - Color = "textures/dione.jpg" + Type = "RenderableGlobe", + Radii = 561400, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Dione Texture", + FilePath = "textures/dione.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "DIONE", + Target = "DIONE", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "DIONE", + Target = "DIONE", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/saturn/enceladus/enceladus.mod b/data/scene/saturn/enceladus/enceladus.mod index f49104d3ca..877ffd5ac1 100644 --- a/data/scene/saturn/enceladus/enceladus.mod +++ b/data/scene/saturn/enceladus/enceladus.mod @@ -3,22 +3,23 @@ return { Name = "Enceladus", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_ENCELADUS", - Body = "ENCELADUS", - Geometry = { - Type = "SimpleSphere", - Radius = 0.257E3, - Segments = 50 - }, - Textures = { - Color = "textures/enceladus.jpg" + Type = "RenderableGlobe", + Radii = 252000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Enceladus Texture", + FilePath = "textures/enceladus.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "ENCELADUS", + Target = "ENCELADUS", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "ENCELADUS", + Target = "ENCELADUS", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/saturn/iapetus/iapetus.mod b/data/scene/saturn/iapetus/iapetus.mod index 0bcc6b8c38..077282c537 100644 --- a/data/scene/saturn/iapetus/iapetus.mod +++ b/data/scene/saturn/iapetus/iapetus.mod @@ -3,22 +3,23 @@ return { Name = "Iapetus", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_IAPETUS", - Body = "IAPETUS", - Geometry = { - Type = "SimpleSphere", - Radius = 0.746E3, - Segments = 50 - }, - Textures = { - Color = "textures/iapetus.jpg" + Type = "RenderableGlobe", + Radii = 734000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Iapetus Texture", + FilePath = "textures/iapetus.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "IAPETUS", + Target = "IAPETUS", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "IAPETUS", + Target = "IAPETUS", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/saturn/mimas/mimas.mod b/data/scene/saturn/mimas/mimas.mod index 9f8e5242e6..3d4eb0bf4d 100644 --- a/data/scene/saturn/mimas/mimas.mod +++ b/data/scene/saturn/mimas/mimas.mod @@ -3,22 +3,23 @@ return { Name = "Mimas", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_MIMAS", - Body = "MIMAS", - Geometry = { - Type = "SimpleSphere", - Radius = 0.28E3, - Segments = 50 - }, - Textures = { - Color = "textures/mimas.jpg" + Type = "RenderableGlobe", + Radii = 198000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Mimas Texture", + FilePath = "textures/mimas.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "MIMAS", + Target = "MIMAS", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "MIMAS", + Target = "MIMAS", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, diff --git a/data/scene/saturn/rhea/rhea.mod b/data/scene/saturn/rhea/rhea.mod index 8bb6c61393..52e61ed44c 100644 --- a/data/scene/saturn/rhea/rhea.mod +++ b/data/scene/saturn/rhea/rhea.mod @@ -3,22 +3,23 @@ return { Name = "Rhea", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_RHEA", - Body = "RHEA", - Geometry = { - Type = "SimpleSphere", - Radius = 0.765E3, - Segments = 50 - }, - Textures = { - Color = "textures/rhea.jpg" + Type = "RenderableGlobe", + Radii = 765000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Rhea Texture", + FilePath = "textures/rhea.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "RHEA", + Target = "RHEA", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "RHEA", + Target = "RHEA", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/saturn/saturn/saturn.mod b/data/scene/saturn/saturn/saturn.mod index 675910faab..f597dfcdb3 100644 --- a/data/scene/saturn/saturn/saturn.mod +++ b/data/scene/saturn/saturn/saturn.mod @@ -6,11 +6,11 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "SATURN BARYCENTER", + Target = "SATURN BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" } - }, + } }, -- Saturn module @@ -18,36 +18,27 @@ return { Name = "Saturn", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_SATURN", - Body = "SATURN BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 5.8232E7, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/saturn.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} + Type = "RenderableGlobe", + Radii = { 60268000, 60268000, 54364000 }, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Saturn Texture", + FilePath = "textures/saturn.jpg", + Enabled = true + } + } } }, - Tag = "planet_solarSystem", + Tag = { "planet_solarSystem", "planet_giants" }, Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_SATURN", - DestinationFrame = "GALACTIC", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, - }, + DestinationFrame = "GALACTIC" + } + } }, { Name = "SaturnRings", @@ -57,9 +48,7 @@ return { Texture = "textures/saturn_rings.png", Size = 140220000, Offset = { 74500 / 140445.100671159, 1.0 } -- min / max extend - - }, - + } }, -- SaturnTrail module { @@ -69,13 +58,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "SATURN BARYCENTER", - Observer = "SUN", + Target = "SATURN BARYCENTER", + Observer = "SUN" }, Color = {0.85,0.75,0.51 }, Period = 10746.94, Resolution = 1000, - Tag = "planetTrail_solarSystem" }, + Tag = { "planetTrail_solarSystem", "planetTrail_giants" } } } diff --git a/data/scene/saturn/tethys/tethys.mod b/data/scene/saturn/tethys/tethys.mod index 8fe16fa3cd..c7c94548bc 100644 --- a/data/scene/saturn/tethys/tethys.mod +++ b/data/scene/saturn/tethys/tethys.mod @@ -3,22 +3,23 @@ return { Name = "Tethys", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_TETHYS", - Body = "TETHYS", - Geometry = { - Type = "SimpleSphere", - Radius = 0.538E3, - Segments = 50 - }, - Textures = { - Color = "textures/tethys.jpg" + Type = "RenderableGlobe", + Radii = 531100, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Tethys Texture", + FilePath = "textures/tethys.jpg", + Enabled = true + } + } } }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "TETHYS", + Target = "TETHYS", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "TETHYS", + Target = "TETHYS", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/saturn/titan/titan.mod b/data/scene/saturn/titan/titan.mod index 12cc0d6034..47f20679c7 100644 --- a/data/scene/saturn/titan/titan.mod +++ b/data/scene/saturn/titan/titan.mod @@ -3,22 +3,23 @@ return { Name = "Titan", Parent = "SaturnBarycenter", Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_TITAN", - Body = "TITAN", - Geometry = { - Type = "SimpleSphere", - Radius = 0.2575E4, - Segments = 50 - }, - Textures = { - Color = "textures/titan.jpg" + Type = "RenderableGlobe", + Radii = 2576000, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Titan Texture", + FilePath = "textures/titan.jpg", + Enabled = true + } + } } - }, + }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "TITAN", + Target = "TITAN", Observer = "SATURN BARYCENTER", Kernels = "${OPENSPACE_DATA}/spice/sat375.bsp" }, @@ -36,7 +37,7 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "TITAN", + Target = "TITAN", Observer = "SATURN BARYCENTER", }, Color = { 0.5, 0.3, 0.3 }, @@ -44,4 +45,4 @@ return { Resolution = 1000 } } -} \ No newline at end of file +} diff --git a/data/scene/stars-denver/stars-denver.data b/data/scene/stars/denver/denver.data similarity index 100% rename from data/scene/stars-denver/stars-denver.data rename to data/scene/stars/denver/denver.data diff --git a/data/scene/stars-denver/stars-denver.mod b/data/scene/stars/denver/denver.mod similarity index 100% rename from data/scene/stars-denver/stars-denver.mod rename to data/scene/stars/denver/denver.mod diff --git a/data/scene/stars/stars.data b/data/scene/stars/digitaluniverse/digitaluniverse.data similarity index 100% rename from data/scene/stars/stars.data rename to data/scene/stars/digitaluniverse/digitaluniverse.data diff --git a/data/scene/stars/stars.mod b/data/scene/stars/digitaluniverse/digitaluniverse.mod similarity index 100% rename from data/scene/stars/stars.mod rename to data/scene/stars/digitaluniverse/digitaluniverse.mod diff --git a/data/scene/sun/sun.mod b/data/scene/sun/sun.mod index 11b0e1516d..86d5516c68 100644 --- a/data/scene/sun/sun.mod +++ b/data/scene/sun/sun.mod @@ -24,16 +24,13 @@ return { Radius = 6.957E8, Segments = 100 }, - Textures = { - Type = "simple", - Color = "textures/sun.jpg", - }, + ColorTexture = "textures/sun.jpg", PerformShading = false, }, Transform = { Translation = { Type = "SpiceTranslation", - Body = "SUN", + Target = "SUN", Observer = "SSB", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" }, @@ -59,7 +56,7 @@ return { Transform = { Translation = { Type = "SpiceTranslation", - Body = "SUN", + Target = "SUN", Observer = "SSB", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" } diff --git a/data/scene/uranus/uranus.mod b/data/scene/uranus/uranus.mod index 28e4568118..648a60f943 100644 --- a/data/scene/uranus/uranus.mod +++ b/data/scene/uranus/uranus.mod @@ -1,56 +1,45 @@ return { - -- Uranus barycenter module + -- Barycenter module { Name = "UranusBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "URANUS BARYCENTER", + Target = "URANUS BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, + } } }, - - -- Uranus module + -- RenderableGlobe module { Name = "Uranus", Parent = "UranusBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_URANUS", - Body = "URANUS BARYCENTER", - Geometry = { - Type = "SimpleSphere", - Radius = 2.5362E7, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/uranus.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = "planet_solarSystem", Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_URANUS", - DestinationFrame = "ECLIPJ2000", - }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, + DestinationFrame = "GALACTIC" + } }, + Renderable = { + Type = "RenderableGlobe", + Radii = { 25559000, 25559000, 24973000 }, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Texture", + FilePath = "textures/uranus.jpg", + Enabled = true + } + } + } + }, + Tag = { "planet_solarSystem", "planet_giants" } }, - - -- UranusTrail module + -- Trail module { Name = "UranusTrail", Parent = "SolarSystemBarycenter", @@ -58,13 +47,13 @@ return { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "URANUS BARYCENTER", - Observer = "SUN", + Target = "URANUS BARYCENTER", + Observer = "SUN" }, Color = {0.60, 0.95, 1.00 }, Period = 30588.740, - Resolution = 1000, - Tag = "planetTrail_solarSystem" - } + Resolution = 1000 + }, + Tag = { "planetTrail_solarSystem", "planetTrail_giants" } } } diff --git a/data/scene/venus/venus.mod b/data/scene/venus/venus.mod index 7badb32f9c..60a095ad9d 100644 --- a/data/scene/venus/venus.mod +++ b/data/scene/venus/venus.mod @@ -1,70 +1,65 @@ return { - -- Venus barycenter module + -- Barycenter module { Name = "VenusBarycenter", Parent = "SolarSystemBarycenter", Transform = { Translation = { Type = "SpiceTranslation", - Body = "VENUS BARYCENTER", + Target = "VENUS BARYCENTER", Observer = "SUN", Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" - }, + } } }, - - -- Venus module + -- RenderableGlobe module { Name = "Venus", Parent = "VenusBarycenter", - Renderable = { - Type = "RenderablePlanet", - Frame = "IAU_VENUS", - Body = "VENUS", - Geometry = { - Type = "SimpleSphere", - Radius = 3.760E6, - Segments = 100 - }, - Textures = { - Type = "simple", - Color = "textures/venus.jpg", - }, - Atmosphere = { - Type = "Nishita", -- for example, values missing etc etc - MieFactor = 1.0, - MieColor = {1.0, 1.0, 1.0} - } - }, - Tag = {"planet_solarSystem", "planet_terrestrial"}, Transform = { Rotation = { Type = "SpiceRotation", SourceFrame = "IAU_VENUS", DestinationFrame = "GALACTIC" }, - Scale = { - Type = "StaticScale", - Scale = 1, - }, + Translation = { + Type = "SpiceTranslation", + Target = "VENUS", + Observer = "VENUS BARYCENTER", + Kernels = "${OPENSPACE_DATA}/spice/de430_1850-2150.bsp" + } }, + Renderable = { + Type = "RenderableGlobe", + Radii = { 6051900, 6051900, 6051800 }, + SegmentsPerPatch = 64, + Layers = { + ColorLayers = { + { + Name = "Venus Texture", + FilePath = "textures/venus.jpg", + Enabled = true + } + } + } + }, + Tag = { "planet_solarSystem", "planet_terrestrial" }, }, - - -- VenusTrail module - { + -- Trail module + { Name = "VenusTrail", Parent = "SolarSystemBarycenter", Renderable = { Type = "RenderableTrailOrbit", Translation = { Type = "SpiceTranslation", - Body = "VENUS BARYCENTER", - Observer = "SUN", + Target = "VENUS BARYCENTER", + Observer = "SUN" }, Color = { 1.0, 0.5, 0.2 }, Period = 224.695, - Resolution = 1000, - Tag = {"planetTrail_solarSystem", "planetTrail_terrestrial"} - } + Resolution = 1000 + }, + Tag = { "planetTrail_solarSystem", "planetTrail_terrestrial" } } } diff --git a/data/web/common/style.css b/data/web/common/style.css index ac82e9fe77..f785e54ff7 100644 --- a/data/web/common/style.css +++ b/data/web/common/style.css @@ -57,6 +57,10 @@ font-size: 0.9em; } +.documentation-documentation { + font-size: 0.9em; +} + .documentation-container { font-size: 1.2em; } diff --git a/data/web/properties/property.hbs b/data/web/properties/property.hbs index b01807229d..7a0bd7a430 100644 --- a/data/web/properties/property.hbs +++ b/data/web/properties/property.hbs @@ -10,6 +10,7 @@

{{fullyQualifiedId}} copy

+

{{description}}

diff --git a/ext/ghoul b/ext/ghoul index 1fc3d1f78d..de8da4af5e 160000 --- a/ext/ghoul +++ b/ext/ghoul @@ -1 +1 @@ -Subproject commit 1fc3d1f78dfd9227ee0068f388f96ea6b1b7bf9f +Subproject commit de8da4af5e21f2c7ca8e8a520e6ac98e522be42f diff --git a/include/openspace/documentation/documentation.h b/include/openspace/documentation/documentation.h index 852b8faa9b..1bc33344e3 100644 --- a/include/openspace/documentation/documentation.h +++ b/include/openspace/documentation/documentation.h @@ -37,7 +37,6 @@ namespace ghoul { class Dictionary; } namespace openspace::documentation { using Optional = ghoul::Boolean; -using Exhaustive = ghoul::Boolean; /** * The TestResult structure returns the information from the #testSpecification method. It @@ -162,7 +161,7 @@ struct DocumentationEntry { * \pre \p verifier must not be nullptr */ DocumentationEntry(std::string key, std::shared_ptr verifier, - std::string doc = "", Optional optional = Optional::No); + Optional optional, std::string doc = ""); /** * The constructor for a DocumentationEntry describing a \p key in a Documentation. @@ -185,8 +184,8 @@ struct DocumentationEntry { * \pre \p key must not be empty * \pre \p verifier must not be nullptr */ - DocumentationEntry(std::string key, Verifier* verifier, std::string doc = "", - Optional optional = Optional::No); + DocumentationEntry(std::string key, Verifier* verifier, Optional optional, + std::string doc = ""); /// The key that is described by this DocumentationEntry std::string key; @@ -204,11 +203,8 @@ struct DocumentationEntry { * used to impose restrictions on keys and values and determine whether a given * ghoul::Dictionary adheres to these specifications (see #testSpecification and * #testSpecificationAndThrow methods). Each Documentation consists of a human-readable - * \c name, a list of DocumentationEntry%s that each describe a single key value, and a - * flag whether these entries are Exhaustive or not. If a Documentation is Exhaustive, a - * ghoul::Dictionary that contains additional keys will fail the specification, whereas a - * non-exhaustive Documentation allow for other (potentially non used) keys. The most - * convenient way of creating a Documentation is by using nested initializer lists: + * \c name, and a list of DocumentationEntry%s that each describe a single key value. The + * most convenient way of creating a Documentation is by using nested initializer lists: *\verbatim Documentation doc = { "Documentation for an arbitrary dictionary", @@ -216,9 +212,8 @@ Documentation doc = { { "key1", new IntVerifier, "Documentation key1", Optional::Yes }, { "key2", new FloatVerifier, "Documentation key2" }, { "key3", new StringVerifier } - }, - Exhaustive::Yes -+; + } +}; \endverbatim * * If multiple DocumentationEntries cover the same key, they are all evaluated for that @@ -236,31 +231,23 @@ struct Documentation { * Documentation%s to reference this entry * \param entries A list of DocumentationEntry%s that describe the individual keys for * this entrie Documentation - * \param exhaustive Determines whether the \p entries are an exhaustive specification - * of the object or whether additional, potentially unused, keys are allowed */ - Documentation(std::string name, std::string id, DocumentationEntries entries = {}, - Exhaustive exhaustive = Exhaustive::No); + Documentation(std::string name, std::string id, DocumentationEntries entries = {}); /** * Creates a Documentation with a human-readable \p name. * \param name The human-readable name of this Documentation * \param entries A list of DocumentationEntry%s that describe the individual keys for * this entrie Documentation - * \param exhaustive Determines whether the \p entries are an exhaustive specification - * of the object or whether additional, potentially unused, keys are allowed */ - Documentation(std::string name, DocumentationEntries entries = {}, - Exhaustive exhaustive = Exhaustive::No); + Documentation(std::string name, DocumentationEntries entries = {}); /** * Creates a Documentation. * \param entries A list of DocumentationEntry%s that describe the individual keys for * this entrie Documentation - * \param exhaustive Determines whether the \p entries are an exhaustive specification - * of the object or whether additional, potentially unused, keys are allowed */ - Documentation(DocumentationEntries entries = {}, Exhaustive exhaustive = Exhaustive::No); + Documentation(DocumentationEntries entries = {}); /// The human-readable name of the Documentation std::string name; @@ -268,8 +255,6 @@ struct Documentation { std::string id; /// A list of specifications that are describing this Documentation DocumentationEntries entries; - /// A flag to say wheter the DocumentationEntries are an exhaustive description - Exhaustive exhaustive; }; /** diff --git a/include/openspace/documentation/verifier.h b/include/openspace/documentation/verifier.h index d82681b0e7..aacecf1e44 100644 --- a/include/openspace/documentation/verifier.h +++ b/include/openspace/documentation/verifier.h @@ -170,12 +170,8 @@ struct TableVerifier : public TemplateVerifier { * \param documentationEntries The DocumentationEntry%s that are used to recursively * test the ghoul::Dictionary that is contained inside. If this list is empty, only a * type check is performed - * \param exhaustive Whether the DocumentationEntry%s contained in - * \p documentationEntries completely describe the contained table or whether - * additional keys are allowed */ - TableVerifier(std::vector documentationEntries = {}, - Exhaustive exhaustive = Exhaustive::No); + TableVerifier(std::vector documentationEntries = {}); /** * Checks whether the \p key%'s value is a table (= ghoul::Dictionary) and (if @@ -197,9 +193,6 @@ struct TableVerifier : public TemplateVerifier { /// The documentations passed in the constructor std::vector documentations; - /// Flag that specifies whether the TableVerifier::documentation exhaustively - /// describes the table or whether additional keys are allowed - Exhaustive exhaustive; }; /** diff --git a/include/openspace/interaction/orbitalnavigator.h b/include/openspace/interaction/orbitalnavigator.h index eaf3c6277c..24a86b1a44 100644 --- a/include/openspace/interaction/orbitalnavigator.h +++ b/include/openspace/interaction/orbitalnavigator.h @@ -64,10 +64,16 @@ private: glm::dquat globalRotation; }; - // Properties - properties::BoolProperty _rollFriction; - properties::BoolProperty _rotationalFriction; - properties::BoolProperty _zoomFriction; + struct Friction : public properties::PropertyOwner { + Friction(); + + properties::BoolProperty roll; + properties::BoolProperty rotational; + properties::BoolProperty zoom; + }; + + Friction _friction; + properties::FloatProperty _followFocusNodeRotationDistance; properties::FloatProperty _minimumAllowedDistance; properties::FloatProperty _sensitivity; diff --git a/include/openspace/properties/numericalproperty.inl b/include/openspace/properties/numericalproperty.inl index 0c524a3b0c..79d2f13b23 100644 --- a/include/openspace/properties/numericalproperty.inl +++ b/include/openspace/properties/numericalproperty.inl @@ -27,7 +27,7 @@ namespace openspace::properties { #define REGISTER_NUMERICALPROPERTY_HEADER(CLASS_NAME, TYPE) \ - typedef NumericalProperty CLASS_NAME; \ + using CLASS_NAME = NumericalProperty; \ \ template <> \ std::string PropertyDelegate>::className(); \ diff --git a/include/openspace/properties/propertyowner.h b/include/openspace/properties/propertyowner.h index 693b7df1e6..ae4c4c3926 100644 --- a/include/openspace/properties/propertyowner.h +++ b/include/openspace/properties/propertyowner.h @@ -51,9 +51,14 @@ class PropertyOwner { public: /// The separator that is used while accessing the properties and/or sub-owners static const char URISeparator = '.'; + + struct PropertyOwnerInfo { + std::string name; + std::string description; + }; /// The constructor initializing the PropertyOwner's name to "" - PropertyOwner(std::string name = ""); + PropertyOwner(PropertyOwnerInfo info); /** * The destructor will remove all Propertys and PropertyOwners it owns along with @@ -75,7 +80,12 @@ public: * Returns the name of this PropertyOwner. * \return The name of this PropertyOwner */ - const std::string& name() const; + std::string name() const; + + void setDescription(std::string description); + + std::string description() const; + /** * Returns a list of all Propertys directly owned by this PropertyOwner. This list not @@ -223,6 +233,8 @@ public: private: /// The name of this PropertyOwner std::string _name; + /// The description for this PropertyOwner + std::string _description; /// The owner of this PropertyOwner PropertyOwner* _owner; /// A list of all registered Property's diff --git a/include/openspace/properties/selectionproperty.h b/include/openspace/properties/selectionproperty.h index ea59ad2d4d..84300f43b7 100644 --- a/include/openspace/properties/selectionproperty.h +++ b/include/openspace/properties/selectionproperty.h @@ -44,6 +44,11 @@ public: void removeOptions(); const std::vector