mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Merge remote-tracking branch 'origin/master' into feature/missions
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -25,6 +25,7 @@ Thumbs.db
|
||||
/cache/
|
||||
/cache-*/
|
||||
/cache_gdal/
|
||||
/mrf_cache/
|
||||
/documentation/
|
||||
/logs/
|
||||
/screenshots/
|
||||
|
||||
@@ -12,7 +12,7 @@ Jonas Strandstedt
|
||||
Michal Marcinkowski
|
||||
Joakim Kilby
|
||||
Lovisa Hassler
|
||||
Mikael Petterson
|
||||
Mikael Petterson
|
||||
Erik Sundén
|
||||
Stefan Lindblad
|
||||
Corrie Roe
|
||||
|
||||
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -16,7 +16,7 @@ if (env.CHANGE_BRANCH) {
|
||||
def readDir() {
|
||||
def dirsl = [];
|
||||
new File("${workspace}").eachDir() {
|
||||
dirs -> println dirs.getName()
|
||||
dirs -> println dirs.getName()
|
||||
if (!dirs.getName().startsWith('.')) {
|
||||
dirsl.add(dirs.getName());
|
||||
}
|
||||
@@ -27,7 +27,7 @@ def readDir() {
|
||||
def moduleCMakeFlags() {
|
||||
def modules = [];
|
||||
// using new File doesn't work as it is not allowed in the sandbox
|
||||
|
||||
|
||||
if (isUnix()) {
|
||||
modules = sh(returnStdout: true, script: 'ls -d modules/*').trim().split('\n');
|
||||
};
|
||||
@@ -61,8 +61,8 @@ parallel tools: {
|
||||
recordIssues(
|
||||
id: 'tools-cppcheck',
|
||||
tool: cppCheck(pattern: 'build/cppcheck.xml')
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
cleanWs()
|
||||
} // node('tools')
|
||||
},
|
||||
@@ -101,7 +101,7 @@ linux_gcc_make: {
|
||||
testHelper.runUnitTests('bin/GhoulTest');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('linux-gcc-make/test-openspace') {
|
||||
timeout(time: 2, unit: 'MINUTES') {
|
||||
testHelper.runUnitTests('bin/OpenSpaceTest');
|
||||
@@ -264,7 +264,7 @@ windows_msvc: {
|
||||
testHelper.runUnitTests('bin\\Debug\\codegentest');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
stage('windows-msvc/test-sgct') {
|
||||
timeout(time: 2, unit: 'MINUTES') {
|
||||
testHelper.runUnitTests('bin\\Debug\\SGCTTest');
|
||||
@@ -282,7 +282,7 @@ windows_msvc: {
|
||||
testHelper.runUnitTests('bin\\Debug\\OpenSpaceTest');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
cleanWs()
|
||||
} // node('windows')
|
||||
}
|
||||
@@ -343,7 +343,7 @@ macos_make: {
|
||||
testHelper.runUnitTests('bin/Debug/OpenSpaceTest');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
cleanWs()
|
||||
} // node('macos')
|
||||
}
|
||||
@@ -384,7 +384,7 @@ macos_xcode: {
|
||||
testHelper.runUnitTests('bin/Debug/OpenSpaceTest');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
cleanWs()
|
||||
} // node('macos')
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ if (WIN32)
|
||||
find_program(WINDEPLOYQT_EXECUTABLE windeployqt HINTS "${_qt_bin_dir}")
|
||||
add_custom_command(
|
||||
TARGET OpenSpace POST_BUILD
|
||||
COMMAND "${CMAKE_COMMAND}" -E env PATH="${_qt_bin_dir}" "${WINDEPLOYQT_EXECUTABLE}" --verbose 0 --no-compiler-runtime \"$<TARGET_FILE:OpenSpace>\"
|
||||
COMMAND "${CMAKE_COMMAND}" -E env PATH="${_qt_bin_dir}" "${WINDEPLOYQT_EXECUTABLE}" --verbose 0 --no-compiler-runtime --no-translations \"$<TARGET_FILE:OpenSpace>\"
|
||||
COMMENT "Deploying Qt libraries"
|
||||
)
|
||||
endif ()
|
||||
|
||||
@@ -113,9 +113,6 @@ target_include_directories(
|
||||
openspace-ui-launcher
|
||||
PUBLIC
|
||||
include
|
||||
# @TODO: This should be handled in a better way
|
||||
../sgct/include
|
||||
../sgct/sgct/ext/glm
|
||||
)
|
||||
target_link_libraries(
|
||||
openspace-ui-launcher
|
||||
@@ -126,6 +123,8 @@ target_link_libraries(
|
||||
Qt${QT_VERSION_MAJOR}::Gui
|
||||
Qt${QT_VERSION_MAJOR}::Widgets
|
||||
Qt${QT_VERSION_MAJOR}::Network
|
||||
PRIVATE
|
||||
sgct
|
||||
)
|
||||
|
||||
target_precompile_headers(openspace-ui-launcher PRIVATE
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
#include <ghoul/fmt.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <sgct/readconfig.h>
|
||||
#include <QComboBox>
|
||||
#include <QFile>
|
||||
#include <QLabel>
|
||||
@@ -41,7 +42,10 @@
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <random>
|
||||
#include <sgct/readconfig.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
#endif // WIN32
|
||||
|
||||
using namespace openspace;
|
||||
|
||||
@@ -137,11 +141,29 @@ namespace {
|
||||
|
||||
void saveProfile(QWidget* parent, const std::string& path, const Profile& p) {
|
||||
std::ofstream outFile;
|
||||
outFile.exceptions(std::ofstream::badbit | std::ofstream::failbit);
|
||||
try {
|
||||
outFile.open(path, std::ofstream::out);
|
||||
outFile << p.serialize();
|
||||
}
|
||||
catch (const std::ofstream::failure& e) {
|
||||
#ifdef WIN32
|
||||
if (std::filesystem::exists(path)) {
|
||||
// Check if the file is hidden, since that causes ofstream to fail
|
||||
DWORD res = GetFileAttributesA(path.c_str());
|
||||
if (res & FILE_ATTRIBUTE_HIDDEN) {
|
||||
QMessageBox::critical(
|
||||
parent,
|
||||
"Exception",
|
||||
QString::fromStdString(fmt::format(
|
||||
"Error writing data to file: '{}' as file is marked hidden",
|
||||
path
|
||||
))
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif // WIN32
|
||||
QMessageBox::critical(
|
||||
parent,
|
||||
"Exception",
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QSpinBox>
|
||||
#include <numbers>
|
||||
|
||||
namespace {
|
||||
std::array<std::string, 4> MonitorNames = {
|
||||
@@ -59,8 +60,8 @@ namespace {
|
||||
};
|
||||
|
||||
constexpr int LineEditWidthFixedWindowSize = 50;
|
||||
constexpr float DefaultFovH = 80.f;
|
||||
constexpr float DefaultFovV = 50.534f;
|
||||
constexpr float DefaultFovLongEdge = 80.f;
|
||||
constexpr float DefaultFovShortEdge = 50.534f;
|
||||
constexpr float DefaultHeightOffset = 0.f;
|
||||
constexpr int MaxWindowSizePixels = 10000;
|
||||
constexpr double FovEpsilon = 0.00001;
|
||||
@@ -358,7 +359,7 @@ QWidget* WindowControl::createPlanarWidget() {
|
||||
_planar.fovH = new QDoubleSpinBox;
|
||||
_planar.fovH->setMinimum(FovEpsilon);
|
||||
_planar.fovH->setMaximum(180.0 - FovEpsilon);
|
||||
_planar.fovH->setValue(DefaultFovH);
|
||||
_planar.fovH->setValue(DefaultFovLongEdge);
|
||||
_planar.fovH->setEnabled(false);
|
||||
_planar.fovH->setToolTip(hfovTip);
|
||||
_planar.fovH->setSizePolicy(
|
||||
@@ -376,7 +377,7 @@ QWidget* WindowControl::createPlanarWidget() {
|
||||
_planar.fovV = new QDoubleSpinBox;
|
||||
_planar.fovV->setMinimum(FovEpsilon);
|
||||
_planar.fovV->setMaximum(180.0 - FovEpsilon);
|
||||
_planar.fovV->setValue(DefaultFovV);
|
||||
_planar.fovV->setValue(DefaultFovShortEdge);
|
||||
_planar.fovV->setEnabled(false);
|
||||
_planar.fovV->setToolTip(vfovTip);
|
||||
_planar.fovV->setSizePolicy(
|
||||
@@ -614,8 +615,8 @@ void WindowControl::resetToDefaults() {
|
||||
_fisheye.spoutOutput->setChecked(false);
|
||||
_equirectangular.spoutOutput->setChecked(false);
|
||||
_projectionType->setCurrentIndex(static_cast<int>(ProjectionIndices::Planar));
|
||||
_planar.fovV->setValue(DefaultFovH);
|
||||
_planar.fovV->setValue(DefaultFovV);
|
||||
_planar.fovV->setValue(DefaultFovLongEdge);
|
||||
_planar.fovV->setValue(DefaultFovShortEdge);
|
||||
_cylindrical.heightOffset->setValue(DefaultHeightOffset);
|
||||
_fisheye.quality->setCurrentIndex(2);
|
||||
_sphericalMirror.quality->setCurrentIndex(2);
|
||||
@@ -816,14 +817,21 @@ void WindowControl::onFovLockClicked() {
|
||||
}
|
||||
|
||||
void WindowControl::updatePlanarLockedFov() {
|
||||
const float aspectRatio = _windowDimensions.width() / _windowDimensions.height();
|
||||
const float ratio = aspectRatio / IdealAspectRatio;
|
||||
if (ratio >= 1.f) {
|
||||
_planar.fovH->setValue(std::min(DefaultFovH * ratio, 180.f));
|
||||
_planar.fovV->setValue(DefaultFovV);
|
||||
bool landscapeOrientation = (_windowDimensions.width() >= _windowDimensions.height());
|
||||
float aspectRatio;
|
||||
if (landscapeOrientation) {
|
||||
aspectRatio = _windowDimensions.width() / _windowDimensions.height();
|
||||
}
|
||||
else {
|
||||
_planar.fovH->setValue(DefaultFovH);
|
||||
_planar.fovV->setValue(std::min(DefaultFovV / ratio, 180.f));
|
||||
aspectRatio = _windowDimensions.height() / _windowDimensions.width();
|
||||
}
|
||||
|
||||
float adjustedFov = 2.f * atan(aspectRatio * tan(DefaultFovShortEdge
|
||||
* std::numbers::pi_v<float> / 180.f / 2.f));
|
||||
// Convert to degrees and limit to 180°
|
||||
adjustedFov *= 180.f / std::numbers::pi_v<float>;
|
||||
adjustedFov = std::min(adjustedFov, 180.f);
|
||||
|
||||
_planar.fovH->setValue(landscapeOrientation ? adjustedFov : DefaultFovShortEdge);
|
||||
_planar.fovV->setValue(landscapeOrientation ? DefaultFovShortEdge : adjustedFov);
|
||||
}
|
||||
|
||||
Submodule apps/OpenSpace/ext/sgct updated: 2f82990b3d...05ed52d053
@@ -80,6 +80,7 @@
|
||||
|
||||
#include <launcherwindow.h>
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
|
||||
using namespace openspace;
|
||||
using namespace sgct;
|
||||
@@ -1258,6 +1259,19 @@ int main(int argc, char* argv[]) {
|
||||
QApplication app(qac, nullptr);
|
||||
#endif // __APPLE__
|
||||
|
||||
std::string pwd = std::filesystem::current_path().string();
|
||||
if (size_t it = pwd.find_first_of("'\"[]"); it != std::string::npos) {
|
||||
QMessageBox::warning(
|
||||
nullptr,
|
||||
"OpenSpace",
|
||||
QString::fromStdString(fmt::format(
|
||||
"The OpenSpace folder is started must not contain any of \"'\", "
|
||||
"\"\"\", [, or ]. Path is: '{}'. Unexpected errors will occur when "
|
||||
"proceeding to run the software", pwd
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
LauncherWindow win(
|
||||
!hasProfile,
|
||||
*global::configuration,
|
||||
@@ -1280,11 +1294,12 @@ int main(int argc, char* argv[]) {
|
||||
windowConfiguration,
|
||||
labelFromCfgFile
|
||||
);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
glfwInit();
|
||||
}
|
||||
if (global::configuration->profile.empty()) {
|
||||
LFATAL("Cannot launch with an empty profile");
|
||||
LFATAL("Cannot launch without a profile");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ asset.export("ctx_enable_action", ctx_enable_action.Identifier)
|
||||
|
||||
local ctx_disable_action = {
|
||||
Identifier = "os.mars.ctx.fadedout",
|
||||
Name = "Fade out CTX Layer",
|
||||
Name = "Fade out CTX layer",
|
||||
Command = [[openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.CTX_blended_01.Settings.Opacity", 0, 2.0)]],
|
||||
Documentation = "Fade out CTX",
|
||||
GuiPath = "/Solar System/Mars",
|
||||
@@ -46,7 +46,7 @@ asset.export("hirise_disable_action", hirise_disable_action.Identifier)
|
||||
|
||||
local lshirise_enable_action = {
|
||||
Identifier = "os.mars.lshirise.fadein",
|
||||
Name = "Fade in HiRISE Local Set",
|
||||
Name = "Fade in HiRISE local set",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-LS.Enabled", true)
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.HiRISE-LS-DEM.Enabled", true)
|
||||
@@ -60,7 +60,7 @@ asset.export("lshirise_enable_action", lshirise_enable_action.Identifier)
|
||||
|
||||
local lshirise_disable_action = {
|
||||
Identifier = "os.mars.lshirise.fadedout",
|
||||
Name = "Fade out HiRISE Local Set",
|
||||
Name = "Fade out HiRISE local set",
|
||||
Command = [[openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.ColorLayers.HiRISE-LS.Settings.Opacity", 0, 2.0)
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.HiRISE-LS-DEM.Enabled", false)]],
|
||||
Documentation = "Fade out HiRISE local set layer for Mars",
|
||||
|
||||
@@ -28,7 +28,7 @@ local list = openspace.getProperty("Scene." .. node .. ".Renderable.Layers.Night
|
||||
if (#list > 0) then
|
||||
openspace.setPropertyValue(list[1], true)
|
||||
else
|
||||
openspace.setPropertyValueSingle("Scene." .. node .. ".Renderable.PerformShading", true)
|
||||
openspace.setPropertyValueSingle("Scene." .. node .. ".Renderable.PerformShading", true)
|
||||
end
|
||||
if openspace.hasSceneGraphNode(node .. "Atmosphere") then
|
||||
openspace.setPropertyValueSingle("Scene." .. node .. "Atmosphere.Renderable.SunFollowingCamera", false)
|
||||
@@ -45,11 +45,11 @@ end
|
||||
|
||||
local function getIlluminationAction(node, node_lower, global)
|
||||
local actionString = "_standard_illumination"
|
||||
local actionName = "Standard Illumination"
|
||||
local actionName = "standard illumination"
|
||||
local actionCommand = getIlluminationCommand(node, global)
|
||||
if (global) then
|
||||
actionString = "_global_illumination"
|
||||
actionName = "Global Illumination"
|
||||
actionName = "global illumination"
|
||||
actionCommand = getIlluminationCommand(node, global)
|
||||
end
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ end
|
||||
local function getToggleScaleAction(identifier, scale, name, speedup, speedown)
|
||||
local action = {
|
||||
Identifier = "os.toggle_" .. string.gsub(name, "%s+", "") .. "_scale",
|
||||
Name = "Toggle " .. name .. " Scale",
|
||||
Name = "Toggle " .. name .. " scale",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("]] .. identifier .. [[.Scale.Scale");
|
||||
if #list == 0 then
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local undo_event_fade = {
|
||||
Identifier = "os.undo_event_fade",
|
||||
Name = "Undo All Event Fading",
|
||||
Name = "Undo all event fading",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("Scene.*.Renderable.Fade", 1.0, 0.5);
|
||||
]],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local minormoons_on = {
|
||||
Identifier = "os_default.minormoons_on",
|
||||
Name = "Turn ON minor moons and trails",
|
||||
Name = "Turn on minor moons and trails",
|
||||
Command = [[
|
||||
local trails = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled');
|
||||
local trails_fade = openspace.getProperty('{moonTrail_minor}.Renderable.Fade');
|
||||
@@ -8,14 +8,14 @@ local minormoons_on = {
|
||||
local moons = openspace.getProperty('{moon_minor}.Renderable.Enabled');
|
||||
local moons_fade = openspace.getProperty('{moon_minor}.Renderable.Fade');
|
||||
|
||||
for i, v in pairs(trails_fade) do
|
||||
for i, v in pairs(trails_fade) do
|
||||
openspace.setPropertyValueSingle(trails[i], true)
|
||||
openspace.setPropertyValueSingle(v, 1, 2, 'Linear')
|
||||
openspace.setPropertyValueSingle(v, 1, 2, 'Linear')
|
||||
end
|
||||
|
||||
for i, v in pairs(moons_fade) do
|
||||
for i, v in pairs(moons_fade) do
|
||||
openspace.setPropertyValueSingle(moons[i], true)
|
||||
openspace.setPropertyValueSingle(v, 1, 2, 'Linear')
|
||||
openspace.setPropertyValueSingle(v, 1, 2, 'Linear')
|
||||
end
|
||||
]],
|
||||
Documentation = "Turn ON minor moons and their trails for all planets in the solar system",
|
||||
@@ -25,7 +25,7 @@ local minormoons_on = {
|
||||
|
||||
local minormoons_off = {
|
||||
Identifier = "os_default.minormoons_off",
|
||||
Name = "Turn OFF minor moons and trails",
|
||||
Name = "Turn off minor moons and trails",
|
||||
Command = [[
|
||||
local trails = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled');
|
||||
local trails_fade = openspace.getProperty('{moonTrail_minor}.Renderable.Fade');
|
||||
@@ -33,12 +33,12 @@ local minormoons_off = {
|
||||
local moons = openspace.getProperty('{moon_minor}.Renderable.Enabled');
|
||||
local moons_fade = openspace.getProperty('{moon_minor}.Renderable.Fade');
|
||||
|
||||
for i, v in pairs(trails_fade) do
|
||||
openspace.setPropertyValueSingle(v, 0, 2, 'Linear', "openspace.setPropertyValueSingle('" .. trails[i] .. "', false)" )
|
||||
for i, v in pairs(trails_fade) do
|
||||
openspace.setPropertyValueSingle(v, 0, 2, 'Linear', "openspace.setPropertyValueSingle('" .. trails[i] .. "', false)" )
|
||||
end
|
||||
|
||||
for i, v in pairs(moons_fade) do
|
||||
openspace.setPropertyValueSingle(v, 0, 2, 'Linear', "openspace.setPropertyValueSingle('" .. moons[i] .. "', false)" )
|
||||
openspace.setPropertyValueSingle(v, 0, 2, 'Linear', "openspace.setPropertyValueSingle('" .. moons[i] .. "', false)" )
|
||||
end
|
||||
]],
|
||||
Documentation = "Turn OFF minor moons and their trails for all planets in the solar system",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
local toggle_minormoon_trails = {
|
||||
Identifier = "os_default.toggle_minormoon_trails",
|
||||
Name = "Toggle Minor Moon Trails",
|
||||
Name = "Toggle minor moon trails",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle on/off minor moon trails for all planets in the solar system",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local fade_up_trails = {
|
||||
Identifier = "os.fade_up_trails",
|
||||
Name = "Show All Trails",
|
||||
Name = "Show all trails",
|
||||
Command = [[
|
||||
local capList = openspace.getProperty("Scene.*Trail.Renderable.Fade");
|
||||
for _,v in ipairs(capList) do
|
||||
@@ -19,7 +19,7 @@ asset.export("fade_up_trails", fade_up_trails.Identifier)
|
||||
|
||||
local fade_down_trails = {
|
||||
Identifier = "os.fade_down_trails",
|
||||
Name = "Hide All Trails",
|
||||
Name = "Hide all trails",
|
||||
Command = [[
|
||||
local capList = openspace.getProperty("Scene.*Trail.Renderable.Fade");
|
||||
for _,v in ipairs(capList) do
|
||||
@@ -38,7 +38,7 @@ asset.export("fade_down_trails", fade_down_trails.Identifier)
|
||||
|
||||
local toggle_trails = {
|
||||
Identifier = "os.toggle_trails",
|
||||
Name = "Toggle All Trails",
|
||||
Name = "Toggle all trails",
|
||||
Command = [[
|
||||
local capList = openspace.getProperty("*Trail.Renderable.Fade");
|
||||
local list = openspace.getProperty("*trail.Renderable.Fade");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local toggle_trails = {
|
||||
Identifier = "os_default.toggle_trails",
|
||||
Name = "Toggle Planet and Moon Trails (Instant)",
|
||||
Name = "Toggle planet and moon trails (instant)",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("{planetTrail_solarSystem}.Renderable.Enabled");
|
||||
for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local toggle_trail = {
|
||||
Identifier = "os.toggle_trail",
|
||||
Name = "Toggle Trail",
|
||||
Name = "Toggle trail",
|
||||
Command = [[
|
||||
local node
|
||||
if is_declared("args") then
|
||||
@@ -48,7 +48,7 @@ asset.export("toggle_trail", toggle_trail.Identifier)
|
||||
|
||||
local hide_trail = {
|
||||
Identifier = "os.hide_trail",
|
||||
Name = "Hide Trail",
|
||||
Name = "Hide trail",
|
||||
Command = [[
|
||||
local node
|
||||
if is_declared("args") then
|
||||
@@ -73,7 +73,7 @@ asset.export("hide_trail", hide_trail.Identifier)
|
||||
|
||||
local show_trail = {
|
||||
Identifier = "os.show_trail",
|
||||
Name = "Show Trail",
|
||||
Name = "Show trail",
|
||||
Command = [[
|
||||
local node
|
||||
if is_declared("args") then
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local fade_up_trails = {
|
||||
Identifier = "os.fade_up_trails_planets_moon",
|
||||
Name = "Show Planet and Moon Trails",
|
||||
Name = "Show planet and moon trails",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("{planetTrail_solarSystem}.Renderable.Fade", 1, 2);
|
||||
openspace.setPropertyValue("{moonTrail_solarSystem}.Renderable.Fade", 1, 2);
|
||||
@@ -13,7 +13,7 @@ asset.export("fade_up_trails", fade_up_trails.Identifier)
|
||||
|
||||
local fade_down_trails = {
|
||||
Identifier = "os.fade_down_trails_planets_moon",
|
||||
Name = "Hide Planet and Moon Trails",
|
||||
Name = "Hide planet and moon trails",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("{planetTrail_solarSystem}.Renderable.Fade", 0, 2);
|
||||
openspace.setPropertyValue("{moonTrail_solarSystem}.Renderable.Fade", 0, 2);
|
||||
@@ -26,7 +26,7 @@ asset.export("fade_down_trails", fade_down_trails.Identifier)
|
||||
|
||||
local toggle_trails = {
|
||||
Identifier = "os.toggle_trails_planets_moon",
|
||||
Name = "Toggle Planet and Moon Trails",
|
||||
Name = "Toggle planet and moon trails",
|
||||
Command = [[
|
||||
local capList = openspace.getProperty("{planetTrail_solarSystem}.Renderable.Fade");
|
||||
local list = openspace.getProperty("{moonTrail_solarSystem}.Renderable.Fade");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local enable_trail_fading = {
|
||||
Identifier = "os.enable_trail_fading",
|
||||
Name = "Enable Trail Fading",
|
||||
Name = "Enable trail fading",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("Scene.*Trail.Renderable.Appearance.EnableFade", true);
|
||||
openspace.setPropertyValue("Scene.*trail.Renderable.Appearance.EnableFade", true);
|
||||
@@ -13,7 +13,7 @@ asset.export("enable_trail_fading", enable_trail_fading.Identifier)
|
||||
|
||||
local disable_trail_fading = {
|
||||
Identifier = "os.disable_trail_fading",
|
||||
Name = "Disable Trail Fading",
|
||||
Name = "Disable trail fading",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("Scene.*Trail.Renderable.Appearance.EnableFade", false);
|
||||
openspace.setPropertyValue("Scene.*trail.Renderable.Appearance.EnableFade", false);
|
||||
@@ -26,7 +26,7 @@ asset.export("disable_trail_fading", disable_trail_fading.Identifier)
|
||||
|
||||
local toggle_trail_fading = {
|
||||
Identifier = "os.toggle_trail_fading",
|
||||
Name = "Toggle Trail Fading",
|
||||
Name = "Toggle trail fading",
|
||||
Command = [[
|
||||
local capList = openspace.getProperty("*Trail.Renderable.Appearance.EnableFade")
|
||||
local list = openspace.getProperty("*trail.Renderable.Appearance.EnableFade")
|
||||
@@ -69,7 +69,7 @@ local function getHighlightAction(identifierString, value, nameString)
|
||||
end
|
||||
local action = {
|
||||
Identifier = "os." .. actionString .. identifierString .. "_trail",
|
||||
Name = actionString .. " " .. nameString .. " Trail",
|
||||
Name = actionString .. " " .. nameString .. " trail",
|
||||
Command = getHightlightCommand(identifierString, value),
|
||||
Documentation = "Animates the trail fade of " .. nameString .. "'s Trail",
|
||||
GuiPath = "/Trails/Appearance",
|
||||
@@ -81,7 +81,7 @@ end
|
||||
local function getToggleHighlightAction(identifierString, value, nameString)
|
||||
local action = {
|
||||
Identifier = "os.toggle_" .. identifierString .. "_trail_highlight",
|
||||
Name = "Toggle " .. nameString .. " Trail Highlight",
|
||||
Name = "Toggle " .. nameString .. " trail highlight",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("]] .. identifierString .. [[.Renderable.Appearance.Fade");
|
||||
if #list == 0 then
|
||||
|
||||
@@ -57,53 +57,9 @@ asset.require("scene/digitaluniverse/voids")
|
||||
asset.require("customization/globebrowsing")
|
||||
asset.require("util/default_actions")
|
||||
|
||||
local toggle_trails = {
|
||||
Identifier = "os_default.toggle_trails",
|
||||
Name = "Toggle Trails",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("{planetTrail_solarSystem}.Renderable.Enabled");
|
||||
for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end
|
||||
|
||||
local moonlist = openspace.getProperty("{moonTrail_solarSystem}.Renderable.Enabled");
|
||||
for _,v in pairs(moonlist) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end
|
||||
]],
|
||||
Documentation = "Toggles the visibility of planet and moon trails",
|
||||
GuiPath = "/Rendering",
|
||||
IsLocal = false,
|
||||
|
||||
Key = "h"
|
||||
}
|
||||
|
||||
local toggle_planet_labels = {
|
||||
Identifier = "os_default.toggle_planet_labels",
|
||||
Name = "Toggle planet labels",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("{solarsystem_labels}.Renderable.Enabled");
|
||||
for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end
|
||||
]],
|
||||
Documentation = "Turns on visibility for all solar system labels",
|
||||
GuiPath = "/Rendering",
|
||||
IsLocal = false,
|
||||
|
||||
Key = "l"
|
||||
}
|
||||
|
||||
local trailAction = asset.require("actions/trails/toggle_trails_planets_moons").toggle_trails
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.bindKey("h", trailAction.Identifier)
|
||||
|
||||
openspace.action.registerAction(toggle_planet_labels)
|
||||
openspace.bindKey(toggle_planet_labels.Key, toggle_planet_labels.Identifier)
|
||||
|
||||
openspace.globebrowsing.loadWMSServersFromFile(
|
||||
openspace.absPath("${DATA}/globebrowsing_servers.lua")
|
||||
)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.clearKey(toggle_trails.Key)
|
||||
|
||||
openspace.action.removeAction(toggle_planet_labels)
|
||||
openspace.clearKey(toggle_planet_labels.Key)
|
||||
end)
|
||||
|
||||
30
data/assets/base_keybindings.asset
Normal file
30
data/assets/base_keybindings.asset
Normal file
@@ -0,0 +1,30 @@
|
||||
asset.require("./base")
|
||||
|
||||
local trailAction = asset.require("actions/trails/toggle_trails_planets_moons").toggle_trails
|
||||
|
||||
local toggle_planet_labels = {
|
||||
Identifier = "os_default.toggle_planet_labels",
|
||||
Name = "Toggle planet labels",
|
||||
Command = [[
|
||||
local list = openspace.getProperty("{solarsystem_labels}.Renderable.Enabled");
|
||||
for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end
|
||||
]],
|
||||
Documentation = "Turns on visibility for all solar system labels",
|
||||
GuiPath = "/Solar System",
|
||||
IsLocal = false,
|
||||
Key = "l"
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.action.registerAction(toggle_planet_labels)
|
||||
openspace.bindKey(toggle_planet_labels.Key, toggle_planet_labels.Identifier)
|
||||
|
||||
openspace.bindKey("h", trailAction.Identifier)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.clearKey("h")
|
||||
|
||||
openspace.action.removeAction(toggle_planet_labels)
|
||||
openspace.clearKey(toggle_planet_labels.Key)
|
||||
end)
|
||||
@@ -23,7 +23,7 @@ local vrt_folders = {
|
||||
-- if areas overlap (for example CTX and HiRISE) and CTX is specified *after* HiRISE,
|
||||
-- CTX will stomp over the HiRISE.
|
||||
|
||||
-- tl;dr: Specify CTX folders first, then HiRISE
|
||||
-- tl;dr: Specify CTX folders first, then HiRISE
|
||||
-- example: "C:/OpenSpace/GlobeBrowsingData/Mars/CTX"
|
||||
|
||||
-- We recommend using this folder for CTX
|
||||
|
||||
@@ -48,7 +48,7 @@ local eiffelTower = {
|
||||
|
||||
local updatePositionAction = {
|
||||
Identifier = "os.drop_eiffel_tower",
|
||||
Name = "Drop Eiffel Tower under camera",
|
||||
Name = "Drop Eiffel tower under camera",
|
||||
Command = [[
|
||||
local lat, lon, alt = openspace.globebrowsing.getGeoPositionForCamera();
|
||||
local camera = openspace.navigation.getNavigationState();
|
||||
@@ -67,7 +67,7 @@ local updatePositionAction = {
|
||||
|
||||
local resetPositionAction = {
|
||||
Identifier = "os.reset_eiffel_tower",
|
||||
Name = "Reset Eiffel Tower position",
|
||||
Name = "Reset Eiffel tower position",
|
||||
Command = [[
|
||||
-- same position as above
|
||||
local lat = 48.85824
|
||||
|
||||
@@ -19,7 +19,7 @@ local toggle_sun = {
|
||||
openspace.setPropertyValueSingle("Scene.Sun.Renderable.Fade", 0.0, 1.0)
|
||||
end
|
||||
]],
|
||||
Documentation = [[Toggles the visibility of the Sun glare and the Sun globe when the
|
||||
Documentation = [[Toggles the visibility of the Sun glare and the Sun globe when the
|
||||
camera is approaching either so that from far away the Sun Glare is rendered and when
|
||||
close up, the globe is rendered instead]],
|
||||
GuiPath = "/Solar System/Sun",
|
||||
|
||||
@@ -3,7 +3,7 @@ local transforms = asset.require("scene/solarsystem/planets/earth/transforms")
|
||||
|
||||
local generic_action = {
|
||||
Identifier = "os.example.generic",
|
||||
Name = "Generic Example",
|
||||
Name = "Generic example",
|
||||
Command = [[
|
||||
openspace.printInfo("Node: " .. args.Node)
|
||||
openspace.printInfo("Transition: " .. args.Transition)
|
||||
|
||||
@@ -11,6 +11,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "stars-altlbl.label",
|
||||
Color = { 0.4, 0.4, 0.4 },
|
||||
Size = 14.7,
|
||||
@@ -19,8 +20,7 @@ local object = {
|
||||
},
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "pc",
|
||||
DrawLabels = true
|
||||
Unit = "pc"
|
||||
},
|
||||
GUI = {
|
||||
Name = "Stars Labels - Alternate",
|
||||
|
||||
@@ -29,7 +29,6 @@ local wmap = {
|
||||
Texture = textures .. "wmap_ilc_7yr_v4_200uK_RGB_sos.png",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -55,7 +54,6 @@ local cbe = {
|
||||
Texture = textures .. "COBErect.png",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -81,7 +79,6 @@ local planck = {
|
||||
Texture = textures .. "cmb4k.jpg",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -107,7 +104,6 @@ local Halpha = {
|
||||
Opacity = 0.4,
|
||||
Texture = textures .. "mwHalpha-f.png",
|
||||
Orientation = "Inside",
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
MirrorTexture = true,
|
||||
FadeOutThreshold = 0.025,
|
||||
Background = true
|
||||
|
||||
@@ -26,7 +26,6 @@ local multiverse_planck_1 = {
|
||||
Texture = textures .. "cmb4k.jpg",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -56,7 +55,6 @@ local multiverse_planck_2 = {
|
||||
Texture = textures .. "cmb4k.jpg",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -86,7 +84,6 @@ local multiverse_planck_3 = {
|
||||
Texture = textures .. "cmb4k.jpg",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
@@ -116,7 +113,6 @@ local multiverse_planck_4 = {
|
||||
Texture = textures .. "cmb4k.jpg",
|
||||
Orientation = "Both",
|
||||
MirrorTexture = true,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
FadeInThreshold = 0.4
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -11,6 +11,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "galclust.label",
|
||||
Color = { 1.0, 0.44, 0.0 },
|
||||
Size = 22,
|
||||
@@ -20,13 +21,12 @@ local object = {
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "Mpc",
|
||||
DrawLabels = true,
|
||||
TransformationMatrix = {
|
||||
-0.7357425748, 0.67726129641, 0.0, 0.0,
|
||||
-0.074553778365, -0.080991471307, 0.9939225904, 0.0,
|
||||
0.67314530211, 0.73127116582, 0.11008126223, 0.0,
|
||||
0.0, 0.0, 0.0, 1.0
|
||||
},
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Galaxy Cluster Labels",
|
||||
|
||||
@@ -7,12 +7,26 @@ local equatorialRotationMatrix = {
|
||||
-0.483835 , 0.7469823, 0.4559838
|
||||
}
|
||||
|
||||
local equatorialTransformationMatrix = {
|
||||
-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
|
||||
}
|
||||
|
||||
local eclipticRotationMatrix = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
|
||||
local eclipticTransformationMatrix = {
|
||||
-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
|
||||
}
|
||||
|
||||
local speck = asset.syncedResource({
|
||||
Name = "Grids Speck Files",
|
||||
Type = "HttpSynchronization",
|
||||
@@ -112,22 +126,18 @@ local eclipticLabels = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "eclip.label",
|
||||
Color = { 0.5, 0.5, 0.5 },
|
||||
Size = 14.75,
|
||||
MinMaxSize = { 1, 50 },
|
||||
Unit = "pc"
|
||||
Unit = "pc",
|
||||
TransformationMatrix = eclipticTransformationMatrix
|
||||
},
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "pc",
|
||||
DrawLabels = true,
|
||||
TransformationMatrix = {
|
||||
-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
|
||||
}
|
||||
TransformationMatrix = eclipticTransformationMatrix
|
||||
},
|
||||
GUI = {
|
||||
Name = "Ecliptic Sphere Labels",
|
||||
@@ -168,22 +178,18 @@ local equatorialLabels = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "radec.label",
|
||||
Color = { 0.5, 0.5, 0.5 },
|
||||
Size = 14.5,
|
||||
MinMaxSize = { 2, 70 },
|
||||
Unit = "pc"
|
||||
Unit = "pc",
|
||||
TransformationMatrix = equatorialTransformationMatrix
|
||||
},
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "pc",
|
||||
DrawLabels = true,
|
||||
TransformationMatrix = {
|
||||
-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
|
||||
}
|
||||
TransformationMatrix = equatorialTransformationMatrix
|
||||
},
|
||||
GUI = {
|
||||
Name = "Equatorial Sphere Labels",
|
||||
@@ -220,6 +226,7 @@ local galacticLabels = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "galac.label",
|
||||
Color = { 0.5, 0.5, 0.5 },
|
||||
Size = 15.8,
|
||||
@@ -228,8 +235,7 @@ local galacticLabels = {
|
||||
},
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "pc",
|
||||
DrawLabels = true
|
||||
Unit = "pc"
|
||||
},
|
||||
GUI = {
|
||||
Name = "Galactic Sphere Labels",
|
||||
|
||||
@@ -11,6 +11,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "groups.label",
|
||||
Color = { 0.1, 0.6, 0.2 },
|
||||
Size = 21.5,
|
||||
@@ -21,7 +22,6 @@ local object = {
|
||||
Opacity = 0.65,
|
||||
--ScaleFactor = 10.0,
|
||||
Unit = "Mpc",
|
||||
DrawLabels = true,
|
||||
TransformationMatrix = {
|
||||
-0.7357425748, 0.67726129641, 0.0, 0.0,
|
||||
-0.074553778365, -0.080991471307, 0.9939225904, 0.0,
|
||||
|
||||
@@ -11,6 +11,7 @@ local homeLabel = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = homespeck .. "home.label",
|
||||
Color = { 0.8, 0.8, 0.8 },
|
||||
Size = 20.50,
|
||||
@@ -20,7 +21,6 @@ local homeLabel = {
|
||||
Color = { 1.0, 0.4, 0.2 },
|
||||
Opacity = 0.99,
|
||||
ScaleFactor = 500.0,
|
||||
DrawLabels = true,
|
||||
Unit = "Mpc",
|
||||
TransformationMatrix = {
|
||||
-0.7357425748, 0.67726129641, 0.0, 0.0,
|
||||
|
||||
@@ -21,7 +21,6 @@ local sphere = {
|
||||
Opacity = 0.35,
|
||||
Texture = sphereTextures .. "DarkUniverse_mellinger_4k.jpg",
|
||||
Orientation = "Inside",
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
MirrorTexture = true,
|
||||
FadeOutThreshold = 0.0015,
|
||||
Background = true,
|
||||
|
||||
@@ -11,6 +11,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "stars.label",
|
||||
Color = { 0.4, 0.4, 0.4 },
|
||||
Size = 14.7,
|
||||
@@ -19,8 +20,7 @@ local object = {
|
||||
},
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "pc",
|
||||
DrawLabels = true
|
||||
Unit = "pc"
|
||||
},
|
||||
GUI = {
|
||||
Name = "Stars Labels",
|
||||
|
||||
@@ -191,7 +191,7 @@ asset.meta = {
|
||||
Version = "1.1",
|
||||
Description = [[Select Star Orbital paths that delineate their trajectory around the
|
||||
Milky Way over 1 billion years into the future. Included: Sun, Barnards, Kapteyns,
|
||||
Lacaille 9352, LSR1826+3014, LSRJ0822+1700, PM_J13420-3415. <br><br> Data
|
||||
Lacaille 9352, LSR1826+3014, LSRJ0822+1700, PM_J13420-3415. <br><br> Data
|
||||
Reference: Sebastien Lepine (AMNH)]],
|
||||
Author = "Brian Abbott (AMNH)",
|
||||
URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
|
||||
|
||||
@@ -18,6 +18,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "superclust.label",
|
||||
Color = { 0.9, 0.9, 0.9 },
|
||||
Size = 22.44,
|
||||
@@ -31,7 +32,6 @@ local object = {
|
||||
Texture = textures .. "point3A.png",
|
||||
Unit = "Mpc",
|
||||
ScaleFactor = 531.0,
|
||||
DrawLabels = true,
|
||||
-- BillboardMinMaxSize = { 0.0, 7.2 },
|
||||
EnablePixelSizeControl = true
|
||||
},
|
||||
|
||||
@@ -34,7 +34,6 @@ local tullyPoints = {
|
||||
--ColorOption = { "proximity" },
|
||||
ColorOption = { "prox5Mpc" },
|
||||
ColorRange = { { 1.0, 30.0 } },
|
||||
DrawLabels = false,
|
||||
Unit = "Mpc",
|
||||
TransformationMatrix = {
|
||||
-0.7357425748, 0.67726129641, 0.0, 0.0,
|
||||
|
||||
@@ -11,6 +11,7 @@ local object = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Labels = {
|
||||
Enabled = true,
|
||||
File = speck .. "voids.label",
|
||||
Color = { 0.296, 0.629, 1.0 },
|
||||
Size = 20.9,
|
||||
@@ -18,7 +19,6 @@ local object = {
|
||||
Unit = "Mpc"
|
||||
},
|
||||
DrawElements = false,
|
||||
DrawLabels = true,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
Unit = "Mpc"
|
||||
|
||||
@@ -124,7 +124,7 @@ end
|
||||
|
||||
local show_art = {
|
||||
Identifier = "constellation_art.show_art",
|
||||
Name = "Show Constellation Art",
|
||||
Name = "Show constellation art",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("Scene.ImageConstellation*.Renderable.Opacity", 0);
|
||||
openspace.setPropertyValue("Scene.ImageConstellation*.Renderable.Enabled", true);
|
||||
@@ -138,7 +138,7 @@ asset.export("ShowArtAction", show_art)
|
||||
|
||||
local hide_art = {
|
||||
Identifier = "constellation_art.hide_art",
|
||||
Name = "Hide Constellation Art",
|
||||
Name = "Hide constellation art",
|
||||
Command = [[openspace.setPropertyValue("Scene.ImageConstellation*.Renderable.Opacity", 0, 2)]],
|
||||
Documentation = "Fades out constellation artwork",
|
||||
GuiPath = "/Rendering",
|
||||
@@ -148,7 +148,7 @@ asset.export("HideArtAction", hide_art)
|
||||
|
||||
local disable_art = {
|
||||
Identifier = "constellation_art.disable_art",
|
||||
Name = "Disable Constellation Art",
|
||||
Name = "Disable constellation art",
|
||||
Command = [[openspace.setPropertyValue("Scene.ImageConstellation*.Renderable.Enabled", false)]],
|
||||
Documentation = "Disable constellation artwork",
|
||||
GuiPath = "/Rendering",
|
||||
@@ -158,7 +158,7 @@ asset.export("DisableArtAction", disable_art)
|
||||
|
||||
local show_zodiac_art = {
|
||||
Identifier = "constellation_art.show_zodiac_art",
|
||||
Name = "Show Zodiac Art",
|
||||
Name = "Show zodiac art",
|
||||
Command = [[
|
||||
openspace.setPropertyValue("Scene.ImageConstellation*.Renderable.Opacity", 0);
|
||||
openspace.setPropertyValue("{zodiac}.Renderable.Enabled",true);
|
||||
@@ -172,7 +172,7 @@ asset.export("ShowZodiacArt", show_zodiac_art)
|
||||
|
||||
local hide_zodiac_art = {
|
||||
Identifier = "constellation_art.hide_zodiac_art",
|
||||
Name = "Hide Zodiac Art",
|
||||
Name = "Hide zodiac art",
|
||||
Command = [[openspace.setPropertyValue("{zodiac}.Renderable.Opacity", 0, 2)]],
|
||||
Documentation = "fades down zodiac art work",
|
||||
GuiPath = "/Rendering",
|
||||
|
||||
@@ -19,7 +19,6 @@ local object = {
|
||||
Segments = 40,
|
||||
Opacity = 0.4,
|
||||
Texture = textures .. "eso0932a_blend.png",
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
Orientation = "Inside",
|
||||
MirrorTexture = true,
|
||||
FadeOutThreshold = 0.01,
|
||||
@@ -48,7 +47,7 @@ asset.export(object)
|
||||
asset.meta = {
|
||||
Name = "MilkyWay Galaxy (ESO)",
|
||||
Version = "1.0",
|
||||
Description = [[This asset contains an alternate to the Digital Universe image for the
|
||||
Description = [[This asset contains an alternate to the Digital Universe image for the
|
||||
Milky Way from ESO]],
|
||||
Author = "ESO/S. Brunier",
|
||||
URL = "https://www.eso.org/public/usa/images/eso0932a/",
|
||||
|
||||
@@ -36,16 +36,16 @@ local OrionClusterStars = {
|
||||
Path = "/Milky Way/Orion",
|
||||
Description = [[In order to have an accurate depiction of the Orion nebula, we
|
||||
need to include the star cluster that was birthed from it. We turned to a study of the
|
||||
cluster's stellar population by Lynne Hillenbrand, who was working at the University of
|
||||
California, Berkeley at the time. The catalog from her paper contains more than 1500
|
||||
stars, about half the stars in the actual cluster. The cluster is very crowded, with a
|
||||
peak density of 10000 stars per cubic parsec over a wide range of masses from a tenth the
|
||||
sun's mass up to 50 times its mass. We were presented with one problem: there are no
|
||||
distances. For the stellar distances, we needed to deduce them by statistical methods.
|
||||
Knowing the size of the cluster and approximating the shape to be roughly spherical, we
|
||||
placed each star along a line of sight through this imaginary sphere centered on the
|
||||
cluster. In this sense, these data are observed data and the view from Earth is accurate.
|
||||
But the distance of each star has been derived from this educated-guess approach for the
|
||||
cluster's stellar population by Lynne Hillenbrand, who was working at the University of
|
||||
California, Berkeley at the time. The catalog from her paper contains more than 1500
|
||||
stars, about half the stars in the actual cluster. The cluster is very crowded, with a
|
||||
peak density of 10000 stars per cubic parsec over a wide range of masses from a tenth the
|
||||
sun's mass up to 50 times its mass. We were presented with one problem: there are no
|
||||
distances. For the stellar distances, we needed to deduce them by statistical methods.
|
||||
Knowing the size of the cluster and approximating the shape to be roughly spherical, we
|
||||
placed each star along a line of sight through this imaginary sphere centered on the
|
||||
cluster. In this sense, these data are observed data and the view from Earth is accurate.
|
||||
But the distance of each star has been derived from this educated-guess approach for the
|
||||
cluster distribution]]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,18 +28,18 @@ local NebulaHolder = {
|
||||
GUI = {
|
||||
Name = "Orion Nebula",
|
||||
Path = "/Milky Way/Orion",
|
||||
Description = [[In the Digital Universe model of the Orion Nebula, we depict the
|
||||
ionization front effectively as a terrain, with a flat Hubble image of the nebula mapped
|
||||
Description = [[In the Digital Universe model of the Orion Nebula, we depict the
|
||||
ionization front effectively as a terrain, with a flat Hubble image of the nebula mapped
|
||||
on the undulating surface. In reality, the ionization front has a slight thickness to
|
||||
it - about a third of a light year - but is quite thin compared to the overall size of
|
||||
the nebula, which stretches about ten light years from side to side.<br><br>Close into
|
||||
the center, we see small teardrop-shaped structures with their narrow ends pointing away
|
||||
from the bright star: these are protoplanetary disks, or proplyds, of dense gas and dust
|
||||
surrounding young stars. The larger formations that one sees farther away from the center
|
||||
of the nebula take on a cup-like shape, with the narrow end pointing away from the
|
||||
nebulas center. These enormous structures are bow shocks that delineate the region where
|
||||
highspeed winds from the central star slow from supersonic to subsonic speeds. You can
|
||||
think of an HII region as a sort of tremendous explosion, taking place over millennia,
|
||||
it - about a third of a light year - but is quite thin compared to the overall size of
|
||||
the nebula, which stretches about ten light years from side to side.<br><br>Close into
|
||||
the center, we see small teardrop-shaped structures with their narrow ends pointing away
|
||||
from the bright star: these are protoplanetary disks, or proplyds, of dense gas and dust
|
||||
surrounding young stars. The larger formations that one sees farther away from the center
|
||||
of the nebula take on a cup-like shape, with the narrow end pointing away from the
|
||||
nebulas center. These enormous structures are bow shocks that delineate the region where
|
||||
highspeed winds from the central star slow from supersonic to subsonic speeds. You can
|
||||
think of an HII region as a sort of tremendous explosion, taking place over millennia,
|
||||
and the bow shocks are part of the outward rush of material]]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ local fieldlines = {
|
||||
|
||||
local toggle_fieldlines = {
|
||||
Identifier = "os.events.bastilleday.fieldlines.togglefieldlines",
|
||||
Name = "Toggle Fieldlines",
|
||||
Name = "Toggle fieldlines",
|
||||
Command = propertyHelper.invert("Scene.MAS-MHD-Fieldlines-bastille-day-2000.Renderable.Enabled"),
|
||||
Documentation = "Toggle fieldline rendering of CME",
|
||||
GuiPath = "/Bastille-Day 2000",
|
||||
|
||||
@@ -61,7 +61,7 @@ asset.meta = {
|
||||
Name = "Bastille Day magnetogram textures",
|
||||
Version = "1.1",
|
||||
Description = [[This asset adds multiple magnetogram textures to the Sun. In addition
|
||||
it provides an action to cycle through the textures. See magnetogram.asset for details
|
||||
it provides an action to cycle through the textures. See magnetogram.asset for details
|
||||
of the textures]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
|
||||
@@ -4,13 +4,13 @@ local apollo11_setup_landingsite = {
|
||||
Identifier = "os.missions.apollo11.setup.landingsite",
|
||||
Name = "Setup Apollo 11 landing site",
|
||||
Command = [[
|
||||
openspace.time.setTime('1969 JUL 20 20:17:40');
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_11.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A11_M177481212_p_longlat.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.TargetLodScaleFactor', 20.11);
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Apollo11LemPosition');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11MoonTrail.Renderable.Enabled', true);
|
||||
openspace.time.setTime('1969 JUL 20 20:17:40');
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_11.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A11_M177481212_p_longlat.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.TargetLodScaleFactor', 20.11);
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Apollo11LemPosition');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11MoonTrail.Renderable.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11LemTrail.Renderable.Enabled', true);
|
||||
]],
|
||||
Documentation = "Setup for Apollo 11 landing site",
|
||||
|
||||
@@ -23,7 +23,7 @@ asset.onInitialize(function ()
|
||||
rawset(_G, "nextFlip", function() helper.nextFlipbookPage(flipbook) end)
|
||||
openspace.action.registerAction({
|
||||
Identifier = "lem_flipbook.next_flip",
|
||||
Name = "Next A11 flip",
|
||||
Name = "Next Apollo 11 flip",
|
||||
Command = "nextFlip()",
|
||||
Documentation = "Show the next Apollo 11 flipbook image",
|
||||
GuiPath = "/Missions/Apollo/11",
|
||||
@@ -33,7 +33,7 @@ asset.onInitialize(function ()
|
||||
rawset(_G, "previousFlip", function() helper.previousFlipbookPage(flipbook) end)
|
||||
openspace.action.registerAction({
|
||||
Identifier = "lem_flipbook.prev_flip",
|
||||
Name = "Prev A11 flip",
|
||||
Name = "Prev Apollo 11 flip",
|
||||
Command = "previousFlip()",
|
||||
Documentation = "Show the previous Apollo 11 flipbook image",
|
||||
GuiPath = "/Missions/Apollo/11",
|
||||
|
||||
@@ -4,17 +4,17 @@ local apollo17_setup_landingsite = {
|
||||
Identifier = "os.missions.apollo17.setup.landingsite",
|
||||
Name = "Setup for Apollo 17 landing site",
|
||||
Command = [[
|
||||
openspace.time.setTime('1972 DEC 12 19:47:11');
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_travmap.BlendMode', 0.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_travmap.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_17.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_LEM.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_LEM.BlendMode', 0.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_NAC_Alt_p.Enabled', true);
|
||||
openspace.time.setTime('1972 DEC 12 19:47:11');
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_travmap.BlendMode', 0.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_travmap.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_17.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_LEM.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_LEM.BlendMode', 0.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_NAC_Alt_p.Enabled', true);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_NAC_Alt_p.BlendMode', 0.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.TargetLodScaleFactor', 20.17);
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Apollo17LemModel');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.TargetLodScaleFactor', 20.17);
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Apollo17LemModel');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_station7.BlendMode', 0.000000);
|
||||
]],
|
||||
Documentation = "Setup for Apollo 17 landing site",
|
||||
|
||||
@@ -2,10 +2,10 @@ local apollo8_setup_earthrise = {
|
||||
Identifier = "os.missions.apollo8.setup.earthrise",
|
||||
Name = "Set Earthrise time",
|
||||
Command = [[
|
||||
openspace.time.setPause(true);
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setTime('1968 DEC 24 16:37:31');
|
||||
openspace.navigation.setNavigationState({Anchor = 'Apollo8', Position = { 1.494592E1, 3.236777E1, -4.171296E1 }, ReferenceFrame = 'Root', Up = { 0.960608E0, -0.212013E0, 0.179675E0 }});
|
||||
openspace.time.setPause(true);
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setTime('1968 DEC 24 16:37:31');
|
||||
openspace.navigation.setNavigationState({Anchor = 'Apollo8', Position = { 1.494592E1, 3.236777E1, -4.171296E1 }, ReferenceFrame = 'Root', Up = { 0.960608E0, -0.212013E0, 0.179675E0 }});
|
||||
openspace.setPropertyValue('*Trail.Renderable.Enabled', false);
|
||||
]],
|
||||
Documentation = "Jump to right before the earthrise photo",
|
||||
@@ -17,7 +17,7 @@ local apollo8_setup_launch = {
|
||||
Identifier = "os.missions.apollo8.setup.launch",
|
||||
Name = "Set Apollo 8 launch time",
|
||||
Command = [[
|
||||
openspace.time.setTime('1968-12-21T12:51:37.00');
|
||||
openspace.time.setTime('1968-12-21T12:51:37.00');
|
||||
openspace.setPropertyValueSingle('Scene.Apollo8LaunchTrail.Renderable.Enabled', true);
|
||||
]],
|
||||
Documentation = "Jump to time right before Apollo 8 liftoff, with its trail enabled",
|
||||
|
||||
@@ -13,8 +13,8 @@ local focus_moon = {
|
||||
Identifier = "os.missions.apollo.moon.focus",
|
||||
Name = "Focus on Moon",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Moon');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Moon');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Set camera focus on the Moon",
|
||||
@@ -26,8 +26,8 @@ local focus_earth = {
|
||||
Identifier = "os.missions.apollo.earth.focus",
|
||||
Name = "Focus on Earth",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Earth');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Earth');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Set camera focus on the Earth",
|
||||
@@ -38,7 +38,7 @@ local focus_earth = {
|
||||
asset.onInitialize(function()
|
||||
openspace.action.registerAction(toggle_moon_shading)
|
||||
openspace.action.registerAction(focus_moon)
|
||||
openspace.action.registerAction(focus_earth)
|
||||
openspace.action.registerAction(focus_earth)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
|
||||
@@ -44,17 +44,17 @@ local apollo_moon_disableapollosites= {
|
||||
Identifier = "os.missions.apollo.moon.disableapollosites",
|
||||
Name = "Disable Apollo sites",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('Scene.Moon.Renderable.Layers.ColorLayers.A17_*.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_11.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A11_M177481212_p_longlat.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11MoonTrail.Renderable.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11LemTrail.Renderable.Enabled', false);
|
||||
openspace.setPropertyValue('Scene.Moon.Renderable.Layers.ColorLayers.A17_*.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_11.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A11_M177481212_p_longlat.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11MoonTrail.Renderable.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Apollo11LemTrail.Renderable.Enabled', false);
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_17.Enabled', false);
|
||||
]],
|
||||
Documentation = "Disable apollo site on moon when leaving",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
IsLocal = false
|
||||
}
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.globebrowsing.addBlendingLayersFromDirectory(heightmaps, moon_transforms.Moon.Identifier)
|
||||
|
||||
@@ -85,7 +85,7 @@ end
|
||||
|
||||
local show_apollo_labels = {
|
||||
Identifier = "apollo_insignias.show_insignias",
|
||||
Name = "Show Apollo Landing Labels",
|
||||
Name = "Show Apollo landing labels",
|
||||
Command = [[openspace.setPropertyValue("Scene.Apollo*Insignia.Renderable.Opacity", 1, 0.5)]],
|
||||
Documentation = "Show patches of the Apollo missions on their respective landing sites",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
@@ -94,7 +94,7 @@ local show_apollo_labels = {
|
||||
|
||||
local hide_apollo_labels = {
|
||||
Identifier = "apollo_insignias.hide_insignias",
|
||||
Name = "Hide Apollo Landing Labels",
|
||||
Name = "Hide Apollo landing labels",
|
||||
Command = [[openspace.setPropertyValue("Scene.Apollo*Insignia.Renderable.Opacity", 0, 0.5)]],
|
||||
Documentation = "Hide patches of the Apollo missions on their respective landing sites",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
|
||||
@@ -16,7 +16,7 @@ local insightNavigationState = [[
|
||||
local Shortcuts = {
|
||||
{
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset", -469.300000);
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset", -469.300000);
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Settings.Offset", -470.800006);
|
||||
]],
|
||||
Documentation = "Enable Insight landing height layer offset",
|
||||
@@ -26,7 +26,7 @@ local Shortcuts = {
|
||||
},
|
||||
{
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset", 0);
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset", 0);
|
||||
openspace.setPropertyValueSingle("Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Settings.Offset", 0);
|
||||
]],
|
||||
Documentation = "Disable Insight landing height layer offset",
|
||||
|
||||
@@ -76,7 +76,7 @@ asset.meta = {
|
||||
Version = "1.0",
|
||||
Description = [[
|
||||
Kernels were acquired from the official Juice mailing list and extended with the
|
||||
GPHIO kernel provided by Ronan Modolo for the fieldline and plane data visualization
|
||||
GPHIO kernel provided by Ronan Modolo for the fieldline and plane data visualization
|
||||
]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
|
||||
@@ -58,7 +58,7 @@ local xy_u = {
|
||||
GUI = {
|
||||
Name = "Ganymede XY Plane U",
|
||||
Path = "/Solar System/Missions/Juice/Plane",
|
||||
Description = [[A cut plane in Ganymede's XY plane showing the strength of the
|
||||
Description = [[A cut plane in Ganymede's XY plane showing the strength of the
|
||||
magnetic field]]
|
||||
}
|
||||
}
|
||||
@@ -193,7 +193,7 @@ local xz_u = {
|
||||
GUI = {
|
||||
Name = "Ganymede XZ Plane U",
|
||||
Path = "/Solar System/Missions/Juice/Plane",
|
||||
Description = [[A cut plane in Ganymede's XZ plane showing the strength of the
|
||||
Description = [[A cut plane in Ganymede's XZ plane showing the strength of the
|
||||
magnetic field]]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,11 +198,11 @@ asset.onInitialize(function()
|
||||
openspace.addSceneGraphNode(Juno)
|
||||
openspace.addSceneGraphNode(JunoTrail)
|
||||
end)
|
||||
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.removeSceneGraphNode(JunoTrail)
|
||||
openspace.removeSceneGraphNode(Juno)
|
||||
end)
|
||||
|
||||
|
||||
asset.export(Juno)
|
||||
asset.export(JunoTrail)
|
||||
|
||||
@@ -2,9 +2,9 @@ local toggle_lagrangian_points = {
|
||||
Identifier = "os.missions.jwst.togglelagrangianpoints",
|
||||
Name = "Toggle Lagrangian points",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{lagrange_points_earth}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{lagrange_points_earth}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle points and labels for the Lagrangian points for Earth Sun system",
|
||||
@@ -16,9 +16,9 @@ local toggle_hudf = {
|
||||
Identifier = "os.missions.jwst.togglehudf",
|
||||
Name = "Toggle Hubble Ultra Deep Field",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{mission_jwst_hudf}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{mission_jwst_hudf}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle Hubble Ultra Deep Field image and line towards its coordinate",
|
||||
@@ -30,9 +30,9 @@ local toggle_l2 = {
|
||||
Identifier = "os.missions.jwst.togglel2",
|
||||
Name = "Toggle L2 line and small L2 label",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{lagrange_points_earth_l2_small}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{lagrange_points_earth_l2_small}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle L2 label, point and line",
|
||||
@@ -44,9 +44,9 @@ local toggle_fov = {
|
||||
Identifier = "os.missions.jwst.togglefov",
|
||||
Name = "Toggle JWST field of view and view band",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{mission_jwst_fov}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{mission_jwst_fov}.*.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle James Webb Space Telecope field of view and view band",
|
||||
@@ -58,7 +58,7 @@ local setup_launch = {
|
||||
Identifier = "os.missoins.jwst.setup.launch",
|
||||
Name = "Set to JWST launch time",
|
||||
Command = [[
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setTime('2021-12-25T12:20:01');
|
||||
]],
|
||||
Documentation = "Set the time to the launch time of JWST",
|
||||
@@ -70,7 +70,7 @@ local setup_detach = {
|
||||
Identifier = "os.missions.jwst.setup.detach",
|
||||
Name = "Set to JWST detach time",
|
||||
Command = [[
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setDeltaTime(1);
|
||||
openspace.time.setTime('2021-12-25T12:50:00');
|
||||
]],
|
||||
Documentation = "Set the time to the detach time of JWST",
|
||||
@@ -82,7 +82,7 @@ local toggle_sun_trail = {
|
||||
Identifier = "os.missions.jwst.togglesuntrail",
|
||||
Name = "Toggle JWST Sun trail",
|
||||
Command = [[
|
||||
local value = openspace.getPropertyValue('Scene.JWSTSunTrail.Renderable.Enabled');
|
||||
local value = openspace.getPropertyValue('Scene.JWSTSunTrail.Renderable.Enabled');
|
||||
openspace.setPropertyValueSingle('Scene.JWSTSunTrail.Renderable.Enabled', not value);
|
||||
]],
|
||||
Documentation = "Toggle JWST trail relative to the Sun",
|
||||
@@ -94,14 +94,14 @@ local toggle_trails_except_moon = {
|
||||
Identifier = "os.missions.jwst.toggletrialsexceptmoon",
|
||||
Name = "Toggle trails (except Moon)",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{planetTrail_solarSystem}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
local moonlist = openspace.getProperty('{moonTrail_solarSystem}.Renderable.Enabled')
|
||||
for _,v in pairs(moonlist) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
local list = openspace.getProperty('{planetTrail_solarSystem}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
local moonlist = openspace.getProperty('{moonTrail_solarSystem}.Renderable.Enabled')
|
||||
for _,v in pairs(moonlist) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
openspace.setPropertyValueSingle('Scene.MoonTrail.Renderable.Enabled', true)
|
||||
]],
|
||||
Documentation = "Toggle all planet and moon trails, except the Moon",
|
||||
@@ -113,9 +113,9 @@ local toggle_jwst_trail = {
|
||||
Identifier = "os.missions.jwst.togglejwsttrails",
|
||||
Name = "Toggle JWST trail",
|
||||
Command = [[
|
||||
local list = {'Scene.JWSTTrailLaunch.Renderable.Enabled', 'Scene.JWSTTrailCruise.Renderable.Enabled', 'Scene.JWSTTrailCoRevOrbit.Renderable.Enabled'};
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v));
|
||||
local list = {'Scene.JWSTTrailLaunch.Renderable.Enabled', 'Scene.JWSTTrailCruise.Renderable.Enabled', 'Scene.JWSTTrailCoRevOrbit.Renderable.Enabled'};
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v));
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle JWST launch, cruise and L2 co-revolving orbit trails, not the Sun trail",
|
||||
|
||||
@@ -48,8 +48,7 @@ local JWSTBand = {
|
||||
Segments = 50,
|
||||
DisableFadeInOut = true,
|
||||
Orientation = "Inside",
|
||||
Opacity = 0.05,
|
||||
RenderBinMode = "PreDeferredTransparent",
|
||||
Opacity = 0.05
|
||||
},
|
||||
Tag = { "mission_jwst_fov" },
|
||||
GUI = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local toggle_trail = {
|
||||
Identifier = "event.jwst.toggle_trail",
|
||||
Name = "Toggle JWST Trail (Auto)",
|
||||
Name = "Toggle JWST trail (auto)",
|
||||
Command = [[
|
||||
local node
|
||||
if is_declared("args") then
|
||||
|
||||
@@ -13,7 +13,7 @@ local focus_newhorizons = {
|
||||
|
||||
local anchor_nh_aim_pluto = {
|
||||
Identifier = "os.missions.newhorizons.aimpluto",
|
||||
Name = "Anchor NH, Aim Pluto",
|
||||
Name = "Anchor NH, Aim Pluto",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'NewHorizons');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', 'Pluto');
|
||||
@@ -29,7 +29,7 @@ local focus_pluto = {
|
||||
Name = "Focus on Pluto",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'PlutoProjection');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Sets the focus of the camera on 'Pluto'",
|
||||
@@ -52,7 +52,7 @@ local focus_charon = {
|
||||
|
||||
local toggle_nh_imageprojection = {
|
||||
Identifier = "os.missions.newhorizons.toggleimageprojection",
|
||||
Name = "Toggle NH Image Projection",
|
||||
Name = "Toggle NH image projection",
|
||||
Command = [[
|
||||
local enabled = openspace.getPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.PerformProjection');
|
||||
openspace.setPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.PerformProjection', not enabled);
|
||||
@@ -90,7 +90,7 @@ local approach_time_and_projections = {
|
||||
|
||||
local increase_hightmap_pluto = {
|
||||
Identifier = "os.missions.newhorizons.pluto.increasehightmap",
|
||||
Name = "Pluto HeightExaggeration +",
|
||||
Name = "Pluto height exaggeration +",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.PlutoProjection.Renderable.HeightExaggeration", openspace.getPropertyValue("Scene.PlutoProjection.Renderable.HeightExaggeration") + 5000);
|
||||
]],
|
||||
@@ -101,7 +101,7 @@ local increase_hightmap_pluto = {
|
||||
|
||||
local decrease_hightmap_pluto = {
|
||||
Identifier = "os.missions.newhorizons.pluto.decreasehightmap",
|
||||
Name = "Pluto HeightExaggeration -",
|
||||
Name = "Pluto height exaggeration -",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.PlutoProjection.Renderable.HeightExaggeration", openspace.getPropertyValue("Scene.PlutoProjection.Renderable.HeightExaggeration") - 5000);
|
||||
]],
|
||||
@@ -112,7 +112,7 @@ local decrease_hightmap_pluto = {
|
||||
|
||||
local increase_hightmap_charon = {
|
||||
Identifier = "os.missions.newhorizons.charon.increasehightmap",
|
||||
Name = "Charon HeightExaggeration +",
|
||||
Name = "Charon height exaggeration +",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.CharonProjection.Renderable.HeightExaggeration", openspace.getPropertyValue("Scene.CharonProjection.Renderable.HeightExaggeration") + 5000);
|
||||
]],
|
||||
@@ -123,7 +123,7 @@ local increase_hightmap_charon = {
|
||||
|
||||
local decrease_hightmap_charon = {
|
||||
Identifier = "os.missions.newhorizons.charon.decreasehightmap",
|
||||
Name = "Charon HeightExaggeration -",
|
||||
Name = "Charon height exaggeration -",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle("Scene.CharonProjection.Renderable.HeightExaggeration", openspace.getPropertyValue("Scene.CharonProjection.Renderable.HeightExaggeration") - 5000);
|
||||
]],
|
||||
@@ -134,7 +134,7 @@ local decrease_hightmap_charon = {
|
||||
|
||||
local toggle_pluto_trail = {
|
||||
Identifier = "os.missions.newhorizons.pluto.toggletrail",
|
||||
Name = "Toggle Pluto Trail",
|
||||
Name = "Toggle Pluto trail",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('Scene.PlutoBarycentricTrail.Renderable.Enabled', not openspace.getPropertyValue('Scene.PlutoBarycentricTrail.Renderable.Enabled'));
|
||||
]],
|
||||
@@ -145,11 +145,11 @@ local toggle_pluto_trail = {
|
||||
|
||||
local toggle_pluto_labels = {
|
||||
Identifier = "os.missions.newhorizons.pluto.togglelabels",
|
||||
Name = "Toggle Pluto Labels",
|
||||
Name = "Toggle Pluto labels",
|
||||
Command = [[
|
||||
local list = {"Scene.PlutoText.Renderable.Enabled", "Scene.CharonText.Renderable.Enabled", "Scene.HydraText.Renderable.Enabled", "Scene.NixText.Renderable.Enabled", "Scene.KerberosText.Renderable.Enabled", "Scene.StyxText.Renderable.Enabled"};
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = {"Scene.PlutoText.Renderable.Enabled", "Scene.CharonText.Renderable.Enabled", "Scene.HydraText.Renderable.Enabled", "Scene.NixText.Renderable.Enabled", "Scene.KerberosText.Renderable.Enabled", "Scene.StyxText.Renderable.Enabled"};
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggles the visibility of the text labels of Pluto, Charon, Hydra, Nix, Kerberos, and Styx",
|
||||
@@ -159,13 +159,13 @@ local toggle_pluto_labels = {
|
||||
|
||||
local toggle_nh_labels = {
|
||||
Identifier = "os.missions.newhorizons.togglelabels",
|
||||
Name = "Toggle New Horizons Labels",
|
||||
Name = "Toggle New Horizons labels",
|
||||
Command = [[
|
||||
local v = openspace.getPropertyValue("Scene.Labels.Renderable.Opacity");
|
||||
if v <= 0.5 then
|
||||
openspace.setPropertyValueSingle("Scene.Labels.Renderable.Opacity",1.0,2.0)
|
||||
else
|
||||
openspace.setPropertyValueSingle("Scene.Labels.Renderable.Opacity",0.0,2.0)
|
||||
local v = openspace.getPropertyValue("Scene.Labels.Renderable.Opacity");
|
||||
if v <= 0.5 then
|
||||
openspace.setPropertyValueSingle("Scene.Labels.Renderable.Opacity",1.0,2.0)
|
||||
else
|
||||
openspace.setPropertyValueSingle("Scene.Labels.Renderable.Opacity",0.0,2.0)
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggles the visibility of the labels for the New Horizons instruments",
|
||||
@@ -175,7 +175,7 @@ local toggle_nh_labels = {
|
||||
|
||||
local toggle_shadows = {
|
||||
Identifier = "os.missions.newhorizons.toggleshadows",
|
||||
Name = "Toggle Shadows",
|
||||
Name = "Toggle shadows",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('Scene.PlutoShadow.Renderable.Enabled', not openspace.getPropertyValue('Scene.PlutoShadow.Renderable.Enabled'));
|
||||
openspace.setPropertyValueSingle('Scene.CharonShadow.Renderable.Enabled', not openspace.getPropertyValue('Scene.CharonShadow.Renderable.Enabled'));
|
||||
@@ -187,7 +187,7 @@ local toggle_shadows = {
|
||||
|
||||
local toggle_nh_trail = {
|
||||
Identifier = "os.missions.newhorizons.toggletrail",
|
||||
Name = "Toggle NH Trail",
|
||||
Name = "Toggle New Horizons trail",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('Scene.NewHorizonsTrailPluto.Renderable.Enabled', not openspace.getPropertyValue('Scene.NewHorizonsTrailPluto.Renderable.Enabled'));
|
||||
]],
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
local focus_osirisrex = {
|
||||
Identifier = "os.missions.osirisrex.focus",
|
||||
Name = "Focus on OsirisRex",
|
||||
Name = "Focus on OsirisREx",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'OsirisRex');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'OsirisRex');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Sets the focus of the camera on 'OsirisRex'",
|
||||
@@ -15,8 +15,8 @@ local focus_bennu = {
|
||||
Identifier = "os.missions.osirisrex.bennu.focus",
|
||||
Name = "Focus on Bennu",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'BennuBarycenter');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'BennuBarycenter');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Sets the focus of the camera on 'Bennu'",
|
||||
@@ -40,7 +40,7 @@ local bennu_survey_time = {
|
||||
Identifier = "os.missions.osirisrex.setup.bennusurvey",
|
||||
Name = "Set Bennu survey time",
|
||||
Command = [[
|
||||
openspace.printInfo('Set time: Preliminary Survey');
|
||||
openspace.printInfo('Set time: Preliminary Survey');
|
||||
openspace.time.setTime('2018-NOV-20 01:13:12.183');
|
||||
]],
|
||||
Documentation = "Sets the time to the preliminary survey of Bennu",
|
||||
@@ -52,7 +52,7 @@ local bennu_event_b = {
|
||||
Identifier = "os.missions.osirisrex.setup.bennueventb",
|
||||
Name = "Set orbital B event time",
|
||||
Command = [[
|
||||
openspace.printInfo('Set time: Orbital B');
|
||||
openspace.printInfo('Set time: Orbital B');
|
||||
openspace.time.setTime('2019-APR-08 10:35:27.186');
|
||||
]],
|
||||
Documentation = "Sets the time to the orbital B event",
|
||||
@@ -64,7 +64,7 @@ local bennu_recon_event = {
|
||||
Identifier = "os.missions.osirisrex.setup.bennureconevent",
|
||||
Name = "Set recon event time",
|
||||
Command = [[
|
||||
openspace.printInfo('Set time: Recon');
|
||||
openspace.printInfo('Set time: Recon');
|
||||
openspace.time.setTime('2019-MAY-25 03:50:31.195');
|
||||
]],
|
||||
Documentation = "Sets the time to the recon event",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local setup_perseverance = {
|
||||
Identifier = "os.missions.perseverance.setup",
|
||||
Name = "Setup and Goto Perseverance",
|
||||
Name = "Setup and go to Perseverance",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset', -1685.5);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.HiRISE-LS-DEM.Settings.Offset', -1686.0);
|
||||
@@ -21,7 +21,7 @@ asset.onInitialize(function()
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function()
|
||||
openspace.action.removeAction(setup_perseverance)
|
||||
openspace.action.removeAction(setup_perseverance)
|
||||
end)
|
||||
|
||||
asset.meta = {
|
||||
@@ -31,4 +31,4 @@ asset.meta = {
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,10 +21,11 @@ local images = asset.syncedResource({
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "rosettaimages",
|
||||
Version = 2,
|
||||
UnzipFiles = true
|
||||
UnzipFiles = true,
|
||||
UnzipFilesDestination = "images"
|
||||
})
|
||||
|
||||
local imagesDestination = images .. "images_v1_v2"
|
||||
local imagesDestination = images .. "images"
|
||||
|
||||
local Barycenter = {
|
||||
Identifier = "67PBarycenter",
|
||||
@@ -136,8 +137,8 @@ local focus_67p = {
|
||||
Identifier = "os.missions.rosetta.67p.focus",
|
||||
Name = "Focus on 67P",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', '67P');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', '67P');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Sets the focus of the camera on 67P",
|
||||
|
||||
@@ -2,9 +2,9 @@ local toggle_outer_planetary_trails = {
|
||||
Identifier = "os.missions.rosetta.toggleouterplanetarytrails",
|
||||
Name = "Toggle outer planetary trails",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{planetTrail_giants}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{planetTrail_giants}.Renderable.Enabled')
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggles the visibility of all trails further from the Sun than 67P",
|
||||
|
||||
@@ -560,8 +560,8 @@ local focus_rosetta = {
|
||||
Identifier = "os.missions.rosetta.focus",
|
||||
Name = "Focus on Rosetta",
|
||||
Command = [[
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Rosetta');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Rosetta');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Sets the focus of the camera on Rosetta",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local jupiter_approach = {
|
||||
Identifier = "os.missions.voyager.setup.jupiterapproach",
|
||||
Name = "Set Jupiter Approach",
|
||||
Name = "Set Jupiter approach",
|
||||
Command = [[
|
||||
openspace.time.setTime('1979-01-20T01:32:07.914')
|
||||
]],
|
||||
@@ -11,7 +11,7 @@ local jupiter_approach = {
|
||||
|
||||
local saturn_approach = {
|
||||
Identifier = "os.missions.voyager.setup.saturnapproach",
|
||||
Name = "Set Saturn Approach",
|
||||
Name = "Set Saturn approach",
|
||||
Command = [[
|
||||
openspace.time.setTime('1980-10-20T07:43:42.645');
|
||||
]],
|
||||
@@ -50,9 +50,9 @@ local toggle_minormoon_trails = {
|
||||
Identifier = "os.missions.voyager.toggleminormoontrails",
|
||||
Name = "Toggle minor trails",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{moonTrail_minor}.Renderable.Enabled')
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggles the trails of the minor moons",
|
||||
|
||||
@@ -159,7 +159,7 @@ asset.meta = {
|
||||
Name = "Pioneer and Voyager Trails",
|
||||
Version = "1.1",
|
||||
Description = [[Pioneer 10, Pioneer 11, Voyager 1 and Voyager 2 trails. Driven by JPL
|
||||
Horizons data for better performance then spice but lower resolution. Data is from
|
||||
Horizons data for better performance then spice but lower resolution. Data is from
|
||||
shortly after mission launches until January 1st, 2030]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
|
||||
@@ -77,8 +77,8 @@ local focus_earth = {
|
||||
Identifier = "os.solarsystem.earth.focus",
|
||||
Name = "Focus on Earth",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Earth');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Earth');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Set camera focus on the Earth",
|
||||
@@ -90,9 +90,9 @@ local toggle_earth_satellitetrails = {
|
||||
Identifier = "os.solarsystem.earth.togglesatellitetrails",
|
||||
Name = "Toggle satellite trails",
|
||||
Command = [[
|
||||
local list = openspace.getProperty('{earth_satellites}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
local list = openspace.getProperty('{earth_satellites}.Renderable.Enabled');
|
||||
for _,v in pairs(list) do
|
||||
openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v))
|
||||
end
|
||||
]],
|
||||
Documentation = "Toggle trails on or off for satellites around Earth",
|
||||
|
||||
@@ -39,7 +39,6 @@ local L1 = {
|
||||
Parent = L1Position.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneImageLocal",
|
||||
RenderBinMode = "Opaque",
|
||||
Billboard = true,
|
||||
Size = 700E5,
|
||||
Texture = circle .. "circle.png",
|
||||
|
||||
@@ -64,7 +64,6 @@ local L2Small = {
|
||||
Parent = L2Position.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneImageLocal",
|
||||
RenderBinMode = "Opaque",
|
||||
Billboard = true,
|
||||
Size = 400E4,
|
||||
Texture = circle .. "circle.png",
|
||||
@@ -82,7 +81,6 @@ local L2 = {
|
||||
Parent = L2Position.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneImageLocal",
|
||||
RenderBinMode = "Opaque",
|
||||
Billboard = true,
|
||||
Size = 700E5,
|
||||
Texture = circle .. "circle.png",
|
||||
|
||||
@@ -39,7 +39,6 @@ local L4 = {
|
||||
Parent = L4Position.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneImageLocal",
|
||||
RenderBinMode = "Opaque",
|
||||
Billboard = true,
|
||||
Size = 800E6,
|
||||
Texture = circle .. "circle.png",
|
||||
|
||||
@@ -39,7 +39,6 @@ local L5 = {
|
||||
Parent = L5Position.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderablePlaneImageLocal",
|
||||
RenderBinMode = "Opaque",
|
||||
Billboard = true,
|
||||
Size = 800E6,
|
||||
Texture = circle .. "circle.png",
|
||||
|
||||
@@ -5,7 +5,7 @@ local layer = {
|
||||
Name = "Terrain tileset",
|
||||
Enabled = asset.enabled,
|
||||
FilePath = asset.localResource("terrain_tileset.wms"),
|
||||
TilePixelSize = 64,
|
||||
TilePixelSize = 512,
|
||||
Description = [[This globe layer presents elevation data at approximately 90m or 1km
|
||||
per pixel resolution for the world. The elevation data includes 90m Shuttle Radar
|
||||
Topography Mission (SRTM) elevation data from NASA and National
|
||||
|
||||
@@ -3,14 +3,20 @@
|
||||
<ServerUrl>http://earthlive.maptiles.arcgis.com/arcgis/rest/services/GCS_Elevation3D/ImageServer/tile/${z}/${y}/${x}</ServerUrl>
|
||||
</Service>
|
||||
<DataWindow>
|
||||
<UpperLeftX>-180</UpperLeftX> <UpperLeftY>90</UpperLeftY>
|
||||
<LowerRightX>180</LowerRightX> <LowerRightY>-90</LowerRightY>
|
||||
<SizeX>16777216</SizeX> <SizeY>8388608</SizeY>
|
||||
<TileLevel>14</TileLevel> <YOrigin>top</YOrigin>
|
||||
<UpperLeftX>-180</UpperLeftX>
|
||||
<UpperLeftY>90</UpperLeftY>
|
||||
<LowerRightX>180</LowerRightX>
|
||||
<LowerRightY>-90</LowerRightY>
|
||||
<SizeX>16777216</SizeX>
|
||||
<SizeY>8388608</SizeY>
|
||||
<TileLevel>14</TileLevel>
|
||||
<YOrigin>top</YOrigin>
|
||||
</DataWindow>
|
||||
<Projection>EPSG:4326</Projection>
|
||||
<BlockSizeX>512</BlockSizeX> <BlockSizeY>512</BlockSizeY>
|
||||
<BandsCount>1</BandsCount> <DataType>Float32</DataType>
|
||||
<BlockSizeX>512</BlockSizeX>
|
||||
<BlockSizeY>512</BlockSizeY>
|
||||
<BandsCount>1</BandsCount>
|
||||
<DataType>Float32</DataType>
|
||||
<DataValues NoData="0" Min="-11000" Max="8500"/>
|
||||
<MaxConnections>5</MaxConnections>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
|
||||
@@ -31,7 +31,7 @@ asset.export("layer", layer)
|
||||
asset.meta = {
|
||||
Name = "Clem Uvvis [Utah]",
|
||||
Version = "1.1",
|
||||
Description = [[Moon Clementine UVVIS Global Mosaic 118m v2 map of the Moon. This map
|
||||
Description = [[Moon Clementine UVVIS Global Mosaic 118m v2 map of the Moon. This map
|
||||
is hosted on the OpenSpace server in Utah]],
|
||||
Author = "USGS",
|
||||
URL = "https://astrogeology.usgs.gov/search/map/Moon/Clementine/UVVIS/Lunar_Clementine_UVVIS_750nm_Global_Mosaic_118m_v2",
|
||||
|
||||
@@ -30,7 +30,7 @@ asset.export("layer", layer)
|
||||
asset.meta = {
|
||||
Name = "Lola Color Shade [Utah]",
|
||||
Version = "1.1",
|
||||
Description = [[Moon LRO LOLA Color Shaded Relief 388m v4 layer for Moon globe. This
|
||||
Description = [[Moon LRO LOLA Color Shaded Relief 388m v4 layer for Moon globe. This
|
||||
map is hosted on the OpenSpace server in Utah]],
|
||||
Author = "USGS",
|
||||
URL = "https://astrogeology.usgs.gov/search/map/Moon/LMMP/LOLA-derived/Lunar_LRO_LOLA_ClrShade_Global_128ppd_v04",
|
||||
|
||||
@@ -5,7 +5,7 @@ local layer = {
|
||||
Name = "Lola DEM [Sweden]",
|
||||
Enabled = asset.enabled,
|
||||
FilePath = asset.localResource("loladem_sweden.wms"),
|
||||
TilePixelSize = 64,
|
||||
TilePixelSize = 360,
|
||||
Settings = { Multiplier = 0.5 }
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ local layer = {
|
||||
Name = "Lola DEM [Utah]",
|
||||
Enabled = asset.enabled,
|
||||
FilePath = asset.localResource("loladem_utah.wms"),
|
||||
TilePixelSize = 64,
|
||||
TilePixelSize = 360,
|
||||
Settings = { Multiplier = 0.5 },
|
||||
Description = [[This digital elevation model (DEM) is based on data from the Lunar
|
||||
Orbiter Laser Altimeter (LOLA; Smith et al., 2010), an instrument on the National
|
||||
|
||||
@@ -85,8 +85,8 @@ local focus_moon = {
|
||||
Identifier = "os.solarsystem.earth.moon.focus",
|
||||
Name = "Focus on Moon",
|
||||
Command = [[
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Moon');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Moon');
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);
|
||||
]],
|
||||
Documentation = "Set camera focus on the Moon",
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>404,400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>1</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
@@ -20,5 +20,5 @@
|
||||
<BandsCount>3</BandsCount>
|
||||
<MaxConnections>10</MaxConnections>
|
||||
<DataValues NoData="0" Min="1" Max="255"/>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
<ZeroBlockHttpCodes>400</ZeroBlockHttpCodes>
|
||||
</GDAL_WMS>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user