diff --git a/.gitignore b/.gitignore index b6b3900ce1..cf0949236b 100644 --- a/.gitignore +++ b/.gitignore @@ -155,3 +155,7 @@ data/scene/juno/juno/spice data/scene/juno/juno/Juno.mtl data/scene/juno/juno/Juno.obj KeyboardMapping.txt +saturn_rings.png +data/scene/debugglobe/textures/earth_clouds.jpg +data/scene/debugglobe/textures/earth_reflectance.png +data/scene/rosetta/rosetta/obj/Rosetta.obj diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e963165a2..eee822a3f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,6 @@ cmake_minimum_required (VERSION 3.4 FATAL_ERROR) project (OpenSpace) message(STATUS "Generating OpenSpace project") -set(BOOST_ROOT "G:/deps/bin/boost_1_60_0") - set(OPENSPACE_BASE_DIR "${PROJECT_SOURCE_DIR}") set(OPENSPACE_APPS_DIR "${OPENSPACE_BASE_DIR}/apps") set(OPENSPACE_EXT_DIR "${OPENSPACE_BASE_DIR}/ext") diff --git a/apps/Launcher/mainwindow.cpp b/apps/Launcher/mainwindow.cpp index d0c8a5fab0..ffe01f2cd7 100644 --- a/apps/Launcher/mainwindow.cpp +++ b/apps/Launcher/mainwindow.cpp @@ -49,7 +49,7 @@ namespace { const QSize WindowSize = QSize(640, 480); - const QString NewsURL = "http://openspace.itn.liu.se/news.txt"; + const QString NewsURL = "http://openspaceproject.com/news.txt"; const std::string _configurationFile = "openspace.cfg"; diff --git a/apps/Launcher/syncwidget.cpp b/apps/Launcher/syncwidget.cpp index 226392f9ae..7cdc9e2d96 100644 --- a/apps/Launcher/syncwidget.cpp +++ b/apps/Launcher/syncwidget.cpp @@ -131,7 +131,7 @@ SyncWidget::SyncWidget(QWidget* parent, Qt::WindowFlags f) ghoul::initialize(); _downloadManager = std::make_unique( - "http://openspace.itn.liu.se/data/request", DownloadApplicationVersion); + "http://data.openspaceproject.com/request", DownloadApplicationVersion); libtorrent::error_code ec; _session->listen_on(std::make_pair(20280, 20290), ec); diff --git a/data/scene/iswa/tfs/autumn.tf b/data/scene/iswa/tfs/autumn.tf new file mode 100644 index 0000000000..e27f48eb87 --- /dev/null +++ b/data/scene/iswa/tfs/autumn.tf @@ -0,0 +1 @@ +${SCENE}/iswa/tfs/colormap_autumn.png \ No newline at end of file diff --git a/data/scene/lodesritest/earth/BmngJan.wms b/data/scene/lodesritest/earth/BmngJan.wms new file mode 100644 index 0000000000..dd52266ba7 --- /dev/null +++ b/data/scene/lodesritest/earth/BmngJan.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Earth/Bmng/tile/0/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 86400 + 43200 + 8 + top + + EPSG:4326 + 240 + 240 + 3 + 10 + diff --git a/data/scene/lodesritest/earth/BmngJanBathy.wms b/data/scene/lodesritest/earth/BmngJanBathy.wms new file mode 100644 index 0000000000..4bbc61d6eb --- /dev/null +++ b/data/scene/lodesritest/earth/BmngJanBathy.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Earth/Bmng/tile/2/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 86400 + 43200 + 8 + top + + EPSG:4326 + 240 + 240 + 3 + 10 + diff --git a/data/scene/lodesritest/earth/BmngJanTopo.wms b/data/scene/lodesritest/earth/BmngJanTopo.wms new file mode 100644 index 0000000000..0cdfad8e92 --- /dev/null +++ b/data/scene/lodesritest/earth/BmngJanTopo.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Earth/Bmng/tile/1/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 86400 + 43200 + 8 + top + + EPSG:4326 + 240 + 240 + 3 + 10 + diff --git a/data/scene/lodesritest/lodesritest.mod b/data/scene/lodesritest/lodesritest.mod new file mode 100644 index 0000000000..a6ee718e67 --- /dev/null +++ b/data/scene/lodesritest/lodesritest.mod @@ -0,0 +1,309 @@ +return { + -- Earth barycenter module + { + Name = "EarthBarycenter", + Parent = "SolarSystemBarycenter", + Ephemeris = { + Type = "Static" + } + }, + -- EarthTrail module + { + Name = "EarthTrail", + Parent = "SolarSystemBarycenter", + Renderable = { + Type = "RenderableTrail", + Body = "EARTH", + Frame = "GALACTIC", + Observer = "SUN", + RGB = { 0.5, 0.8, 1.0}, + TropicalOrbitPeriod = 365.242, + EarthOrbitRatio = 1, + DayLength = 24 + }, + GuiName = "/Solar/EarthTrail" + }, + -- RenderableGlobe module + { + Name = "LodEarth", + Parent = "EarthBarycenter", + Ephemeris = { + Type = "Spice", + Body = "EARTH", + Reference = "ECLIPJ2000", + Observer = "SUN", + Kernels = { + "${OPENSPACE_DATA}/spice/de430.bsp" + } + }, + Rotation = { + Type = "Spice", + Frame = "IAU_EARTH", + Reference = "ECLIPJ2000" + }, + Renderable = { + Type = "RenderableGlobe", + Frame = "IAU_EARTH", + Body = "EARTH", + Radii = {6378137.0, 6378137.0, 6356752.314245}, -- Earth's radii + CameraMinHeight = 300, + InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values + SegmentsPerPatch = 64, + TextureInitData = { + ColorTextureMinimumSize = 512,--512, + OverlayMinimumSize = 512, + HeightMapMinimumSize = 64, + }, + Textures = { + ColorTextures = { + { + Name = "Black Marble Next Generation (January)", + FilePath = "earth/BmngJan.wms", + Enabled = true + }, + { + Name = "Black Marble Next Generation Bathymetry (January)", + FilePath = "earth/BmngJanBathy.wms", + }, + + }, + GrayScaleOverlays = { + + }, + NightTextures = { + }, + WaterMasks = { + }, + Overlays = { + }, + HeightMaps = { + { + Name = "Black Marble Next Generation (Januray)", + FilePath = "earth/BmngJanTopo.wms", + Enabled = true, + }, + }, + HeightMapOverlays = { + }, + }, + }, + GuiName = "/Solar/Planets/LodEarth" + }, + { + Name = "LodMoon", + Parent = "EarthBarycenter", + Ephemeris = { + Type = "Spice", + Body = "MOON", + Reference = "ECLIPJ2000", + Observer = "SUN", + Kernels = { + "${OPENSPACE_DATA}/spice/de430.bsp" + } + }, + Rotation = { + Type = "Spice", + Frame = "IAU_MOON", + Reference = "ECLIPJ2000" + }, + Renderable = { + Type = "RenderableGlobe", + Frame = "IAU_MOON", + Body = "MOON", + Radii = {1737000.0, 1737000.0, 1737000.0}, -- Earth's radii + CameraMinHeight = 300, + InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values + SegmentsPerPatch = 64, + TextureInitData = { + ColorTextureMinimumSize = 512,--512, + OverlayMinimumSize = 512, + HeightMapMinimumSize = 64, + }, + Textures = { + ColorTextures = { + { + Name = "ClemUvvis", + FilePath = "moon/ClemUvvis.wms", + Enabled = true, + }, + { + Name = "Gebco", + FilePath = "moon/Gebco.wms", + }, + { + Name = "Kaguya", + FilePath = "moon/Kaguya.wms", + }, + -- { + -- Name = "LolaClrShade", + -- FilePath = "moon/LolaClrShade.wms", + -- }, + -- { + -- Name = "LolaShade", + -- FilePath = "moon/LolaShade.wms", + -- }, + { + Name = "UvvisHybrid", + FilePath = "moon/UvvisHybrid.wms", + }, + { + Name = "Wac", + FilePath = "moon/Wac.wms", + }, + + }, + GrayScaleOverlays = { + + }, + NightTextures = { + }, + WaterMasks = { + }, + Overlays = { + }, + HeightMaps = { + { + Name = "LolaDem", + FilePath = "moon/LolaDem.wms", + Enabled = true, + }, + }, + HeightMapOverlays = { + + }, + }, + }, + }, + { + Name = "LodMars", + Parent = "EarthBarycenter", + Ephemeris = { + Type = "Spice", + Body = "MARS", + Reference = "ECLIPJ2000", + Observer = "SUN", + Kernels = { + "${OPENSPACE_DATA}/spice/MAR063.BSP" + } + }, + Rotation = { + Type = "Spice", + Frame = "IAU_MARS", + Reference = "ECLIPJ2000" + }, + Renderable = { + Type = "RenderableGlobe", + Frame = "IAU_MARS", + Body = "MARS", + Radii = {3390000.0, 3390000.0, 3390000.0}, -- Earth's radii + CameraMinHeight = 300, + InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values + SegmentsPerPatch = 64, + TextureInitData = { + ColorTextureMinimumSize = 512,--512, + OverlayMinimumSize = 512, + HeightMapMinimumSize = 64, + }, + Textures = { + ColorTextures = { + { + Name = "MDIM", + FilePath = "mars/Mdim.wms", + Enabled = true, + }, + { + Name = "MolaPseudoColor", + FilePath = "mars/MolaPseudoColor.wms", + }, + }, + GrayScaleOverlays = { + { + Name = "ThemisIRDay", + FilePath = "mars/ThemisIRDay.wms", + }, + { + Name = "ThemisIRNight", + FilePath = "mars/ThemisIRNight.xml", + }, + + }, + NightTextures = { + }, + WaterMasks = { + }, + Overlays = { + }, + HeightMaps = { + { + Name = "MolaElevation", + FilePath = "mars/MolaElevation.wms", + Enabled = true, + }, + }, + HeightMapOverlays = { + }, + }, + }, + GuiName = "/Solar/Planets/LodEarth" + }, + { + Name = "LodMercury", + Parent = "EarthBarycenter", + Ephemeris = { + Type = "Spice", + Body = "MERCURY", + Reference = "ECLIPJ2000", + Observer = "SUN", + Kernels = { + "${OPENSPACE_DATA}/spice/de430.bsp" + } + }, + Rotation = { + Type = "Spice", + Frame = "IAU_MERCURY", + Reference = "ECLIPJ2000" + }, + Renderable = { + Type = "RenderableGlobe", + Frame = "IAU_MERCURY", + Body = "MERCURY", + Radii = {2440000.0, 2440000.0, 2440000.0}, -- Earth's radii + CameraMinHeight = 300, + InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values + SegmentsPerPatch = 64, + TextureInitData = { + ColorTextureMinimumSize = 512,--512, + OverlayMinimumSize = 512, + HeightMapMinimumSize = 64, + }, + Textures = { + ColorTextures = { + { + Name = "MessengerMdis", + FilePath = "mercury/MessengerMdis.wms", + Enabled = true + }, + { + Name = "MessengerMosaic", + FilePath = "mercury/MessengerMosaic.wms", + } + }, + GrayScaleOverlays = { + + }, + NightTextures = { + }, + WaterMasks = { + }, + Overlays = { + }, + HeightMaps = { + }, + HeightMapOverlays = { + + }, + }, + }, + GuiName = "/Solar/Planets/LodEarth" + }, +} diff --git a/data/scene/lodesritest/mars/Mdim.wms b/data/scene/lodesritest/mars/Mdim.wms new file mode 100644 index 0000000000..6bdbe1c994 --- /dev/null +++ b/data/scene/lodesritest/mars/Mdim.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mars/Mdim/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 92160 + 46080 + 7 + top + + GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 3 + 10 + diff --git a/data/scene/lodesritest/mars/MolaElevation.wms b/data/scene/lodesritest/mars/MolaElevation.wms new file mode 100644 index 0000000000..54dd409ee6 --- /dev/null +++ b/data/scene/lodesritest/mars/MolaElevation.wms @@ -0,0 +1,21 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mars/MolaElevation/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 46080 + 23040 + 6 + top + + GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + Int16 + 10 + diff --git a/data/scene/lodesritest/mars/MolaPseudoColor.wms b/data/scene/lodesritest/mars/MolaPseudoColor.wms new file mode 100644 index 0000000000..5827227f80 --- /dev/null +++ b/data/scene/lodesritest/mars/MolaPseudoColor.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mars/MolaPseudoColor/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 46080 + 23040 + 6 + top + + GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 3 + 10 + diff --git a/data/scene/lodesritest/mars/ThemisIRDay.wms b/data/scene/lodesritest/mars/ThemisIRDay.wms new file mode 100644 index 0000000000..4e51901771 --- /dev/null +++ b/data/scene/lodesritest/mars/ThemisIRDay.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mars/ThemisIRDay/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 213390 + 106695 + 9 + top + + GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 256 + 256 + 1 + 10 + diff --git a/data/scene/lodesritest/mars/ThemisIRNight.wms b/data/scene/lodesritest/mars/ThemisIRNight.wms new file mode 100644 index 0000000000..dd93321655 --- /dev/null +++ b/data/scene/lodesritest/mars/ThemisIRNight.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mars/ThemisIRNight/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 213388 + 71130 + 9 + top + + GEOGCS["GCS_Mars_2000_Sphere",DATUM["D_Mars_2000_Sphere",SPHEROID["Mars_2000_Sphere_IAU_IAG",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 256 + 256 + 1 + 10 + diff --git a/data/scene/lodesritest/mercury/MessengerMdis.wms b/data/scene/lodesritest/mercury/MessengerMdis.wms new file mode 100644 index 0000000000..bafca5ca07 --- /dev/null +++ b/data/scene/lodesritest/mercury/MessengerMdis.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mercury/MessengerMdis/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 61324 + 30662 + 7 + top + + GEOGCS["GCS_Mercury_2015",DATUM["D_Mercury_2015",SPHEROID["Mercury_2015",2439400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 256 + 256 + 1 + 10 + diff --git a/data/scene/lodesritest/mercury/MessengerMosaic.wms b/data/scene/lodesritest/mercury/MessengerMosaic.wms new file mode 100644 index 0000000000..89415f373e --- /dev/null +++ b/data/scene/lodesritest/mercury/MessengerMosaic.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Mercury/MessengerMosaic/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 23054 + 11527 + 6 + top + + GEOGCS["GCS_Mercury_2015",DATUM["D_Mercury_2015",SPHEROID["Mercury_2015",2439400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 256 + 256 + 3 + 10 + diff --git a/data/scene/lodesritest/moon/ClemUvvis.wms b/data/scene/lodesritest/moon/ClemUvvis.wms new file mode 100644 index 0000000000..720b1d84f8 --- /dev/null +++ b/data/scene/lodesritest/moon/ClemUvvis.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/ClemUvvis/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 92160 + 46080 + 7 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + 10 + diff --git a/data/scene/lodesritest/moon/Gebco.wms b/data/scene/lodesritest/moon/Gebco.wms new file mode 100644 index 0000000000..c9d1b4ce90 --- /dev/null +++ b/data/scene/lodesritest/moon/Gebco.wms @@ -0,0 +1,21 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Earth/Gebco/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 43200 + 21600 + 6 + top + + EPSG:4326 + 360 + 360 + 1 + Int16 + 10 + diff --git a/data/scene/lodesritest/moon/Kaguya.wms b/data/scene/lodesritest/moon/Kaguya.wms new file mode 100644 index 0000000000..943f19c400 --- /dev/null +++ b/data/scene/lodesritest/moon/Kaguya.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/Kaguya/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 1474560 + 737280 + 11 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + 10 + diff --git a/data/scene/lodesritest/moon/LolaClrShade.wms b/data/scene/lodesritest/moon/LolaClrShade.wms new file mode 100644 index 0000000000..5183f19b9e --- /dev/null +++ b/data/scene/lodesritest/moon/LolaClrShade.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/LolaClrShade/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 92160 + 46080 + 7 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 3 + 10 + diff --git a/data/scene/lodesritest/moon/LolaDem.wms b/data/scene/lodesritest/moon/LolaDem.wms new file mode 100644 index 0000000000..7e590c7de6 --- /dev/null +++ b/data/scene/lodesritest/moon/LolaDem.wms @@ -0,0 +1,21 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/LolaDem/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 92160 + 46080 + 7 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + Int16 + 10 + diff --git a/data/scene/lodesritest/moon/LolaShade.wms b/data/scene/lodesritest/moon/LolaShade.wms new file mode 100644 index 0000000000..7fc994d1fb --- /dev/null +++ b/data/scene/lodesritest/moon/LolaShade.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/LolaShade/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 92160 + 46080 + 7 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + 10 + diff --git a/data/scene/lodesritest/moon/UvvisHybrid.wms b/data/scene/lodesritest/moon/UvvisHybrid.wms new file mode 100644 index 0000000000..579cfe5f63 --- /dev/null +++ b/data/scene/lodesritest/moon/UvvisHybrid.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/UvvisHybrid/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 184320 + 92160 + 8 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 360 + 360 + 1 + 10 + diff --git a/data/scene/lodesritest/moon/Wac.wms b/data/scene/lodesritest/moon/Wac.wms new file mode 100644 index 0000000000..498a6dcf18 --- /dev/null +++ b/data/scene/lodesritest/moon/Wac.wms @@ -0,0 +1,20 @@ + + + http://planetarydev-1803629091.us-west-2.elb.amazonaws.com/Moon/Wac/tile/${z}/${y}/${x} + + + -180.0 + 90.0 + 180.0 + -90.0 + 109164 + 54582 + 8 + top + + GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]] + 256 + 256 + 1 + 10 + diff --git a/data/scene/saturn/saturn.data b/data/scene/saturn/saturn.data index 89c07de0d0..49ba7a71da 100644 --- a/data/scene/saturn/saturn.data +++ b/data/scene/saturn/saturn.data @@ -1,5 +1,5 @@ return { FileRequest = { - { Identifier = "saturn_textures", Destination = "textures", Version = 1 } + { Identifier = "saturn_textures", Destination = "textures", Version = 2 } }, } \ No newline at end of file diff --git a/data/scene/saturn/saturn.mod b/data/scene/saturn/saturn.mod index 2629741b5b..54e79e56d7 100644 --- a/data/scene/saturn/saturn.mod +++ b/data/scene/saturn/saturn.mod @@ -42,6 +42,21 @@ return { }, GuiName = "/Solar/Planets/Saturn" }, + -- The rings of Saturn + -- Using the 'Saturn's rings dark side mosaic' as a basis + { + Name = "SaturnRings", + Parent = "Saturn", + Renderable = { + Type = "RenderableRings", + Body = "SATURN BARYCENTER", + Frame = "IAU_SATURN", + Texture = "textures/saturn_rings.png", + Size = { 0.140445100671159, 9.0 }, -- 140445.100671159km + Offset = { 74500 / 140445.100671159, 1.0 } -- min / max extend + }, + + }, -- SaturnTrail module { Name = "SaturnTrail", diff --git a/ext/ghoul b/ext/ghoul index c0d55b213e..3f984822e7 160000 --- a/ext/ghoul +++ b/ext/ghoul @@ -1 +1 @@ -Subproject commit c0d55b213ec7d284ad1a5e6c54491bbb5ee93667 +Subproject commit 3f984822e718b0e5cc00e17636e6087288022b69 diff --git a/include/openspace/engine/settingsengine.h b/include/openspace/engine/settingsengine.h index 583abba854..f1faa111e7 100644 --- a/include/openspace/engine/settingsengine.h +++ b/include/openspace/engine/settingsengine.h @@ -27,18 +27,30 @@ #include #include +#include + +#include namespace openspace { + +class OpenSpaceModule; class SettingsEngine : public properties::PropertyOwner { public: - SettingsEngine(); + SettingsEngine(); + + void initialize(); + + void setModules(std::vector modules); private: - properties::FloatProperty _eyeSeparation; + void initEyeSeparation(); + void initSceneFiles(); + + properties::FloatProperty _eyeSeparation; + properties::OptionProperty _scenes; }; } // namespace openspace - #endif //#ifndef __SETTINGSENGINE_H__ diff --git a/include/openspace/properties/optionproperty.h b/include/openspace/properties/optionproperty.h index cd248fe336..50fea9aaeb 100644 --- a/include/openspace/properties/optionproperty.h +++ b/include/openspace/properties/optionproperty.h @@ -50,13 +50,20 @@ public: std::string description; }; + enum class DisplayType { + RADIO, + DROPDOWN + }; + /** * The constructor delegating the identifier and the guiName * to its super class. * \param identifier A unique identifier for this property * \param guiName The GUI name that should be used to represent this property + * \param displayType Optional DisplayType for GUI (default RADIO) */ OptionProperty(std::string identifier, std::string guiName); + OptionProperty(std::string identifier, std::string guiName, DisplayType displayType); /** * Returns the name of the class for reflection purposes. @@ -65,6 +72,12 @@ public: std::string className() const override; using IntProperty::operator=; + /** + * Returns the type for GUI display. + * \return OptionType for display purposes + */ + DisplayType displayType() const; + /** * Adds the passed option to the list of available options. The value of * the option must not have been registered previously, or a warning will @@ -74,9 +87,16 @@ public: */ void addOption(int value, std::string desc); + /** + * Appends options with vectors of values and descriptions + * \param values A std::vector of values for the options + * \param descs A std::vector of descriptions for each value + */ + void addOptions(std::vector values, std::vector descs); + /** * Returns the list of available options. - * /return The list of available options + * \return The list of available options */ const std::vector