diff --git a/data/assets/scene/solarsystem/planets/earth/moon/layers/colorlayers/moon_texture.asset b/data/assets/scene/solarsystem/planets/earth/moon/layers/colorlayers/moon_texture.asset new file mode 100644 index 0000000000..d5f236e673 --- /dev/null +++ b/data/assets/scene/solarsystem/planets/earth/moon/layers/colorlayers/moon_texture.asset @@ -0,0 +1,41 @@ +local globe = asset.require("../../moon") + + + +local texturesPath = asset.syncedResource({ + Name = "Moon Textures", + Type = "HttpSynchronization", + Identifier = "moon_textures", + Version = 1 +}) + + +local Layer = { + Identifier = "Moon_Texture", + Name = "Moon Texture", + Enabled = asset.enabled, + FilePath = texturesPath .. "WAC_GLOBAL_E000N0000_032P.png", + Description = "Lower Resolution offline version of WAC layer" +} + + +asset.onInitialize(function() + openspace.globebrowsing.addLayer(globe.Moon.Identifier, "ColorLayers", Layer) +end) + +asset.onDeinitialize(function() + openspace.globebrowsing.deleteLayer(globe.Moon.Identifier, "ColorLayers", Layer) +end) + +asset.export("Layer", Layer) + + + +asset.meta = { + Name = "Moon Texture", + Version = "1.0", + Description = "Offline lower resolution version of Moon WAC layer, available for offline use", + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license" +} diff --git a/data/assets/scene/solarsystem/planets/mercury/layers/colorlayers/mercury_texture.asset b/data/assets/scene/solarsystem/planets/mercury/layers/colorlayers/mercury_texture.asset new file mode 100644 index 0000000000..9c507209f4 --- /dev/null +++ b/data/assets/scene/solarsystem/planets/mercury/layers/colorlayers/mercury_texture.asset @@ -0,0 +1,42 @@ +local globe = asset.require("../../mercury") + + + +local texturesPath = asset.syncedResource({ + Name = "Mercury Textures", + Type = "HttpSynchronization", + Identifier = "mercury_textures", + Version = 2 +}) + + +local Layer = { + Identifier = "Texture", + FilePath = texturesPath .. "Mercury_MESSENGER_MDIS_Basemap_BDR_Mosaic_Global_32ppd.jpg", + Enabled = asset.enabled, + Description = [[The Map Projected Basemap RDR (BDR) data set consists of a global + monochrome map of reflectance at a resolution of 256 pixels per degree (~166 m/p). + This is an offline version with lower resoution than the Messenger BDR layer.]] +} + + +asset.onInitialize(function() + openspace.globebrowsing.addLayer(globe.Mercury.Identifier, "ColorLayers", Layer) +end) + +asset.onDeinitialize(function() + openspace.globebrowsing.deleteLayer(globe.Mercury.Identifier, "ColorLayers", Layer) +end) + +asset.export("Layer", Layer) + + + +asset.meta = { + Name = "Mercury Texture", + Version = "1.0", + Description = "Default texture for Mercury", + Author = "OpenSpace Team", + URL = "http://openspaceproject.com", + License = "MIT license" +} diff --git a/data/profiles/offline.profile b/data/profiles/offline.profile new file mode 100644 index 0000000000..ac61b6fd1e --- /dev/null +++ b/data/profiles/offline.profile @@ -0,0 +1,90 @@ +{ + "assets": [ + "base_blank", + "customization/globebrowsing", + "events/toggle_sun", + "nightsky/nightsky", + "scene/digitaluniverse/digitaluniverse", + "scene/milkyway/constellations/constellation_art", + "scene/milkyway/constellations/constellation_keybinds", + "scene/milkyway/milkyway/volume", + "scene/solarsystem/dwarf_planets/pluto/system", + "scene/solarsystem/planets/earth/earth", + "scene/solarsystem/planets/earth/layers/colorlayers/blue_marble", + "scene/solarsystem/planets/earth/layers/heightlayers/blue_marble_height", + "scene/solarsystem/planets/earth/layers/nightlayers/earth_at_night_2012", + "scene/solarsystem/planets/earth/moon/layers/colorlayers/moon_texture", + "scene/solarsystem/planets/earth/noaa-sos/land/blue_marble-blue_marble", + "scene/solarsystem/planets/jupiter/layers/colorlayers/jupiter_texture", + "scene/solarsystem/planets/mars/layers/colorlayers/mars_texture", + "scene/solarsystem/planets/mercury/layers/colorlayers/mercury_texture", + "scene/solarsystem/planets/neptune/layers/colorlayers/neptune_texture", + "scene/solarsystem/planets/planets", + "scene/solarsystem/planets/saturn/layers/colorlayers/saturn_texture", + "scene/solarsystem/planets/uranus/layers/colorlayers/uranus_texture", + "scene/solarsystem/planets/venus/layers/colorlayers/venus_texture", + "scene/solarsystem/sun/default_layers", + "scene/solarsystem/sun/glare", + "scene/solarsystem/sun/habitablezone" + ], + "camera": { + "altitude": 17000000.0, + "anchor": "Earth", + "latitude": 58.5877, + "longitude": 16.1924, + "type": "goToGeo" + }, + "delta_times": [ + 1.0, + 5.0, + 30.0, + 60.0, + 300.0, + 1800.0, + 3600.0, + 43200.0, + 86400.0, + 604800.0, + 1209600.0, + 2592000.0, + 5184000.0, + 7776000.0, + 15552000.0, + 31536000.0, + 63072000.0, + 157680000.0, + 315360000.0, + 630720000.0 + ], + "mark_nodes": [ + "Earth", + "Mars", + "Moon", + "Sun", + "Venus", + ], + "meta": { + "author": "OpenSpace Team", + "description": "This profile adds low resolution textures to the planets that do not require internet to view.", + "license": "MIT License", + "name": "Offline", + "url": "https://www.openspaceproject.com", + "version": "1.0" + }, + "properties": [ + { + "name": "Modules.SkyBrowser.Enabled", + "type": "setPropertyValueSingle", + "value": "false" + } + ], + "time": { + "is_paused": false, + "type": "relative", + "value": "-1d" + }, + "version": { + "major": 1, + "minor": 4 + } +}