mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-30 07:49:31 -05:00
Merge branch 'master' into feature/session-recording-improvements
# Conflicts: # include/openspace/network/messagestructures.h # src/interaction/sessionrecording.cpp
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
.vscode
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
CMakeLists.txt.user
|
||||
cmake-build-*
|
||||
cmake_install.cmake
|
||||
install_manifest.txt
|
||||
|
||||
@@ -26,3 +26,6 @@
|
||||
[submodule "apps/OpenSpace-MinVR/ext/glfw"]
|
||||
path = apps/OpenSpace-MinVR/ext/glfw
|
||||
url = https://github.com/opensgct/glfw
|
||||
[submodule "ext/date"]
|
||||
path = ext/date
|
||||
url = https://github.com/HowardHinnant/date
|
||||
|
||||
+10
-25
@@ -31,7 +31,6 @@ set(OPENSPACE_VERSION_MINOR 15)
|
||||
set(OPENSPACE_VERSION_PATCH 2)
|
||||
set(OPENSPACE_VERSION_STRING "Beta-7")
|
||||
|
||||
|
||||
set(OPENSPACE_BASE_DIR "${PROJECT_SOURCE_DIR}")
|
||||
set(OPENSPACE_CMAKE_EXT_DIR "${OPENSPACE_BASE_DIR}/support/cmake")
|
||||
set(GHOUL_BASE_DIR "${OPENSPACE_BASE_DIR}/ext/ghoul")
|
||||
@@ -134,6 +133,11 @@ if (MSVC)
|
||||
set(GHOUL_OPTIMIZATION_ENABLE_OTHER_OPTIMIZATIONS ${OPENSPACE_OPTIMIZATION_ENABLE_OTHER_OPTIMIZATIONS} CACHE BOOL "" FORCE)
|
||||
endif ()
|
||||
|
||||
if (UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++ -lc++abi")
|
||||
endif ()
|
||||
|
||||
include(src/CMakeLists.txt)
|
||||
|
||||
##########################################################################################
|
||||
@@ -148,14 +152,14 @@ if (APPLE)
|
||||
find_library(COCOA_LIBRARY Carbon)
|
||||
find_library(APP_SERVICES_LIBRARY ApplicationServices)
|
||||
mark_as_advanced(CARBON_LIBRARY COCOA_LIBRARY APP_SERVICES_LIBRARY)
|
||||
target_link_libraries(openspace-core ${CARBON_LIBRARY} ${COREFOUNDATION_LIBRARY}
|
||||
target_link_libraries(openspace-core PUBLIC ${CARBON_LIBRARY} ${COREFOUNDATION_LIBRARY}
|
||||
${COCOA_LIBRARY} ${APP_SERVICES_LIBRARY})
|
||||
end_dependency()
|
||||
endif ()
|
||||
|
||||
# Ghoul
|
||||
add_subdirectory(${OPENSPACE_EXT_DIR}/ghoul)
|
||||
target_link_libraries(openspace-core Ghoul)
|
||||
target_link_libraries(openspace-core PUBLIC Ghoul)
|
||||
set_openspace_compile_settings(Ghoul)
|
||||
set_folder_location(Lua "External")
|
||||
set_folder_location(lz4 "External")
|
||||
@@ -165,7 +169,7 @@ link_directories("${GHOUL_LIBRARY_DIRS}")
|
||||
# Spice
|
||||
begin_dependency("Spice")
|
||||
add_subdirectory(${OPENSPACE_EXT_DIR}/spice)
|
||||
target_link_libraries(openspace-core Spice)
|
||||
target_link_libraries(openspace-core PUBLIC Spice)
|
||||
set_folder_location(Spice "External")
|
||||
end_dependency()
|
||||
|
||||
@@ -174,13 +178,13 @@ begin_dependency("CURL")
|
||||
if (WIN32)
|
||||
set(CURL_ROOT_DIR "${OPENSPACE_EXT_DIR}/curl")
|
||||
target_include_directories(openspace-core SYSTEM PUBLIC ${CURL_ROOT_DIR}/include)
|
||||
target_link_libraries(openspace-core ${CURL_ROOT_DIR}/lib/libcurl.lib)
|
||||
target_link_libraries(openspace-core PUBLIC ${CURL_ROOT_DIR}/lib/libcurl.lib)
|
||||
target_compile_definitions(openspace-core PUBLIC "OPENSPACE_CURL_ENABLED" "CURL_STATICLIB")
|
||||
else ()
|
||||
find_package(CURL)
|
||||
if (CURL_FOUND)
|
||||
target_include_directories(openspace-core SYSTEM PUBLIC ${CURL_INCLUDE_DIRS})
|
||||
target_link_libraries(openspace-core ${CURL_LIBRARIES})
|
||||
target_link_libraries(openspace-core PUBLIC ${CURL_LIBRARIES})
|
||||
target_compile_definitions(openspace-core PUBLIC "OPENSPACE_CURL_ENABLED")
|
||||
endif ()
|
||||
endif ()
|
||||
@@ -202,25 +206,6 @@ if (APPLE)
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
option(OPENSPACE_ENABLE_VLD "Enable the Visual Leak Detector" OFF)
|
||||
if (OPENSPACE_ENABLE_VLD)
|
||||
begin_dependency("Visual Leak Detector")
|
||||
target_compile_definitions(openspace-core PUBLIC "OPENSPACE_ENABLE_VLD")
|
||||
target_link_libraries(openspace-core ${OPENSPACE_EXT_DIR}/vld/lib/vld.lib)
|
||||
target_include_directories(openspace-core PUBLIC ${OPENSPACE_EXT_DIR}/vld)
|
||||
end_dependency()
|
||||
endif ()
|
||||
|
||||
option(OPENSPACE_VTUNE_ENABLED "Include VTune support" OFF)
|
||||
set(OPENSPACE_VTUNE_PATH "C:/Program Files (x86)/IntelSWTools/VTune Amplifier 2019" CACHE STRING "Path to VTune installation")
|
||||
if (OPENSPACE_VTUNE_ENABLED)
|
||||
begin_dependency("Intel VTune")
|
||||
target_compile_definitions(openspace-core PUBLIC "OPENSPACE_HAS_VTUNE")
|
||||
target_include_directories(openspace-core PUBLIC "${OPENSPACE_VTUNE_PATH}/include")
|
||||
target_link_libraries(openspace-core "${OPENSPACE_VTUNE_PATH}/lib64/libittnotify.lib")
|
||||
end_dependency()
|
||||
endif ()
|
||||
|
||||
option(OPENSPACE_NVTOOLS_ENABLED "Include support for Nvidia Tools Extensions" OFF)
|
||||
set(OPENSPACE_NVTOOLS_PATH "C:/Program Files/NVIDIA Corporation/NvToolsExt")
|
||||
if (OPENSPACE_NVTOOLS_ENABLED)
|
||||
|
||||
Vendored
+3
-1
@@ -100,8 +100,10 @@ linux: {
|
||||
gitHelper.checkoutGit(url, branch);
|
||||
}
|
||||
stage('linux/build') {
|
||||
def cmakeBuildingOptionLinux = moduleMakeFlags()
|
||||
cmakeBuildingOptionLinux += '-DMAKE_BUILD_TYPE=Release'
|
||||
// Not sure why the linking of OpenSpaceTest takes so long
|
||||
compileHelper.build(compileHelper.Make(), compileHelper.Gcc(), moduleCMakeFlags(), 'OpenSpace', 'build-all');
|
||||
compileHelper.build(compileHelper.Make(), compileHelper.Gcc(), cmakeBuildingOptionLinux, 'OpenSpace', 'build-all');
|
||||
}
|
||||
stage('linux/warnings') {
|
||||
// compileHelper.recordCompileIssues(compileHelper.Gcc());
|
||||
|
||||
@@ -112,6 +112,7 @@ begin_header("Dependency: SGCT")
|
||||
|
||||
set(SGCT_TEXT OFF CACHE BOOL "" FORCE)
|
||||
set(SGCT_DEP_INCLUDE_FREETYPE OFF CACHE BOOL "" FORCE)
|
||||
set(SGCT_DEP_INCLUDE_FMT OFF CACHE BOOL "" FORCE)
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/sgct)
|
||||
target_include_directories(OpenSpace SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/ext/sgct/include)
|
||||
|
||||
+1
-1
Submodule apps/OpenSpace/ext/sgct updated: c164947107...ae6837af80
+9
-202
@@ -82,14 +82,6 @@
|
||||
#include "SpoutLibrary.h"
|
||||
#endif // OPENSPACE_HAS_SPOUT
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
#include <ittnotify.h>
|
||||
|
||||
// If this is set to 'true', it will disable all frame markers in this file and expect
|
||||
// you to place them in the code you actually want to inspect
|
||||
constexpr const bool EnableDetailedVtune = false;
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
#ifdef OPENSPACE_HAS_NVTOOLS
|
||||
#include "nvToolsExt.h"
|
||||
#endif // OPENSPACE_HAS_NVTOOLS
|
||||
@@ -114,26 +106,6 @@ glm::mat4 currentModelMatrix;
|
||||
Window* FirstOpenVRWindow = nullptr;
|
||||
#endif
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
|
||||
struct {
|
||||
__itt_domain* init;
|
||||
__itt_domain* preSync;
|
||||
__itt_domain* postSyncPreDraw;
|
||||
__itt_domain* render;
|
||||
__itt_domain* draw2D;
|
||||
__itt_domain* postDraw;
|
||||
__itt_domain* keyboard;
|
||||
__itt_domain* mouseButton;
|
||||
__itt_domain* mousePos;
|
||||
__itt_domain* mouseScroll;
|
||||
__itt_domain* character;
|
||||
__itt_domain* encode;
|
||||
__itt_domain* decode;
|
||||
} _vTune;
|
||||
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
//
|
||||
// SPOUT-support
|
||||
//
|
||||
@@ -242,11 +214,6 @@ LONG WINAPI generateMiniDump(EXCEPTION_POINTERS* exceptionPointers) {
|
||||
void mainInitFunc(GLFWwindow*) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.init, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainInitFunc(begin)");
|
||||
|
||||
LDEBUG("Initializing OpenSpace Engine started");
|
||||
@@ -353,7 +320,6 @@ void mainInitFunc(GLFWwindow*) {
|
||||
//
|
||||
// Screenshots
|
||||
//
|
||||
|
||||
std::string screenshotPath = "${SCREENSHOTS}";
|
||||
if (global::configuration.shouldUseScreenshotDate) {
|
||||
std::time_t now = std::time(nullptr);
|
||||
@@ -372,23 +338,12 @@ void mainInitFunc(GLFWwindow*) {
|
||||
|
||||
|
||||
LTRACE("main::mainInitFunc(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.init, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainPreSyncFunc() {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.preSync, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainPreSyncFunc(begin)");
|
||||
|
||||
try {
|
||||
@@ -475,11 +430,6 @@ void mainPreSyncFunc() {
|
||||
}
|
||||
|
||||
LTRACE("main::mainPreSyncFunc(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.preSync, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
@@ -487,11 +437,6 @@ void mainPreSyncFunc() {
|
||||
void mainPostSyncPreDrawFunc() {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.postSyncPreDraw, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
#ifdef OPENSPACE_HAS_NVTOOLS
|
||||
nvtxRangePush("postSyncPreDraw");
|
||||
#endif // OPENSPACE_HAS_NVTOOLS
|
||||
@@ -511,23 +456,13 @@ void mainPostSyncPreDrawFunc() {
|
||||
#ifdef OPENSPACE_HAS_NVTOOLS
|
||||
nvtxRangePop();
|
||||
#endif // OPENSPACE_HAS_NVTOOLS
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.postSyncPreDraw, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainRenderFunc(const RenderData& data) {
|
||||
void mainRenderFunc(const sgct::RenderData& data) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.render, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
#ifdef OPENSPACE_HAS_NVTOOLS
|
||||
nvtxRangePush("render");
|
||||
#endif // OPENSPACE_HAS_NVTOOLS
|
||||
@@ -586,23 +521,12 @@ void mainRenderFunc(const RenderData& data) {
|
||||
#ifdef OPENSPACE_HAS_NVTOOLS
|
||||
nvtxRangePop();
|
||||
#endif // OPENSPACE_HAS_NVTOOLS
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.render, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainDraw2DFunc(const RenderData& data) {
|
||||
void mainDraw2DFunc(const sgct::RenderData& data) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.draw2D, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainDraw2DFunc(begin)");
|
||||
|
||||
currentWindow = &data.window;
|
||||
@@ -622,23 +546,12 @@ void mainDraw2DFunc(const RenderData& data) {
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
LTRACE("main::mainDraw2DFunc(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.draw2D, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainPostDrawFunc() {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.postDraw, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainPostDrawFunc(begin)");
|
||||
|
||||
#ifdef OPENVR_SUPPORT
|
||||
@@ -679,11 +592,6 @@ void mainPostDrawFunc() {
|
||||
#endif // OPENSPACE_HAS_SPOUT
|
||||
|
||||
LTRACE("main::mainPostDrawFunc(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.postDraw, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
@@ -692,12 +600,6 @@ void mainKeyboardCallback(sgct::Key key, sgct::Modifier modifiers, sgct::Action
|
||||
int)
|
||||
{
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.keyboard, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainKeyboardCallback(begin)");
|
||||
|
||||
const openspace::Key k = openspace::Key(key);
|
||||
@@ -706,11 +608,6 @@ void mainKeyboardCallback(sgct::Key key, sgct::Modifier modifiers, sgct::Action
|
||||
global::openSpaceEngine.keyboardCallback(k, m, a);
|
||||
|
||||
LTRACE("main::mainKeyboardCallback(begin)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.keyboard, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
@@ -719,12 +616,6 @@ void mainMouseButtonCallback(sgct::MouseButton key, sgct::Modifier modifiers,
|
||||
sgct::Action action)
|
||||
{
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.mouseButton, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainMouseButtonCallback(begin)");
|
||||
|
||||
const openspace::MouseButton k = openspace::MouseButton(key);
|
||||
@@ -733,53 +624,24 @@ void mainMouseButtonCallback(sgct::MouseButton key, sgct::Modifier modifiers,
|
||||
global::openSpaceEngine.mouseButtonCallback(k, a, m);
|
||||
|
||||
LTRACE("main::mainMouseButtonCallback(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.mouseButton, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainMousePosCallback(double x, double y) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.mousePos, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
global::openSpaceEngine.mousePositionCallback(x, y);
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.mousePos, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainMouseScrollCallback(double posX, double posY) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.mouseScroll, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainMouseScrollCallback(begin");
|
||||
|
||||
global::openSpaceEngine.mouseScrollWheelCallback(posX, posY);
|
||||
|
||||
LTRACE("main::mainMouseScrollCallback(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.mouseScroll, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
@@ -787,43 +649,19 @@ void mainMouseScrollCallback(double posX, double posY) {
|
||||
void mainCharCallback(unsigned int codepoint, int modifiers) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.character, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
const KeyModifier m = KeyModifier(modifiers);
|
||||
global::openSpaceEngine.charCallback(codepoint, m);
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.character, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::vector<std::byte> mainEncodeFun() {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.encode, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainEncodeFun(begin)");
|
||||
|
||||
std::vector<std::byte> data = global::openSpaceEngine.encode();
|
||||
|
||||
LTRACE("main::mainEncodeFun(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.encode, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -831,43 +669,30 @@ std::vector<std::byte> mainEncodeFun() {
|
||||
|
||||
void mainDecodeFun(const std::vector<std::byte>& data, unsigned int) {
|
||||
ZoneScoped
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_begin_v3(_vTune.decode, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
LTRACE("main::mainDecodeFun(begin)");
|
||||
|
||||
global::openSpaceEngine.decode(data);
|
||||
|
||||
LTRACE("main::mainDecodeFun(end)");
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
__itt_frame_end_v3(_vTune.decode, nullptr);
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mainLogCallback(Log::Level level, const char* message) {
|
||||
void mainLogCallback(Log::Level level, std::string_view message) {
|
||||
ZoneScoped
|
||||
|
||||
std::string msg = message;
|
||||
// Remove the trailing \n that is passed along
|
||||
switch (level) {
|
||||
case Log::Level::Debug:
|
||||
LDEBUGC("SGCT", msg);
|
||||
LDEBUGC("SGCT", message);
|
||||
break;
|
||||
case Log::Level::Info:
|
||||
LINFOC("SGCT", msg);
|
||||
LINFOC("SGCT", message);
|
||||
break;
|
||||
case Log::Level::Warning:
|
||||
LWARNINGC("SGCT", msg);
|
||||
LWARNINGC("SGCT", message);
|
||||
break;
|
||||
case Log::Level::Error:
|
||||
LERRORC("SGCT", msg);
|
||||
LERRORC("SGCT", message);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1103,25 +928,6 @@ int main(int argc, char** argv) {
|
||||
SetUnhandledExceptionFilter(generateMiniDump);
|
||||
#endif // WIN32
|
||||
|
||||
#ifdef OPENSPACE_HAS_VTUNE
|
||||
if (EnableDetailedVtune) {
|
||||
_vTune.init = __itt_domain_create("init");
|
||||
_vTune.preSync = __itt_domain_create("preSync");
|
||||
_vTune.postSyncPreDraw = __itt_domain_create("postSyncPreDraw");
|
||||
_vTune.render = __itt_domain_create("render");
|
||||
_vTune.draw2D = __itt_domain_create("draw2D");
|
||||
_vTune.postDraw = __itt_domain_create("postDraw");
|
||||
_vTune.keyboard = __itt_domain_create("keyboard");
|
||||
_vTune.mouseButton = __itt_domain_create("mouseButton");
|
||||
_vTune.mousePos = __itt_domain_create("mousePos");
|
||||
_vTune.mouseScroll = __itt_domain_create("mouseScroll");
|
||||
_vTune.character = __itt_domain_create("character");
|
||||
_vTune.encode = __itt_domain_create("encode");
|
||||
_vTune.decode = __itt_domain_create("decode");
|
||||
}
|
||||
#endif // OPENSPACE_HAS_VTUNE
|
||||
|
||||
|
||||
// Initialize the LogManager and add the console log as this will be used every time
|
||||
// and we need a fall back if something goes wrong between here and when we add the
|
||||
// logs from the configuration file. If the user requested as specific loglevel in the
|
||||
@@ -1267,6 +1073,7 @@ int main(int argc, char** argv) {
|
||||
|
||||
Log::instance().setLogToConsole(false);
|
||||
Log::instance().setShowTime(false);
|
||||
Log::instance().setShowLogLevel(false);
|
||||
Log::instance().setLogCallback(mainLogCallback);
|
||||
|
||||
#ifdef __APPLE__
|
||||
@@ -1304,9 +1111,9 @@ int main(int argc, char** argv) {
|
||||
ghoul::deinitialize();
|
||||
}
|
||||
catch (...) {
|
||||
Engine::destroy();
|
||||
global::openSpaceEngine.deinitialize();
|
||||
ghoul::deinitialize();
|
||||
Engine::destroy();
|
||||
throw;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,127 +0,0 @@
|
||||
--apollo.scene
|
||||
asset.require('./base')
|
||||
local propertyHelper = asset.require('util/property_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
|
||||
|
||||
asset.require('scene/solarsystem/planets/earth/moon/moon')
|
||||
asset.require('scene/solarsystem/missions/apollo/8/apollo8.asset')
|
||||
|
||||
-- Custom Keybindings
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "E",
|
||||
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.setPropertyValue('*Trail.Renderable.Enabled', false)",
|
||||
Documentation = "Jump to right before the earthrise photo",
|
||||
Name = "Set Earthrise time",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "U",
|
||||
Command = "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",
|
||||
Name = "Set Apollo 8 launch time",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "K",
|
||||
Command = propertyHelper.invert('Scene.Moon.Renderable.Layers.ColorLayers.Kaguya_Utah.Enabled'),
|
||||
Documentation = "Toggles Moon Kaguya color layer",
|
||||
Name = "Toggle Kaguya layer on the Moon",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "T",
|
||||
Command = propertyHelper.invert('Scene.Apollo8MoonTrail.Renderable.Enabled'),
|
||||
Documentation = "Toggles the trails of the Apollo 8 orbits, focused around the Moon",
|
||||
Name = "Toggle Apollo 8 orbits",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "SHIFT+T",
|
||||
Command = propertyHelper.invert('Scene.Apollo8LaunchTrail.Renderable.Enabled'),
|
||||
Documentation = "Toggles the trails of the Apollo 8 Launch, focused around the Earth",
|
||||
Name = "Toggle Apollo 8 launch trail",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "CTRL+T",
|
||||
Command = propertyHelper.invert('Scene.Apollo8EarthBarycenterTrail.Renderable.Enabled'),
|
||||
Documentation = "Toggles the trails of the full Apollo 8, with Earth's frame of reference",
|
||||
Name = "Toggles Apollo 8 full trail",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "S",
|
||||
Command = propertyHelper.invert('Scene.Moon.Renderable.PerformShading'),
|
||||
Documentation = "Toggles shading for the Moon",
|
||||
Name = "Toggle Moon shading",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "PAGE_UP",
|
||||
Command = "openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Apollo8')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Set camera focus to Apollo 8",
|
||||
Name = "Focus on Apollo 8",
|
||||
GuiPath = "/Missions/Apollo/8",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "PAGE_DOWN",
|
||||
Command = "openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Moon')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Set camera focus to the Moon",
|
||||
Name = "Focus on Moon",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "HOME",
|
||||
Command = "openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Aim', '')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.Anchor', 'Earth')" ..
|
||||
"openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Set camera focus to the Earth",
|
||||
Name = "Focus on Earth",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
}
|
||||
}
|
||||
|
||||
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
||||
asset.onInitialize(function ()
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.time.setTime("1968-12-21T12:51:51.0")
|
||||
-- Earthrise:
|
||||
-- openspace.time.setTime("1968-12-24T16:37:19.0")
|
||||
|
||||
openspace.markInterestingNodes({ "Earth", "Moon", "Apollo8", "Apollo8Launch" })
|
||||
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.MinimumAllowedDistance', 0.000000);
|
||||
|
||||
openspace.globebrowsing.goToGeo(earthAsset.Earth.Identifier, 20, -60, 15000000)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Earth", "Moon", "Apollo8" })
|
||||
end)
|
||||
@@ -1,113 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
-- local station2 = asset.require('scene/solarsystem/missions/apollo/17/bouldersstation2')
|
||||
-- local station6 = asset.require('scene/solarsystem/missions/apollo/17/bouldersstation6')
|
||||
-- local station7 = asset.require('scene/solarsystem/missions/apollo/17/bouldersstation7')
|
||||
asset.require('scene/solarsystem/missions/apollo/8/apollo8')
|
||||
asset.require('scene/solarsystem/missions/apollo/11/apollo11')
|
||||
asset.require('scene/solarsystem/missions/apollo/17/lem')
|
||||
asset.require('scene/solarsystem/missions/apollo/apollo_globebrowsing')
|
||||
asset.require('scene/solarsystem/missions/apollo/11/lem_flipbook')
|
||||
asset.require('scene/solarsystem/missions/apollo/insignias_map')
|
||||
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "m",
|
||||
Command = "openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Moon'); " ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil);",
|
||||
Documentation = "Focus on Moon",
|
||||
Name = "Focus on Moon",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F9",
|
||||
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.setPropertyValueSingle('Scene.Moon.Renderable.Layers.HeightLayers.LRO_NAC_Apollo_17.Enabled', false);",
|
||||
Documentation = "Disable apollo site on moon when switching",
|
||||
Name = "Disable Apollo site",
|
||||
GuiPath = "/Missions/Apollo",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F11",
|
||||
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.LodScaleFactor', 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 A11 site",
|
||||
Name = "Setup A11 site",
|
||||
GuiPath = "/Missions/Apollo/11",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F7",
|
||||
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_station6a.Enabled', true);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_station6a.BlendMode', 0.000000);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_station2.Enabled', true);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_station2.BlendMode', 0.000000);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_station7.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.LodScaleFactor', 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 A17 site",
|
||||
Name = "Setup A17 site",
|
||||
GuiPath = "/Missions/Apollo/17",
|
||||
Local = false
|
||||
}
|
||||
}
|
||||
|
||||
local moonAsset = asset.require('scene/solarsystem/planets/earth/moon/moon')
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("1972 DEC 12 19:47:11")
|
||||
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.markInterestingNodes({
|
||||
"Moon", "Apollo11LemModel", "Apollo17LemModel",
|
||||
"Apollo11", "Apollo11LunarLander",
|
||||
-- "Station_2_Boulder2", "Station_6_Fragment1"
|
||||
})
|
||||
|
||||
openspace.setPropertyValueSingle('Scene.Moon.Renderable.Layers.ColorLayers.A17_travmap.BlendMode', 0);
|
||||
-- To enable both sites by default, uncomment these lines
|
||||
-- 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.Layers.ColorLayers.A17_station7.BlendMode', 0.000000);
|
||||
-- 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.globebrowsing.goToGeo(moonAsset.Moon.Identifier, 20, -60, 15000000)
|
||||
|
||||
openspace.setPropertyValueSingle("Scene.Moon.Renderable.PerformShading", false)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({
|
||||
"Moon", "Apollo11Lem", "Apollo17Lem",
|
||||
"Apollo11", "Apollo11LemPosition",
|
||||
-- "Station_6_Fragment1", "Station_6_Fragments_2_3"
|
||||
})
|
||||
end)
|
||||
@@ -1,36 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
||||
|
||||
asset.require('scene/solarsystem/sssb/amor_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/apollo_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/aten_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/atira_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/centaur_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/chiron-type_comet')
|
||||
asset.require('scene/solarsystem/sssb/encke-type_comet')
|
||||
asset.require('scene/solarsystem/sssb/halley-type_comet')
|
||||
asset.require('scene/solarsystem/sssb/inner_main_belt_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/jupiter_trojan_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/jupiter-family_comet')
|
||||
asset.require('scene/solarsystem/sssb/main_belt_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/mars-crossing_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/outer_main_belt_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/transneptunian_object_asteroid')
|
||||
asset.require('scene/solarsystem/sssb/pha')
|
||||
asset.require('scene/solarsystem/sssb/c2019y4atlas')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
local now = openspace.time.currentWallTime()
|
||||
-- Jump back one day to be able to show complete weather data on Earth.
|
||||
openspace.time.setTime(openspace.time.advancedTime(now, "-1d"))
|
||||
|
||||
openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 2.7e12)
|
||||
|
||||
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
||||
openspace.setPropertyValue('Scene.C2019Y4AtlasTrail.Renderable.Enabled', false)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
||||
end)
|
||||
+12
-6
@@ -11,15 +11,21 @@ asset.require('spice/base')
|
||||
|
||||
asset.require('scene/solarsystem/sun/sun')
|
||||
asset.require('scene/solarsystem/sun/glare')
|
||||
asset.require('scene/solarsystem/planets')
|
||||
asset.require('scene/solarsystem/sun/default_layers')
|
||||
asset.require('scene/solarsystem/planets/planets')
|
||||
asset.require('scene/solarsystem/planets/default_layers')
|
||||
asset.require('scene/solarsystem/planets/mars/moons/phobos')
|
||||
asset.require('scene/solarsystem/planets/mars/moons/deimos')
|
||||
asset.require('scene/solarsystem/dwarf_planets/pluto/system')
|
||||
asset.request('scene/milkyway/milkyway/volume')
|
||||
asset.request('scene/milkyway/constellations/constellation_art')
|
||||
asset.request('scene/milkyway/constellations/constellation_keybinds')
|
||||
asset.require('scene/solarsystem/dwarf_planets/pluto/default_layers')
|
||||
asset.require('scene/solarsystem/dwarf_planets/pluto/charon/default_layers')
|
||||
asset.require('scene/milkyway/milkyway/volume')
|
||||
asset.require('scene/milkyway/constellations/constellation_art')
|
||||
asset.require('scene/milkyway/constellations/constellation_keybinds')
|
||||
|
||||
assetHelper.requestAll(asset, 'scene/digitaluniverse')
|
||||
assetHelper.requireAll(asset, 'scene/milkyway/exoplanets')
|
||||
|
||||
assetHelper.requireAll(asset, 'scene/digitaluniverse')
|
||||
|
||||
-- Load default key bindings applicable to most scenes
|
||||
asset.require('util/default_keybindings')
|
||||
@@ -29,7 +35,7 @@ asset.require('util/default_joystick')
|
||||
-- Load web gui
|
||||
local webGui = asset.require('util/webgui')
|
||||
|
||||
asset.request('customization/globebrowsing')
|
||||
asset.require('customization/globebrowsing')
|
||||
|
||||
-- Keybindings that are specific for this scene
|
||||
local Keybindings = {
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
-- This is a base scene that is included in most other scenes to set up defaults
|
||||
-- loading this scene directly without any other elements added on top of it will
|
||||
-- probably not work
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
local propertyHelper = asset.require('util/property_helper')
|
||||
|
||||
-- Specifying which other assets should be loaded in this scene
|
||||
asset.require('spice/base')
|
||||
-- Load default key bindings applicable to most scenes
|
||||
asset.require('util/default_keybindings')
|
||||
asset.require('util/default_dashboard')
|
||||
asset.require('util/default_joystick')
|
||||
|
||||
-- Load web gui
|
||||
local webGui = asset.require('util/webgui')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
webGui.setCefRoute("onscreen")
|
||||
openspace.setDefaultGuiSorting()
|
||||
openspace.globebrowsing.loadWMSServersFromFile(
|
||||
openspace.absPath("${DATA}/globebrowsing_servers.lua")
|
||||
)
|
||||
end)
|
||||
@@ -31,7 +31,7 @@ local vrt_folders = {
|
||||
-- We recommend using this folder for HiRISE
|
||||
openspace.absPath('${BASE}/../OpenSpaceData/Mars/HiRISE'),
|
||||
-- if not and you have a custom path for HiRISE layers, enter it below
|
||||
'',
|
||||
''
|
||||
},
|
||||
Moon = {
|
||||
-- Add folders here whose contents will be automatically added to the Moon globe
|
||||
@@ -58,10 +58,12 @@ asset.onInitialize(function ()
|
||||
-- Add local patches described at the top of this file
|
||||
for obj, list in pairs(vrt_folders) do
|
||||
for _, dir in pairs(list) do
|
||||
openspace.globebrowsing.addBlendingLayersFromDirectory(dir, obj)
|
||||
if (dir ~= '') then
|
||||
openspace.globebrowsing.addBlendingLayersFromDirectory(dir, obj)
|
||||
|
||||
if CreateFocusNodes then
|
||||
openspace.globebrowsing.addFocusNodesFromDirectory(dir, obj)
|
||||
if CreateFocusNodes then
|
||||
openspace.globebrowsing.addFocusNodesFromDirectory(dir, obj)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#Version
|
||||
1.0
|
||||
|
||||
#Asset
|
||||
scene/solarsystem/missions/dawn/ceres required
|
||||
scene/solarsystem/missions/dawn/dawn required
|
||||
scene/solarsystem/missions/dawn/vesta required
|
||||
|
||||
#Time
|
||||
absolute 2011 AUG 06 00:00:00
|
||||
|
||||
#Camera
|
||||
setNavigationState "Dawn" 526781518487.171326, 257168309890.072144, -1381125204152.817383
|
||||
|
||||
#MarkNodes
|
||||
Dawn
|
||||
Ceres
|
||||
Vesta
|
||||
@@ -1,21 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
asset.require('scene/solarsystem/missions/dawn/ceres')
|
||||
asset.require('scene/solarsystem/missions/dawn/dawn')
|
||||
asset.require('scene/solarsystem/missions/dawn/vesta')
|
||||
|
||||
local DawnAsset = asset.require('scene/solarsystem/missions/dawn/dawn')
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2011 AUG 06 00:00:00")
|
||||
|
||||
openspace.markInterestingNodes({ "Dawn", "Ceres", "Vesta" })
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = DawnAsset.Dawn.Identifier,
|
||||
Position = { 526781518487.171326, 257168309890.072144, -1381125204152.817383 },
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Dawn", "Ceres", "Vesta" })
|
||||
end)
|
||||
@@ -1,21 +0,0 @@
|
||||
#Version
|
||||
1.0
|
||||
|
||||
#Asset
|
||||
scene/solarsystem/planets/earth/earth required
|
||||
scene/solarsystem/planets/earth/satellites/satellites required
|
||||
|
||||
#Property
|
||||
setPropertyValue {earth_satellites}.Renderable.Enabled false
|
||||
|
||||
#Time
|
||||
relative -1d
|
||||
|
||||
#Camera
|
||||
goToGeo "Earth" 58.5877 16.1924 20000000
|
||||
|
||||
#MarkNodes
|
||||
Earth
|
||||
Mars
|
||||
Moon
|
||||
Sun
|
||||
@@ -1,29 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
||||
asset.require('scene/solarsystem/planets/earth/satellites/satellites.asset')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
local now = openspace.time.currentWallTime()
|
||||
-- Jump back one day to be able to show complete weather data on Earth.
|
||||
openspace.time.setTime(openspace.time.advancedTime(now, "-1d"))
|
||||
|
||||
openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 20000000)
|
||||
|
||||
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
||||
|
||||
openspace.setPropertyValue("{earth_satellites}.Renderable.Enabled", false)
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
||||
end)
|
||||
|
||||
asset.meta = {
|
||||
Name = "Default scene",
|
||||
Version = "1.0",
|
||||
Description = [[ Bla bla, something something asteroids ]],
|
||||
Author = "OpenSpace Team",
|
||||
URL = "http://openspaceproject.com",
|
||||
License = "MIT license"
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
#Version
|
||||
1.0
|
||||
|
||||
#Asset
|
||||
scene/solarsystem/planets/earth/earth required
|
||||
scene/solarsystem/planets/jupiter/minor_moons required
|
||||
scene/solarsystem/planets/saturn/minor_moons required
|
||||
scene/solarsystem/planets/uranus/minor_moons required
|
||||
scene/solarsystem/planets/neptune/inner_moons required
|
||||
scene/solarsystem/planets/neptune/irregular_prograde_moons required
|
||||
scene/solarsystem/planets/neptune/irregular_retrograde_moons required
|
||||
|
||||
#Time
|
||||
relative -1d
|
||||
|
||||
#Camera
|
||||
goToGeo "Earth" 58.5877 16.1924 20000000
|
||||
|
||||
#MarkNodes
|
||||
Earth
|
||||
Mars
|
||||
Moon
|
||||
Sun
|
||||
@@ -1,7 +0,0 @@
|
||||
asset.require('./default')
|
||||
asset.require('scene/solarsystem/planets/jupiter/minor_moons')
|
||||
asset.require('scene/solarsystem/planets/saturn/minor_moons')
|
||||
asset.require('scene/solarsystem/planets/uranus/minor_moons')
|
||||
asset.require('scene/solarsystem/planets/neptune/inner_moons')
|
||||
asset.require('scene/solarsystem/planets/neptune/irregular_prograde_moons')
|
||||
asset.require('scene/solarsystem/planets/neptune/irregular_retrograde_moons')
|
||||
@@ -34,9 +34,9 @@ local Example_Fixed_Height = {
|
||||
Body = "NEW HORIZONS",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj"
|
||||
},
|
||||
ColorTexture = textures .. "/NHTexture.jpg",
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj",
|
||||
ColorTexture = textures .. "/NHTexture.jpg"
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Example"
|
||||
@@ -59,9 +59,9 @@ local Example_Adaptive_Height = {
|
||||
Body = "NEW HORIZONS",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj"
|
||||
},
|
||||
ColorTexture = textures .. "/NHTexture.jpg",
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj",
|
||||
ColorTexture = textures .. "/NHTexture.jpg"
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Example"
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
local scale = 3E11
|
||||
|
||||
local radialGrid = {
|
||||
Identifier = "ExampleRadialGrid",
|
||||
Parent = "Root",
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = scale
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableRadialGrid",
|
||||
Opacity = 0.8,
|
||||
GridColor = {0.6, 1.0, 0.7},
|
||||
LineWidth = 3.0,
|
||||
GridSegments = {3, 4},
|
||||
InnerRadius = 0.2,
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
Name = "Example Radial Grid",
|
||||
Path = "/Examples/Grids"
|
||||
}
|
||||
}
|
||||
|
||||
local planarGrid = {
|
||||
Identifier = "ExampleGrid",
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = scale
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableGrid",
|
||||
GridColor = {0.0, 1.0, 0.8},
|
||||
LineWidth = 2.0,
|
||||
Segments = {5, 10},
|
||||
Size = {1, 2},
|
||||
Enabled = false
|
||||
},
|
||||
GUI = {
|
||||
Name = "Example Grid",
|
||||
Path = "/Examples/Grids"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
radialGrid,
|
||||
planarGrid
|
||||
})
|
||||
@@ -8,10 +8,10 @@ local ToyVolume = {
|
||||
Parent = transforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableToyVolume",
|
||||
Size = {5, 5, 5},
|
||||
Size = { 5, 5, 5 },
|
||||
ScalingExponent = 11,
|
||||
StepSize = 0.01,
|
||||
Color = {1, 0, 0, 1}
|
||||
Color = { 1, 0, 0 }
|
||||
},
|
||||
GUI = {
|
||||
Path = "/Examples"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#Version
|
||||
1.0
|
||||
|
||||
#Module
|
||||
Gaia openspace.printFatal('Could not load scene due to missing module "gaia"')
|
||||
|
||||
#Asset
|
||||
scene/solarsystem/planets/earth/earth required
|
||||
scene/milkyway/gaia/gaiastars required
|
||||
scene/milkyway/gaia/apogee required
|
||||
scene/milkyway/gaia/galah required
|
||||
scene/solarsystem/missions/gaia/gaia required
|
||||
scene/solarsystem/missions/gaia/trail required
|
||||
|
||||
#Property
|
||||
setPropertyValueSingle Scene.Stars.Renderable.Enabled false
|
||||
|
||||
#Camera
|
||||
setNavigationState "Earth" 1000000000000.0, 1000000000000.0, 1000000000000.0
|
||||
|
||||
#MarkNodes
|
||||
Gaia
|
||||
@@ -1,46 +0,0 @@
|
||||
local has_gaia = openspace.modules.isLoaded('Gaia')
|
||||
if not has_gaia then
|
||||
openspace.printFatal('Could not load scene "' .. asset.filePath .. '" due to missing module "gaia"')
|
||||
do return end
|
||||
end
|
||||
|
||||
asset.require('./base')
|
||||
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
-- Augment default scene with gaia data, 3D model and trail
|
||||
asset.require('scene/milkyway/gaia/gaiastars')
|
||||
asset.require('scene/milkyway/gaia/apogee')
|
||||
asset.require('scene/milkyway/gaia/galah')
|
||||
asset.require('scene/solarsystem/missions/gaia/gaia')
|
||||
asset.require('scene/solarsystem/missions/gaia/trail')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "GaiaEarthDistance",
|
||||
GuiName = "Gaia Earth Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "Gaia",
|
||||
DestinationType = "Node Surface",
|
||||
DestinationNodeName = "Earth"
|
||||
}
|
||||
})
|
||||
|
||||
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.setPropertyValueSingle('Scene.Stars.Renderable.Enabled', false);
|
||||
|
||||
openspace.markInterestingNodes({ "Gaia" })
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = earthAsset.Earth.Identifier,
|
||||
Position = { 1000000000000.0, 1000000000000.0, 1000000000000.0 },
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Gaia" })
|
||||
end)
|
||||
@@ -1,87 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
|
||||
-- Keybindings that are specific for this scene
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "i",
|
||||
Command = "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);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Enabled', true);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Enabled', true);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Gamma', 3.098590);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Multiplier', 3.568080);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Multiplier', 2.816900);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Settings.Gamma', 0.938970);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Gamma', 2.394370);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Enabled', true);",
|
||||
Documentation = "Setup Insight landing layers",
|
||||
Name = "Setup Insight layers",
|
||||
GuiPath = "/Missions/Insight",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "SHIFT+i",
|
||||
Command = "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset', 0);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Settings.Offset', 0);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Enabled', false);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Enabled', false);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Enabled', false);",
|
||||
-- "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Gamma', 1.0);" ..
|
||||
-- "openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Multiplier', 1.0);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Multiplier', 1.0);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Settings.Gamma', 1.0);" ..
|
||||
"openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Gamma', 1.0);";
|
||||
Documentation = "Undo Insight landing layers setup",
|
||||
Name = "Unset Insight layers",
|
||||
GuiPath = "/Missions/Insight",
|
||||
Local = false
|
||||
}
|
||||
}
|
||||
|
||||
local insightAsset = asset.require('scene/solarsystem/missions/insight/edl')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2018 NOV 26 19:39:03.68")
|
||||
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
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);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Enabled', true);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Enabled', true);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Gamma', 3.098590);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Multiplier', 3.568080);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Multiplier', 2.81690);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Settings.Gamma', 0.938970);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Gamma', 2.394370);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Enabled', true);
|
||||
|
||||
openspace.markInterestingNodes({ "Insight" })
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = insightAsset.Insight.Identifier,
|
||||
Position = { 8.430115E0, -1.791710E1, 2.813660E0 },
|
||||
ReferenceFrame = "Root",
|
||||
Up = { 0.494659E0,0.357162E0,0.792306E0 },
|
||||
})
|
||||
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.Mola_Utah.Settings.Offset', 0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Settings.Offset', 0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.HeightLayers.OnMarsHiRISELS.Enabled', false);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Enabled', false);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Gamma', 1.0);
|
||||
-- openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.insight_ctx.Settings.Multiplier', 1.0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Multiplier', 1.0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Settings.Gamma', 1.0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.MOC_WA_Color_Utah.Settings.Gamma', 1.0);
|
||||
openspace.setPropertyValueSingle('Scene.Mars.Renderable.Layers.ColorLayers.OnMarsHiRISELS.Enabled', false);
|
||||
|
||||
openspace.removeInterestingNodes({ "Insight" })
|
||||
end)
|
||||
@@ -1,31 +0,0 @@
|
||||
asset.request('./base')
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
|
||||
assetHelper.requireAll(asset, 'scene/solarsystem/missions/juno')
|
||||
|
||||
|
||||
local junoAsset = asset.require('scene/solarsystem/missions/juno/juno')
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2016-07-01T10:05:00.00")
|
||||
|
||||
openspace.markInterestingNodes({ "Jupiter", "Juno" })
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = junoAsset.Juno.Identifier,
|
||||
Position = { 1.243398E8, 7.176068E7, -1.519733E7 },
|
||||
ReferenceFrame = "Root",
|
||||
Up = { -0.377400E0, 0.764573E0, 0.522492E0 },
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Jupiter", "Juno" })
|
||||
end)
|
||||
@@ -1,61 +0,0 @@
|
||||
asset.require('./base')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
|
||||
local perseveranceAsset = asset.require('scene/solarsystem/missions/perseverance/perseverance')
|
||||
local perseveranceShortcuts = asset.require('scene/solarsystem/missions/perseverance/shortcuts')
|
||||
|
||||
local insightAsset = asset.require('scene/solarsystem/missions/insight/edl')
|
||||
local insightShortcuts = asset.require('scene/solarsystem/missions/insight/shortcuts')
|
||||
|
||||
local insightEDLShortcuts = sceneHelper.extractShortcuts({"Insight Height Offset",
|
||||
"Enable HiRISE",
|
||||
"Insight EDL Time",
|
||||
"Insight EDL NavigationState"},
|
||||
insightShortcuts.Shortcuts)
|
||||
|
||||
local insightDisableShortcuts = sceneHelper.extractShortcuts({
|
||||
"Default Height Offset",
|
||||
"Disable HiRISE"},
|
||||
insightShortcuts.Shortcuts)
|
||||
|
||||
local PerseverenceLandedShortcuts = sceneHelper.extractShortcuts({
|
||||
"Perseverance Height Offset",
|
||||
"Perseverance landed time",
|
||||
"Enable HiRISE"},
|
||||
perseveranceShortcuts.Shortcuts)
|
||||
|
||||
|
||||
local Keybindings = {
|
||||
sceneHelper.createKeyBindFromShortcuts("i",
|
||||
insightEDLShortcuts,
|
||||
"/Missions/Insight",
|
||||
"Set and goto Insight Landing",
|
||||
"Setup scene for insight EDL"
|
||||
),
|
||||
sceneHelper.createKeyBindFromShortcuts("SHIFT+i",
|
||||
insightDisableShortcuts,
|
||||
"/Missions/Insight",
|
||||
"Unset Insight Landing",
|
||||
"Disable Mars layer settings used for insight EDL"
|
||||
),
|
||||
sceneHelper.createKeyBindFromShortcuts("p",
|
||||
PerseverenceLandedShortcuts,
|
||||
"/Missions/Perseverance"
|
||||
)
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
local now = openspace.time.currentWallTime()
|
||||
openspace.time.setTime(now)
|
||||
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.globebrowsing.goToGeo("Mars", 58.5877, 16.1924, 8000000)
|
||||
|
||||
openspace.markInterestingNodes({ "Mars", insightAsset.Insight.Identifier, "Perseverance" })
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
openspace.removeInterestingNodes({ "Mars", insightAsset.Insight.Identifier})
|
||||
end)
|
||||
@@ -1,46 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
|
||||
local MessengerAsset = asset.require('scene/solarsystem/missions/messenger/messengerSC')
|
||||
|
||||
if not openspace.modules.isLoaded("Volume") then
|
||||
openspace.printWarning("Volume module is not loaded, skipping asset: mercurymagnetosphere")
|
||||
else
|
||||
asset.require('scene/solarsystem/missions/messenger/mercurymagnetosphere')
|
||||
end
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "MessengerDistance",
|
||||
GuiName = "Messenger - Mercury Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "Messenger",
|
||||
DestinationType = "Node",
|
||||
DestinationNodeName = "Mercury"
|
||||
}
|
||||
})
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2011 MAY 13 00:05:18")
|
||||
|
||||
openspace.markInterestingNodes({ "Mercury", "Messenger", "Sun" })
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = "Mercury",
|
||||
Position = { 2.423690E11, 1.979038E11, -2.241483E10 },
|
||||
ReferenceFrame = "Root",
|
||||
Up = { -0.492046E0, 0.666088E0, 0.560551E0 }
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
openspace.removeInterestingNodes({ "Mercury", "Messenger", "Sun" })
|
||||
end)
|
||||
@@ -1,274 +0,0 @@
|
||||
asset.require('./base');
|
||||
|
||||
asset.require('scene/solarsystem/missions/newhorizons/newhorizons')
|
||||
local NewHorizonsAsset = asset.require('scene/solarsystem/missions/newhorizons/model')
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local propertyHelper = asset.require('util/property_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
local renderableHelper = asset.require('util/renderable_helper')
|
||||
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "a",
|
||||
Command = "openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'NewHorizons');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Sets the focus of the camera on 'NewHorizons'.",
|
||||
Name = "Focus on New Horizons",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "SHIFT+a",
|
||||
Command = "openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'NewHorizons');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', 'Pluto');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Sets the focus of the camera on 'NewHorizons'.",
|
||||
Name = "Anchor at New Horizons, Aim at Pluto",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "s",
|
||||
Command = "openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Pluto');"..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Sets the focus of the camera on 'Pluto'",
|
||||
Name = "Focus on Pluto",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "d",
|
||||
Command = "openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Anchor', 'Charon');"..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.Aim', '');" ..
|
||||
"openspace.setPropertyValue('NavigationHandler.OrbitalNavigator.RetargetAnchor', nil)",
|
||||
Documentation = "Sets the focus of the camera on 'Charon'.",
|
||||
Name = "Focus on New Charon",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F7",
|
||||
Command =
|
||||
[[local enabled = openspace.getPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.PerformProjection')
|
||||
openspace.setPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.PerformProjection', not enabled)
|
||||
openspace.setPropertyValue('Scene.CharonProjection.Renderable.ProjectionComponent.PerformProjection', not enabled)
|
||||
openspace.setPropertyValueSingle("Dashboard.NewHorizonsInstruments.Enabled", not enabled)]],
|
||||
Documentation = "Toggles New Horizons image projection.",
|
||||
Name = "Toggle NH Image Projection",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F8",
|
||||
Command = "openspace.setPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.ClearAllProjections', true);" ..
|
||||
"openspace.setPropertyValue('Scene.CharonProjection.Renderable.ProjectionComponent.ClearAllProjections', true);",
|
||||
Documentation = "Removes all image projections from Pluto and Charon.",
|
||||
Name = "Clear image projections",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F9",
|
||||
Command = "openspace.time.setTime('2015-07-14T09:00:00.00');" ..
|
||||
"openspace.setPropertyValue('Scene.PlutoProjection.Renderable.ProjectionComponent.ClearAllProjections', true);" ..
|
||||
"openspace.setPropertyValue('Scene.CharonProjection.Renderable.ProjectionComponent.ClearAllProjections', true);",
|
||||
Documentation = "Jumps to the 14th of July 2015 at 0900 UTC and clears all projections.",
|
||||
Name = "Reset time and projections",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "KP_8",
|
||||
Command = propertyHelper.increment('Scene.PlutoProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Increases the height map exaggeration on Pluto.",
|
||||
Name = "Pluto HeightExaggeration +",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "CTRL+I",
|
||||
Command = propertyHelper.increment('Scene.PlutoProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Increases the height map exaggeration on Pluto.",
|
||||
Name = "Pluto HeightExaggeration +",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "KP_2",
|
||||
Command = propertyHelper.decrement('Scene.PlutoProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Decreases the height map exaggeration on Pluto.",
|
||||
Name = "Pluto HeightExaggeration -",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "CTRL+K",
|
||||
Command = propertyHelper.decrement('Scene.PlutoProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Decreases the height map exaggeration on Pluto.",
|
||||
Name = "Pluto HeightExaggeration -",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "KP_9",
|
||||
Command = propertyHelper.increment('Scene.CharonProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Increases the height map exaggeration on Charon.",
|
||||
Name = "Charon HeightExaggeration +",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "CTRL+O",
|
||||
Command = propertyHelper.increment('Scene.CharonProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Increases the height map exaggeration on Charon.",
|
||||
Name = "Charon HeightExaggeration +",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "KP_3",
|
||||
Command = propertyHelper.decrement('Scene.CharonProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Decreases the height map exaggeration on Charon.",
|
||||
Name = "Charon HeightExaggeration -",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "CTRL+L",
|
||||
Command = propertyHelper.decrement('Scene.CharonProjection.Renderable.HeightExaggeration', 5000),
|
||||
Documentation = "Decreases the height map exaggeration on Charon.",
|
||||
Name = "Charon HeightExaggeration -",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "o",
|
||||
Command = propertyHelper.invert('Scene.PlutoBarycentricTrail.Renderable.Enabled'),
|
||||
Documentation = "Toggles the visibility of the trail behind Pluto.",
|
||||
Name = "Toggle Pluto Trail",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "j",
|
||||
Command = renderableHelper.toggle('Scene.PlutoText') .. renderableHelper.toggle('Scene.CharonText') ..
|
||||
renderableHelper.toggle('Scene.HydraText') .. renderableHelper.toggle('Scene.NixText') ..
|
||||
renderableHelper.toggle('Scene.KerberosText') .. renderableHelper.toggle('Scene.StyxText'),
|
||||
Documentation = "Toggles the visibility of the text labels of Pluto, Charon, Hydra, Nix, Kerberos, and Styx.",
|
||||
Name = "Toggle Pluto Labels",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "l",
|
||||
Command = propertyHelper.fadeInOut('Scene.Labels.Renderable.Opacity', 2.0),
|
||||
Documentation = "Toggles the visibility of the labels for the New Horizons instruments.",
|
||||
Name = "Toggle New Horizons Labels",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "m",
|
||||
Command = propertyHelper.invert('Scene.NH_LORRI.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_LEISA.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_PAN1.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_PAN2.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_RED.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_BLUE.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_FT.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_METHANE.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_RALPH_MVIC_NIR.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_ALICE_AIRGLOW.Renderable.SolidDraw') ..
|
||||
propertyHelper.invert('Scene.NH_ALICE_SOC.Renderable.SolidDraw'),
|
||||
Documentation = "Draws the instrument field of views in a solid color or as lines.",
|
||||
Name = "Toggle instrument FOVs",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "Shift+t",
|
||||
Command = renderableHelper.toggle('Scene.PlutoShadow') .. renderableHelper.toggle('Scene.CharonShadow'),
|
||||
Documentation = "Toggles the visibility of the shadow visualization of Pluto and Charon.",
|
||||
Name = "Toggle Shadows",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "t",
|
||||
Command = renderableHelper.toggle('Scene.NewHorizonsTrailPluto'),
|
||||
Documentation = "Toggles the trail of New Horizons.",
|
||||
Name = "Toggle NH Trail",
|
||||
GuiPath = "/New Horizons",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "h",
|
||||
Name="Hide Trails",
|
||||
Command = "local list = openspace.getProperty('*Trail.Renderable.Enabled'); for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)) end",
|
||||
Documentation = "Disables visibility of the trails",
|
||||
GuiPath = "/Rendering",
|
||||
Local = false
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemSpacing",
|
||||
Identifier = "NewHorizonsSpacing",
|
||||
GuiName = "New Horizons Spacing",
|
||||
Spacing = 25
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "NewHorizonsPlutoDistance",
|
||||
GuiName = "New Horizons Pluto Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "NewHorizons",
|
||||
DestinationType = "Node Surface",
|
||||
DestinationNodeName = "PlutoProjection"
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemInstruments",
|
||||
Identifier = "NewHorizonsInstruments",
|
||||
GuiName = "NewHorizons Instruments",
|
||||
}
|
||||
})
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2015-07-14T08:00:00.00")
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.markInterestingNodes({ "Pluto", "NewHorizons", "Charon" })
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 60, 120, 360, 540, 1080,
|
||||
2160, 4320, 8640
|
||||
})
|
||||
|
||||
openspace.setPropertyValueSingle('NavigationHandler.OrbitalNavigator.FollowAnchorNodeRotationDistance', 20.000000);
|
||||
openspace.setPropertyValueSingle('Scene.Pluto.Renderable.Enabled', false)
|
||||
openspace.setPropertyValueSingle('Scene.Charon.Renderable.Enabled', false)
|
||||
openspace.setPropertyValueSingle("Scene.PlutoBarycenterTrail.Renderable.Enabled", false)
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = "NewHorizons",
|
||||
ReferenceFrame = "Root",
|
||||
Position = { -6.572656E1, -7.239404E1, -2.111890E1 },
|
||||
Up = { 0.102164, -0.362945, 0.926193 }
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.removeInterestingNodes({ "Pluto", "NewHorizons", "Charon" })
|
||||
|
||||
openspace.setPropertyValueSingle('Scene.Pluto.Renderable.Enabled', true)
|
||||
openspace.setPropertyValueSingle('Scene.Charon.Renderable.Enabled', true)
|
||||
openspace.setPropertyValueSingle('Scene.PlutoBarycenterTrail.Renderable.Enabled', true)
|
||||
end)
|
||||
@@ -1,147 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
local propertyHelper = asset.require('util/property_helper')
|
||||
|
||||
asset.require('scene/solarsystem/missions/osirisrex/osirisrex')
|
||||
|
||||
-- Custom Keybindings
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "a",
|
||||
Command = "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'.",
|
||||
Name = "Focus on OsirisRex",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "s",
|
||||
Command = "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'",
|
||||
Name = "Focus on Bennu",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
-- TODO
|
||||
-- Maybe these can be fixed later
|
||||
-- {
|
||||
-- Key = "F6",
|
||||
-- Command = "openspace.printInfo('Set time: Launch');openspace.time.setTime('2016 SEP 08 23:05:00');",
|
||||
-- Documentation = "Sets the time to the launch of Osiris Rex.",
|
||||
-- Name = "Set launch time",
|
||||
-- GuiPath = "/Missions/Osiris Rex",
|
||||
-- Local = false
|
||||
-- },
|
||||
-- {
|
||||
-- Key = "F7",
|
||||
-- Command = "openspace.printInfo('Set time: Gravity Assist');openspace.time.setTime('2017 SEP 22 15:00:00');",
|
||||
-- Documentation = "Sets the time to the Earth gravity assist.",
|
||||
-- Name = "Set Earth gravity assist time",
|
||||
-- GuiPath = "/Missions/Osiris Rex",
|
||||
-- Local = false
|
||||
-- },
|
||||
{
|
||||
Key = "F8",
|
||||
Command = "openspace.printInfo('Set time: Approach');openspace.time.setTime('2018-SEP-11 21:31:01.183');",
|
||||
Documentation = "Sets the time to the approach at Bennu.",
|
||||
Name = "Set Bennu approach time",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F9",
|
||||
Command = "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.",
|
||||
Name = "Set Bennu survey time",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F10",
|
||||
Command = "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.",
|
||||
Name = "Set orbital B event time",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F11",
|
||||
Command = "openspace.printInfo('Set time: Recon');openspace.time.setTime('2019-MAY-25 03:50:31.195');",
|
||||
Documentation = "Sets the time to the recon event.",
|
||||
Name = "Set recon event time",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "q",
|
||||
Command = propertyHelper.invert('Scene.SunMarker.Renderable.Enabled'),
|
||||
Documentation = "Toggles the visibility of the text marking the location of the Sun.",
|
||||
Name = "Toggle Sun marker",
|
||||
GuiPath = "/Missions/Osiris Rex",
|
||||
Local = false
|
||||
},
|
||||
-- {
|
||||
-- Key = "e",
|
||||
-- Command = propertyHelper.invert('Scene.EarthMarker.Renderable.Enabled'),
|
||||
-- Documentation = "Toggles the visibility of the text marking the location of the Earth.",
|
||||
-- Name = "Toggle Earth marker",
|
||||
-- GuiPath = "/Missions/Osiris Rex",
|
||||
-- Local = false
|
||||
-- }
|
||||
}
|
||||
|
||||
local OsirisRexAsset = asset.require('scene/solarsystem/missions/osirisrex/model')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemSpacing",
|
||||
Identifier = "OsirisRexSpacing",
|
||||
GuiName = "OSIRIS-REx Spacing",
|
||||
Spacing = 25
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "OsirisRexBennuDistance",
|
||||
GuiName = "OSIRIS-REx Bennu Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "OsirisRex",
|
||||
DestinationType = "Node",
|
||||
DestinationNodeName = "BennuBarycenter"
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemInstruments",
|
||||
Identifier = "OsirisRexInstruments",
|
||||
GuiName = "OSIRIS-REx Instruments",
|
||||
}
|
||||
})
|
||||
|
||||
asset.onInitialize(function ()
|
||||
|
||||
openspace.time.setTime("2018 10 30 23:00:00.500")
|
||||
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 60, 120, 360, 540, 1080,
|
||||
2160, 4320, 8640
|
||||
})
|
||||
|
||||
openspace.markInterestingNodes({ "OsirisRex", "BennuBarycenter", "Earth" })
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = OsirisRexAsset.OsirisRex.Identifier,
|
||||
Position = { 26974590199.661884, 76314608558.908020, -127086452897.101791 }
|
||||
})
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
|
||||
openspace.removeInterestingNodes({ "OsirisRex", "BennuBarycenter", "Earth" })
|
||||
end)
|
||||
@@ -1,152 +0,0 @@
|
||||
asset.require('./base')
|
||||
|
||||
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sceneHelper = asset.require('util/scene_helper')
|
||||
local propertyHelper = asset.require('util/property_helper')
|
||||
local renderableHelper = asset.require('util/renderable_helper')
|
||||
|
||||
asset.require('scene/solarsystem/missions/rosetta/67p')
|
||||
asset.require('scene/solarsystem/missions/rosetta/rosetta')
|
||||
|
||||
-- Custom Keybindings
|
||||
local Keybindings = {
|
||||
{
|
||||
Key = "a",
|
||||
Command = "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'.",
|
||||
Name = "Focus on 67P",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "s",
|
||||
Command = "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'",
|
||||
Name = "Focus on Rosetta",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "Shift+F6",
|
||||
Command = "openspace.time.setTime('2014-08-01T03:05:18.10')",
|
||||
Documentation = "Jumps to the time of initial approach of Rosetta to 67P.",
|
||||
Name = "Set initial approach time",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F6",
|
||||
Command = "openspace.time.setTime('2014-11-12T08:20:00.00')",
|
||||
Documentation = "Jumps to the time when the Philae lander is released.",
|
||||
Name = "Set lander release time",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "F8",
|
||||
Command = "openspace.setPropertyValue('Scene.67P.Renderable.ProjectionComponent.ClearAllProjections', true)",
|
||||
Documentation = "Removes all image projections from 67P.",
|
||||
Name = "Clear 67P projections",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
-- {
|
||||
-- Key = "q",
|
||||
-- Command = propertyHelper.invert('Scene.SunMarker.Renderable.Enabled'),
|
||||
-- Documentation = "Toggles the visibility of the text marking the location of the Sun.",
|
||||
-- Name = "Toggle Sun marker",
|
||||
-- GuiPath = "/Missions/Rosetta",
|
||||
-- Local = false
|
||||
-- },
|
||||
{
|
||||
Key = "e",
|
||||
Command = renderableHelper.toggle('Scene.JupiterTrail') .. renderableHelper.toggle('Scene.SaturnTrail') ..
|
||||
renderableHelper.toggle('Scene.UranusTrail') .. renderableHelper.toggle('Scene.NeptuneTrail'),
|
||||
Documentation = "Toggles the visibility of all trails further from the Sun than 67P.",
|
||||
Name = "Toggle outer planetary trails",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "i",
|
||||
Command = renderableHelper.toggle('Scene.ImagePlaneRosetta'),
|
||||
Documentation = "Toggles the visibility of the free floating image plane.",
|
||||
Name = "Toggle image plane",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "o",
|
||||
Command = renderableHelper.toggle('Scene.PhilaeTrail'),
|
||||
Documentation = "Toggles the visibility of Philae's trail.",
|
||||
Name = "Toggle Philae trail",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
},
|
||||
{
|
||||
Key = "p",
|
||||
Command = propertyHelper.invert('Scene.67P.Renderable.ProjectionComponent.PerformProjection'),
|
||||
Documentation = "Enables or disables the image projection on 67P.",
|
||||
Name = "Toggle 67P projection",
|
||||
GuiPath = "/Missions/Rosetta",
|
||||
Local = false
|
||||
}
|
||||
}
|
||||
|
||||
local Comet67PAsset = asset.require('scene/solarsystem/missions/rosetta/67p')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemSpacing",
|
||||
Identifier = "RosettaSpacing",
|
||||
GuiName = "Rosetta Spacing",
|
||||
Spacing = 25
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "Rosetta67PDistance",
|
||||
GuiName = "Rosetta 67P Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "Rosetta",
|
||||
DestinationType = "Node",
|
||||
DestinationNodeName = "67P"
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemInstruments",
|
||||
Identifier = "RosettaInstruments",
|
||||
GuiName = "Rosetta Instruments",
|
||||
}
|
||||
})
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.time.setTime("2014-08-01T03:05:00.000")
|
||||
sceneHelper.bindKeys(Keybindings)
|
||||
|
||||
openspace.markInterestingNodes({ "67P", "Rosetta", "Philae" })
|
||||
|
||||
sceneHelper.setDeltaTimeKeys({
|
||||
1, 5, 10, 20, 40, 90, 360, 720, 2880, 14400,
|
||||
28800, 57600, 115200, 230400, 460800, 921600, 1843200, 3686400, 7372800, 14745600
|
||||
})
|
||||
|
||||
openspace.navigation.setNavigationState({
|
||||
Anchor = Comet67PAsset.Comet67P.Identifier,
|
||||
ReferenceFrame = "Root",
|
||||
Position = { -7.294781E5 , -6.657894E5, 2.509047E6 },
|
||||
Up = { 0.146529E0, 0.944727E0, 0.293290E0 }
|
||||
})
|
||||
|
||||
openspace.setPropertyValue('Scene.67P.Renderable.PerformShading', false);
|
||||
openspace.setPropertyValue('Scene.ImagePlaneRosetta.Renderable.Enabled', false);
|
||||
|
||||
end)
|
||||
|
||||
asset.onDeinitialize(function ()
|
||||
sceneHelper.unbindKeys(Keybindings)
|
||||
openspace.removeInterestingNodes({ "67P", "Rosetta", "Philae" })
|
||||
end)
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
File = speck .. "/abell.speck",
|
||||
Texture = textures .. "/point3A.png",
|
||||
LabelFile = speck .. "/abell.label",
|
||||
TextColor = { 0.0, 0.8, 0.0, 1.0 },
|
||||
TextColor = { 0.0, 0.8, 0.0 },
|
||||
TextSize = 22,
|
||||
TextMinSize = 10.0,
|
||||
Unit = "Mpc",
|
||||
|
||||
@@ -17,7 +17,7 @@ local object = {
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/stars-altlbl.label",
|
||||
TextColor = { 0.4, 0.4, 0.4, 1.0 },
|
||||
TextColor = { 0.4, 0.4, 0.4 },
|
||||
DrawLabels = true,
|
||||
TextSize = 14.7,
|
||||
TextMinSize = 6.0,
|
||||
|
||||
@@ -17,7 +17,7 @@ local object = {
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/galclust.label",
|
||||
TextColor = { 1.0, 0.44, 0.0, 1.0 },
|
||||
TextColor = { 1.0, 0.44, 0.0 },
|
||||
DrawLabels = true,
|
||||
TextSize = 22,
|
||||
TextMinSize = 8.0,
|
||||
|
||||
@@ -14,12 +14,11 @@ local constellationsExtragalactic = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 0.4, 0.2 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/constellationsEXGAL.speck",
|
||||
LabelFile = speck .. "/constellationsEXGAL.label",
|
||||
TextColor = { 0.8, 0.8, 0.8, 0.4 },
|
||||
TextColor = { 0.8, 0.8, 0.8 },
|
||||
TextOpacity = 0.4,
|
||||
TextSize = 20.0,
|
||||
TextMinSize = 20.0,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -37,12 +36,11 @@ local constellations = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 0.4, 0.2 },
|
||||
Transparency = 0.3,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.3,
|
||||
File = speck .. "/constellations.speck",
|
||||
LabelFile = speck .. "/constellations.label",
|
||||
TextColor = { 0.8, 0.8, 0.8, 0.3 },
|
||||
TextColor = { 0.8, 0.8, 0.8 },
|
||||
TextOpacity = 0.3,
|
||||
TextSize = 14.5,
|
||||
TextMaxSize = 170.0,
|
||||
TextMinSize = 8.0,
|
||||
|
||||
@@ -30,7 +30,7 @@ local deepSkyPoints = {
|
||||
--ColorOption = { "prox5Mpc" },
|
||||
--ColorRange = { { 1.0, 30.0 } },
|
||||
LabelFile = speck .. "/dso.label",
|
||||
TextColor = { 0.1, 0.4, 0.6, 1.0 },
|
||||
TextColor = { 0.1, 0.4, 0.6 },
|
||||
TextSize = 20.50,
|
||||
TextMinSize = 16.0,
|
||||
Unit = "Mpc",
|
||||
@@ -61,7 +61,7 @@ local deepSkyImages = {
|
||||
Type = "RenderablePlanesCloud",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.99,
|
||||
Opacity = 0.99,
|
||||
ScaleFactor = 1.0,
|
||||
File = speck .. "/dso.speck",
|
||||
TexturePath = textures,
|
||||
|
||||
@@ -29,7 +29,7 @@ local object = {
|
||||
ColorMap = speck .. "/dwarfs.cmap",
|
||||
ColorOption = { "typeindex" },
|
||||
--ColorRange = { { 1.0, 4.0} },
|
||||
TextColor = { 0.5, 0.1, 0.2, 1.0 },
|
||||
TextColor = { 0.5, 0.1, 0.2 },
|
||||
TextSize = 14.6,
|
||||
TextMinSize = 10.0,
|
||||
ScaleFactor = 370,
|
||||
|
||||
@@ -28,7 +28,7 @@ local object = {
|
||||
File = speck .. "/expl.speck",
|
||||
LabelFile = speck .. "/expl.label",
|
||||
ScaleFactor = 392.5,
|
||||
TextColor = { 0.3, 0.3, 0.8, 1.0 },
|
||||
TextColor = { 0.3, 0.3, 0.8 },
|
||||
TextSize = 14.8,
|
||||
TextMaxSize = 200.0,
|
||||
TextMinSize = 10.0,
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 5,
|
||||
LabelFile = speck .. "/gc.label",
|
||||
TextColor = { 0.5, 0.5, 0.0, 1.0 },
|
||||
TextColor = { 0.5, 0.5, 0.0 },
|
||||
ScaleFactor = 431.0,
|
||||
TextSize = 16.7,
|
||||
TextMinSize = 4.0,
|
||||
|
||||
@@ -2,6 +2,17 @@ local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
local earth_transforms = asset.require('scene/solarsystem/planets/earth/transforms')
|
||||
|
||||
local equatorialRotationMatrix = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.8734371 , -0.4448296, -0.1980764,
|
||||
-0.483835 , 0.7469823, 0.4559838
|
||||
}
|
||||
|
||||
local eclipticRotationMatrix = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
|
||||
local speck = asset.syncedResource({
|
||||
Name = "Grids Speck Files",
|
||||
@@ -19,6 +30,10 @@ local radio = {
|
||||
-- First TV signals strong enough to leave the ionosphere
|
||||
ReferenceDate = "1936 AUG 01 12:00:00",
|
||||
Speed = 299792458 -- c
|
||||
},
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = equatorialRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
@@ -26,11 +41,7 @@ local radio = {
|
||||
Enabled = false,
|
||||
Opacity = 1.0,
|
||||
GridColor = { 0.3, 0.84, 1.0 },
|
||||
LineWidth = 2.0,
|
||||
GridMatrix = { -0.05487554, 0.4941095, -0.8676661 , 0.0,
|
||||
-0.9938214 , -0.1109906, -0.0003515167, 0.0,
|
||||
-0.09647644, 0.8622859, 0.4971472 , 0.0,
|
||||
0.0 , 0.0 , 0.0 , 1.0 }
|
||||
LineWidth = 2.0
|
||||
},
|
||||
GUI = {
|
||||
Name = "Radio Sphere",
|
||||
@@ -44,7 +55,11 @@ local oort = {
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 7.47989845E15;
|
||||
Scale = 7.47989845E15
|
||||
},
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
@@ -52,11 +67,7 @@ local oort = {
|
||||
Enabled = false,
|
||||
Opacity = 0.8,
|
||||
GridColor = { 0.8, 0.4, 0.4 },
|
||||
LineWidth = 2.0,
|
||||
GridMatrix = { -0.05487554, 0.4941095, -0.8676661 , 0.0,
|
||||
-0.9938214 , -0.1109906, -0.0003515167, 0.0,
|
||||
-0.09647644, 0.8622859, 0.4971472 , 0.0,
|
||||
0.0 , 0.0 , 0.0 , 1.0 }
|
||||
LineWidth = 2.0
|
||||
},
|
||||
GUI = {
|
||||
Name = "Oort Sphere",
|
||||
@@ -70,7 +81,11 @@ local ecliptic = {
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 9.46377307652E17;
|
||||
Scale = 9.46377307652E17
|
||||
},
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
@@ -78,11 +93,7 @@ local ecliptic = {
|
||||
Enabled = false,
|
||||
Opacity = 1.0,
|
||||
GridColor = { 0.74, 0.26, 0.26 },
|
||||
LineWidth = 2.0,
|
||||
GridMatrix = { -0.05487554, 0.4941095, -0.8676661 , 0.0,
|
||||
-0.9938214 , -0.1109906, -0.0003515167, 0.0,
|
||||
-0.09647644, 0.8622859, 0.4971472 , 0.0,
|
||||
0.0 , 0.0 , 0.0 , 1.0 }
|
||||
LineWidth = 2.0
|
||||
},
|
||||
GUI = {
|
||||
Name = "Ecliptic Sphere",
|
||||
@@ -93,24 +104,24 @@ local ecliptic = {
|
||||
local eclipticLabels = {
|
||||
Identifier = "EclipticSphereLabels",
|
||||
Parent = transforms.SolarSystemBarycenter.Name,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.65,
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/eclip.label",
|
||||
DrawLabels = true,
|
||||
TextColor = { 0.5, 0.5, 0.5, 1.0 },
|
||||
TextColor = { 0.5, 0.5, 0.5 },
|
||||
TextSize = 14.75,
|
||||
TextMinSize = 1.3,
|
||||
TextMaxSize = 50.0,
|
||||
Unit = "pc",
|
||||
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
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Ecliptic Sphere Labels",
|
||||
@@ -125,6 +136,10 @@ local equatorial = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 4.28601E17;
|
||||
},
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = equatorialRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
@@ -132,11 +147,7 @@ local equatorial = {
|
||||
Enabled = false,
|
||||
Opacity = 0.8,
|
||||
GridColor = { 0.69, 0.68, 0.29 },
|
||||
LineWidth = 2.0,
|
||||
GridMatrix = { -0.05487554, 0.4941095, -0.8676661, 0.0,
|
||||
-0.8734371 , -0.4448296, -0.1980764, 0.0,
|
||||
-0.483835 , 0.7469823, 0.4559838, 0.0,
|
||||
0.0 , 0.0 , 0.0 , 1.0 },
|
||||
LineWidth = 2.0
|
||||
},
|
||||
GUI = {
|
||||
Name = "Equatorial Sphere",
|
||||
@@ -147,24 +158,24 @@ local equatorial = {
|
||||
local equatorialLabels = {
|
||||
Identifier = "EquatorialSphereLabels",
|
||||
Parent = transforms.SolarSystemBarycenter.Name,
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = equatorialRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.65,
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/radec.label",
|
||||
DrawLabels = true,
|
||||
TextColor = { 0.5, 0.5, 0.5, 1.0 },
|
||||
TextColor = { 0.5, 0.5, 0.5 },
|
||||
TextSize = 14.5,
|
||||
TextMinSize = 1.7,
|
||||
TextMaxSize = 70.0,
|
||||
Unit = "pc",
|
||||
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
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Equatorial Sphere Labels",
|
||||
@@ -201,10 +212,10 @@ local galacticLabels = {
|
||||
Type = "RenderableBillboardsCloud",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.65,
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/galac.label",
|
||||
DrawLabels = true,
|
||||
TextColor = { 0.5, 0.5, 0.5, 1.0 },
|
||||
TextColor = { 0.5, 0.5, 0.5 },
|
||||
TextSize = 15.8,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 100.0,
|
||||
@@ -222,23 +233,17 @@ local plane1ld = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/1ld.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -256,23 +261,17 @@ local plane1lm = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/1lm.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/1lm.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 11.8,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -290,23 +289,17 @@ local plane1ly = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/1ly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/1ly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 13.0,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -324,23 +317,17 @@ local plane10ly = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/10ly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/10ly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 14.17,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -358,23 +345,17 @@ local plane100ly = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/100ly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/100ly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 15.0,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -392,23 +373,17 @@ local plane1kly = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/1kly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/1kly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 16.0,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -426,23 +401,17 @@ local plane10kly = {
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "StaticRotation",
|
||||
Rotation = {
|
||||
-0.05487554, 0.4941095, -0.8676661,
|
||||
-0.9938214 , -0.1109906, -0.0003515167,
|
||||
-0.09647644, 0.8622859, 0.4971472
|
||||
}
|
||||
Rotation = eclipticRotationMatrix
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/10kly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/10kly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 17.25,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -459,13 +428,11 @@ local plane100kly = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/100kly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/100kly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 18.6,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -482,13 +449,11 @@ local plane1Mly = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/1Mly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/1Mly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 19.6,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -505,13 +470,11 @@ local plane10Mly = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/10Mly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/10Mly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 20.6,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -528,13 +491,11 @@ local plane100Mly = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/100Mly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/100Mly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 21.6,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -551,13 +512,11 @@ local plane20Gly = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.4,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 0.4,
|
||||
File = speck .. "/20Gly.speck",
|
||||
MeshColor = {{ 0.1, 0.5, 0.6 }},
|
||||
LabelFile = speck .. "/20Gly.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 23.6,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
|
||||
@@ -18,7 +18,7 @@ local object = {
|
||||
Opacity = 0.65,
|
||||
--ScaleFactor = 10.0,
|
||||
LabelFile = speck .. "/groups.label",
|
||||
TextColor = { 0.1, 0.6, 0.2, 1.0 },
|
||||
TextColor = { 0.1, 0.6, 0.2 },
|
||||
TextSize = 21.5,
|
||||
TextMinSize = 8.0,
|
||||
Unit = "Mpc",
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
Texture = textures .."/point4.png",
|
||||
PolygonSides = 6,
|
||||
LabelFile = speck .. "/h2.label",
|
||||
TextColor = { 0.5, 0.5, 0.5, 1.0 },
|
||||
TextColor = { 0.5, 0.5, 0.5 },
|
||||
ScaleFactor = 420,
|
||||
TextSize = 16.24,
|
||||
TextMinSize = 4.0,
|
||||
|
||||
@@ -29,7 +29,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 12,
|
||||
LabelFile = speck .. "/localgroup.label",
|
||||
TextColor = { 0.3, 0.3, 1.0, 1.0 },
|
||||
TextColor = { 0.3, 0.3, 1.0 },
|
||||
ScaleFactor = 465,
|
||||
TextSize = 18.3,
|
||||
TextMinSize = 7.3,
|
||||
|
||||
@@ -63,7 +63,7 @@ local plane = {
|
||||
Type = "RenderablePlanesCloud",
|
||||
Enabled = true,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.99,
|
||||
Opacity = 0.99,
|
||||
ScaleFactor = 2.8,
|
||||
File = planeSpeck .. "/galaxy.speck",
|
||||
TexturePath = planeTextures,
|
||||
@@ -92,7 +92,7 @@ local homeLabel = {
|
||||
-- Texture = textures .. "/point3.png",
|
||||
DrawLabels = true,
|
||||
LabelFile = homespeck .. "/home.label",
|
||||
TextColor = { 0.8, 0.8, 0.8, 1.0 },
|
||||
TextColor = { 0.8, 0.8, 0.8 },
|
||||
TextSize = 20.50,
|
||||
TextMinSize = 16.0,
|
||||
TransformationMatrix = {
|
||||
|
||||
@@ -31,7 +31,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 7,
|
||||
LabelFile = speck .. "/ob.label",
|
||||
TextColor = { 0.4, 0.5, 1.0, 1.0 },
|
||||
TextColor = { 0.4, 0.5, 1.0 },
|
||||
ScaleFactor = 390.0,
|
||||
TextSize = 16.24,
|
||||
TextMinSize = 4.50,
|
||||
|
||||
@@ -26,7 +26,7 @@ local object = {
|
||||
File = speck .. "/oc.speck",
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 12,
|
||||
TextColor = { 0.05, 0.4, 0.2, 1.0 },
|
||||
TextColor = { 0.05, 0.4, 0.2 },
|
||||
LabelFile = speck .. "/oc.label",
|
||||
ScaleFactor = 405.75,
|
||||
TextSize = 15.5,
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 3,
|
||||
LabelFile = speck .. "/pn.label",
|
||||
TextColor = { 0.25, 0.25, 0.65, 1.0 },
|
||||
TextColor = { 0.25, 0.25, 0.65 },
|
||||
ScaleFactor = 425.0,
|
||||
TextSize = 16.24,
|
||||
TextMinSize = 4.5,
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 4,
|
||||
LabelFile = speck .. "/pulsar.label",
|
||||
TextColor = { 0.7, 0.2, 0.2, 1.0 },
|
||||
TextColor = { 0.7, 0.2, 0.2 },
|
||||
ScaleFactor = 424,
|
||||
TextSize = 15.77,
|
||||
TextMinSize = 4,
|
||||
|
||||
@@ -17,7 +17,7 @@ local object = {
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/stars.label",
|
||||
TextColor = { 0.4, 0.4, 0.4, 1.0 },
|
||||
TextColor = { 0.4, 0.4, 0.4 },
|
||||
DrawLabels = true,
|
||||
TextSize = 14.7,
|
||||
TextMinSize = 6.0,
|
||||
|
||||
@@ -16,13 +16,11 @@ local sunOrbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = { 1.0, 0.65, 0.0 },
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-Sun.speck",
|
||||
MeshColor = {{ 1.0, 0.65, 0.0 }},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -40,13 +38,11 @@ local barnardsOrbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-BarnardsStar.speck",
|
||||
MeshColor = {{0.39, 0.58, 0.93}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -64,13 +60,11 @@ local kapteynsOrbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-KapteynsStar.speck",
|
||||
MeshColor = {{0.6, 0.6, 0.6}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -88,13 +82,11 @@ local lacaille9352Orbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-Lacaille9352.speck",
|
||||
MeshColor = {{0.58, 0.0, 0.83}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -112,13 +104,11 @@ local lSR1826Orbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-LSR1826+3014.speck",
|
||||
MeshColor = {{0.0, 0.39, 0.0}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -136,13 +126,11 @@ local lSRJ0822Orbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-LSRJ0822+1700.speck",
|
||||
MeshColor = {{0.5, 1.0, 0.0}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
@@ -160,13 +148,11 @@ local pM_J13420Orbit = {
|
||||
Renderable = {
|
||||
Type = "RenderableDUMeshes",
|
||||
Enabled = false,
|
||||
Color = {1.0, 1.0, 1.0},
|
||||
Transparency = 1.0,
|
||||
ScaleFactor = 1.0,
|
||||
Opacity = 1.0,
|
||||
File = speck .. "/starorbits-PM_J13420-3415.speck",
|
||||
MeshColor = {{0.70, 0.13, 0.13}},
|
||||
--LabelFile = speck .. "/1ld.label",
|
||||
TextColor = { 0.0, 0.2, 0.5, 1.0 },
|
||||
TextColor = { 0.0, 0.2, 0.5 },
|
||||
TextSize = 10.3,
|
||||
TextMinSize = 0.5,
|
||||
TextMaxSize = 30.0,
|
||||
|
||||
@@ -58,7 +58,7 @@ local sunstar = {
|
||||
MagnitudeExponent = 6.2,
|
||||
SizeComposition = "Distance Modulus",
|
||||
RenderMethod = "Texture Based", -- or PSF
|
||||
FadeInDistances = {0.0001, 0.1}
|
||||
FadeInDistances = { 0.0001, 0.1 }
|
||||
},
|
||||
GUI = {
|
||||
Name = "Sun",
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
File = speck .. "/superclust.speck",
|
||||
Texture = textures .. "/point3A.png",
|
||||
LabelFile = speck .. "/superclust.label",
|
||||
TextColor = { 0.9, 0.9, 0.9, 1.0 },
|
||||
TextColor = { 0.9, 0.9, 0.9 },
|
||||
ScaleFactor = 531.0,
|
||||
TextSize = 22.44,
|
||||
TextMinSize = 8.0,
|
||||
|
||||
@@ -27,7 +27,7 @@ local object = {
|
||||
Texture = textures .. "/point4.png",
|
||||
PolygonSides = 7,
|
||||
LabelFile = speck .. "/snr.label",
|
||||
TextColor = { 0.6, 0.46, 0.0, 1.0 },
|
||||
TextColor = { 0.6, 0.46, 0.0 },
|
||||
ScaleFactor = 424,
|
||||
TextSize = 16.44,
|
||||
TextMinSize = 4.0,
|
||||
|
||||
@@ -33,7 +33,7 @@ local tullyPoints = {
|
||||
ColorRange = { { 1.0, 30.0 } },
|
||||
LabelFile = speck .. "/tully.label",
|
||||
DrawLabels = true,
|
||||
TextColor = { 0.7, 0.7, 0.7, 1.0 },
|
||||
TextColor = { 0.7, 0.7, 0.7 },
|
||||
TextSize = 19.36,
|
||||
TextMinSize = 8.2,
|
||||
TransformationMatrix = {
|
||||
@@ -64,7 +64,7 @@ local tullyImages = {
|
||||
Type = "RenderablePlanesCloud",
|
||||
Enabled = true,
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Transparency = 0.99,
|
||||
Opacity = 0.99,
|
||||
ScaleFactor = 1.0,
|
||||
File = speck .. "/tully.speck",
|
||||
TexturePath = textures,
|
||||
|
||||
@@ -19,7 +19,7 @@ local object = {
|
||||
Color = { 1.0, 1.0, 1.0 },
|
||||
Opacity = 0.65,
|
||||
LabelFile = speck .. "/voids.label",
|
||||
TextColor = { 0.296, 0.629, 1.0, 1.0 },
|
||||
TextColor = { 0.296, 0.629, 1.0 },
|
||||
TextSize = 20.9,
|
||||
TextMinSize = 8.0,
|
||||
Unit = "Mpc"
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
local constellationsCSV = asset.localResource('constellation_data.csv')
|
||||
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
||||
|
||||
local images = asset.syncedResource({
|
||||
Name = "Constellation Images",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "constellation_images",
|
||||
Version = 1
|
||||
Version = 2
|
||||
})
|
||||
|
||||
--function that reads the file
|
||||
local createConstellations = function (guiPath, constellationfile)
|
||||
local createConstellations = function (baseIdentifier, guiPath, constellationfile)
|
||||
local genConstellations = {};
|
||||
--skip the first line
|
||||
local notFirstLine = false;
|
||||
@@ -32,7 +33,8 @@ local createConstellations = function (guiPath, constellationfile)
|
||||
group = (group == '' and globe or group)
|
||||
|
||||
local aconstellation = {
|
||||
Identifier = guiPath .. '-' .. name,
|
||||
-- Identifier = guiPath .. '-' .. name,
|
||||
Identifier = baseIdentifier .. '-' .. abbreviation,
|
||||
Parent = transforms.SolarSystemBarycenter.Identifier,
|
||||
Transform = {
|
||||
Translation = {
|
||||
@@ -82,7 +84,7 @@ local nodes = {}
|
||||
asset.onInitialize(function ()
|
||||
local constellationsCSV = images .. "/constellation_data.csv"
|
||||
|
||||
nodes = createConstellations('Constellation Art', constellationsCSV)
|
||||
nodes = createConstellations('ConstellationArt', 'Constellation Art', constellationsCSV)
|
||||
for _, n in ipairs(nodes) do
|
||||
openspace.addSceneGraphNode(n);
|
||||
end
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
Data about Constellations columns are: group, name, x, y, z, scale, imageName, rotX, rotY, rotZ, centerStar
|
||||
normal,Ori,Orion,-550.8742,-259.3621,-188.9620,1.5,Ori.png,1.128407,1.058407,1.668407,HD37128
|
||||
zodiac,Tau,Taurus,-18.7277,-0.3175,-6.9092,1.2,Tau.png,1.198407,0.908407,1.378407,Aldebran
|
||||
zodiac,Ari,Aries,-13.2892,9.4519,-11.9378,0.8,Ari.png,0.668407,0.538407,0.518407,Hamal
|
||||
zodiac,Gem,Gemini,-362.5493,-102.2245,79.4030,0.85,Gem.png,-0.731593,2.268407,-0.451593,Mekbuda
|
||||
zodiac,Cnc,Cancer,-30.9209,-16.4584,22.6601,0.8,Cnc.png,-1.151593,1.888407,-1.041593,HD74442
|
||||
zodiac,Leo,Leo,-17.9030,-13.2719,31.4196,1.33,Leo.png,-0.131593,2.448407,0.418407,HD89484
|
||||
zodiac,Vir,Virgo,36.5809,-35.1877,62.3341,1.5,Vir.png,-0.371593,3.138407,0.518407,HD116658
|
||||
zodiac,Lib,Libra,17.5393,-6.2768,14.5916,1.0,Lib.png,-1.011593,3.138407,1.318407,HD130819
|
||||
zodiac,Sco,Scorpius,137.4378,-19.4456,37.3606,1.2,Sco.png,1.698407,-1.001593,-1.751593,HD148478
|
||||
zodiac,Sgr,Sagittarius,66.2304,11.1498,-14.8095,1.2,Sgr.png,1.728407,-1.321593,-1.751593,HD175191
|
||||
zodiac,Cap,Capricornus,32.9799,20.0621,-29.3945,1.3,Cap.png,1.158407,-0.881593,-0.561593,HD200761
|
||||
zodiac,Aqr,Aquarius,86.5090,149.4078,-155.8102,1.2,Aqr.png,-2.921593,-2.391593,-2.551593,-2.511593
|
||||
zodiac,Psc,Pisces,-28.0235,45.3150,-76.8893,1.6,Psc.png,0.458407,-0.001593,0.618407,HD4656
|
||||
northern,Uma,Ursa Major,-12.0503,7.1931,19.8974,1.6,UMa.png,0.748407,2.398407,0.658407,HD95418
|
||||
northern,Dra,Draco,-1.4340,20.6566,23.5098,1.9,Dra.png,0.658407,-2.541593,1.058407,HD137759
|
||||
southern,Ant,Antila,-0.2233,-103.8908,42.7940,1.3,Ant.png,1.848407,0.198407,-3.141593,HD90610
|
||||
southern,Crv,Corvus,8.0442,-16.8858,19.3984,1.1,Crv.png,2.198407,-0.041593,-2.221593,HD108767
|
||||
southern,Cet,Cetus,-28.7960,7.2425,-73.6693,1.5,Cet.png,0.238407,0.368407,0.688407,HD11353
|
||||
southern,Cha,Chameleon,53.5121,-108.3624,-38.1807,1.1,Cha.png,-1.801593,2.738407,0.448407,HD92305
|
||||
northern,Cam,Camelopardalis,-304.8155,179.0620,71.1454,1.7,Cam.png,2.128407,1.228407,1.478407,HD31910
|
||||
equatorial,Aql,Aquila,11.7741,9.7467,-1.6418,1.0,Aql.png,-2.601593,-2.511593,-3.141593,HD182640
|
||||
southern,Aps,Apus,31.6370,-32.5620,-16.5786,1.1,Aps.png,-1.691593,-2.281593,0.838407,HD149324
|
||||
northern,Lyn,Lynx,-98.3174,4.4830,67.2289,1.2,Lyn.png,1.688407,1.768407,1.668407,HD70272
|
||||
southern,Phe,Phoenix,5.0172,-4.2096,-22.8088,1.5,Phe.png,-3.141593,3.138407,-3.141593,HD6595
|
||||
northern,Cyg,Cygnus,78.7445,375.2440,12.4995,1.4,Cyg.png,1.668407,-0.931593,-0.261593,HD194093
|
||||
southern,Cen,Centaurus,20.1398,-33.1830,9.5915,2.7,Cen.png,-1.291593,3.088407,0.458407,HD110304
|
||||
northern,Aur,Auriga,-12.3062,3.8595,1.0302,1.5,Aur.png,1.378407,1.108407,1.178407,HD34029
|
||||
northern,Peg,Pegasus,0.9791,32.5947,-27.7339,2.42,Peg.png,0.918407,-0.221593,-0.191593,HD218045
|
||||
southern,Hya,Hydra,-2.9043,-33.5496,25.8962,3,Hya.png,-0.531593,2.838407,0.368407,HD93813
|
||||
southern,Oct,Octans,22.0434,-27.8601,-24.3108,1.0,Oct.png,-0.911593,0.398407,1.198407,HD214846
|
||||
southern,Nor,Norma,34.9251,-17.5643,0.0068,1.0,Nor.png,-1.631593,-2.421593,1.298407,HD146686
|
||||
southern,Mus,Musca,48.8888,-79.2952,-10.2828,1.25,Mus.png,-1.871593,3.138407,0.358407,HD109668
|
||||
southern,Hyi,Hydrus,3.2767,-4.7183,-4.7829,1.1,Hyi.png,2.438407,-3.141593,-2.381593,HD2151
|
||||
northern,Lac,Lacerta,-6.0878,30.5794,-3.6064,1.0,Lac.png,-1.521593,-2.391593,3.138407,HD213558
|
||||
equatorial,Lep,Lepus,-212.6297,-184.4909,-132.1156,1.0,Lep.png,-1.801593,-2.351593,-0.861593,HD36673
|
||||
southern,Lup,Lupus,129.1166,-102.2983,33.3251,1.2,Lup.png,-1.191593,-2.391593,0.798407,HD129056
|
||||
southern,Men,Mensa,2.4149,-8.5586,-4.8892,1.0,Men.png,-2.101593,-2.781593,0.828407,HD43834
|
||||
southern,Mic,Microscopium,51.0335,11.1671,-44.3692,1.0,Mic.png,0.728407,-0.831593,-0.561593,HD199951
|
||||
equatorial,Mon,Monoceros,-93.0725,-66.8909,8.6548,1.2,Mon.png,-1.331593,1.988407,-0.891593,HD55185
|
||||
southern,Pav,Pavo,4.4549,-2.5959,-3.2739,1.3,Pav.png,-2.391593,-2.171593,1.648407,HD190248
|
||||
southern,Ind,Indus,133.6149,-53.5569,-115.9552,1.5,Ind.png,-2.031593,-1.491593,1.758407,HD198700
|
||||
northern,LMi,Leo Minor,-23.3948,-2.5770,38.0756,1.1,LMi.png,-3.141593,0.478407,-2.201593,HD90537
|
||||
northern,Lyr,Lyra,2.8086,6.7630,2.5555,1.0,Lyr.png,-1.831593,-2.091593,3.141500,HD172167
|
||||
northern,Her,Hercules,14.0526,14.9773,12.5478,1.3,Her.png,-1.511593,-1.811593,2.288407,HD156164
|
||||
southern,Gru,Grus,18.6528,-3.2893,-24.6602,1.3,Gru.png,-3.141593,-2.511593,-2.901593,HD209952
|
||||
southern,Crt,Crater,1.5886,-43.9831,40.3390,1.3,Crt.png,-0.521593,3.140000,0.588407,HD98430
|
||||
northern,Del,Delphinus,14.8599,24.6150,-8.0550,1.2,Del.png,1.308407,-0.951593,-0.241593,HD196524
|
||||
southern,Dor,Dorado,-0.6460,-9.3172,-6.9654,1.2,Dor.png,2.118407,1.768407,-2.901593,HD33262
|
||||
northern,Equ,Equuleus,27.7363,41.7071,-27.4371,1.2,Equ.png,-1.801593,-2.511593,2.558407,HD202447
|
||||
southern,Eri,Eridanus,-37.5153,-23.5231,-65.6368,2.1,Eri.png,0.128407,0.698407,0.998407,HD20720
|
||||
southern,For,Fornax,-14.0351,-17.8282,-46.5514,1.4,For.png,3.138407,2.678407,-2.351593,HD17652
|
||||
southern,Hor,Horologium,2.1021,-27.1310,-40.5136,1.2,Hor.png,-3.141593,2.468407,-2.191593,HD16920
|
||||
southern,Pyx,Pyxis,-66.7424,-248.9639,26.0445,1.2,Pyx.png,1.838407,-1.651593,2.708407,HD74575
|
||||
southern,Ret,Reticulum,2.8130,-37.2904,-33.2644,1.5,Ret.png,1.998407,2.188407,-2.591593,HD27256
|
||||
northern,Sge,Sagitta,44.3886,70.9446,-7.6264,1.2,Sge.png,-0.741593,-2.231593,2.108407,HD189319
|
||||
southern,Scl,Sculptor,21.6545,-6.8861,-166.5240,1.3,Scl.png,-0.071593,-0.221593,0.638407,HD2429
|
||||
southern,Sct,Scutum,48.8939,21.5158,-0.1629,1.2,Sct.png,1.188407,-1.271593,-0.971593,HD171443
|
||||
southern,Tuc,Tucana,35.3950,-20.2535,-45.2324,1.1,Tuc.png,-0.351593,-0.161593,0.308407,HD211416
|
||||
northern,Tri,Triangulum,-26.6263,21.9119,-16.2254,1.2,Tri.png,1.168407,0.218407,0.558407,HD13161
|
||||
southern,TrA,Triangulum Australe,96.2283,-76.4459,-33.5257,1.2,TrA.png,-1.991593,-2.491593,1.128407,HD150798
|
||||
southern,Tel,Telescopium,72.3444,-14.5016,-20.0248,1.2,Tel.png,-0.461593,-1.731593,0.298407,HD169467
|
||||
southern,Ara,Ara,164.9273,-75.6246,-35.3100,1.1,Ara.png,-1.381593,-2.131593,1.048407,HD157244
|
||||
southern,Cae,Caelum,-6.0961,-13.7926,-13.3392,1.0,Cae.png,-0.661593,0.948407,0.418407,HD29875
|
||||
southern,CMa,Canis Major,-1.7693,-1.9125,-0.4074,1.3,CMa.png,1.128407,1.048407,1.878407,HD48915
|
||||
northern,CMi,Canis Minor,-2.8348,-1.8906,0.7881,1.2,CMi.png,2.538407,1.138407,-3.141593,HD61421
|
||||
southern,Vol,Volans,37.6000,-182.7856,-62.6559,1.2,Vol.png,-2.441593,1.988407,-0.351593,HD68520
|
||||
northern,UMi,Ursa Minor,-11.3527,27.2100,25.1835,1.3,UMi.png,-2.491593,-0.581593,-2.381593,HD131873
|
||||
northern,And,Andromdeda,-32.8276,43.3946,-27.8475,1.6,And.png,-2.021593,-3.141593,-2.521593,HD6860
|
||||
northern,Boo,Bootes,11.2468,14.9864,30.4945,2.0,Boo.png,-3.141593,-0.601593,-2.361593,HD135722
|
||||
northern,Vul,Vulpecula,46.7540,77.7780,5.3953,1.1,Vul.png,-2.301593,-2.061593,-3.141593,HD131873
|
||||
northern,CVn,Canes Venatici,-3.1198,5.7935,33.1368,1.3,CVn.png,0.148407,3.138407,0.428407,HD112413
|
||||
southern,Cir,Circinus,11.4255,-11.6937,-1.3129,1.0,Cir.png,1.448407,-0.391593,-2.211593,HD128898
|
||||
northern,Com,Coma Berenices,1.9257,-1.2062,12.2465,1.4,Com.png,3.138407,-0.051593,-2.711593,HD114378
|
||||
southern,CrA,Corona Australis,146.1322,-4.7492,-53.7124,1.0,CrA.png,-3.141593,-2.021593,-3.141593,HD178345
|
||||
northern,CrB,Corona Borealis,33.5737,32.0314,52.9729,1.3,CrB.png,-3.141593,-0.601593,-2.271593,HD143107
|
||||
northern,Cas,Cassiopeia,-36.3073,59.4424,-7.6926,1.4,Cas.png,-1.431593,3.128407,-2.331593,HD3712
|
||||
northern,Cep,Cepheus,-2.8178,14.4985,2.3848,1.7,Cep.png,-1.331593,-2.291593,-2.931593,HD203280
|
||||
southern,Car,Carina Vela Puppis,14.1325,-188.6018,-42.2785,2.0,Car.png,2.078407,1.048407,-3.111593,HD71129
|
||||
northern,Col,Columba,-11.2568,-20.5973,-11.9895,1.0,Col.png,2.518407,1.358407,-2.981593,HD39425
|
||||
northern,Per,Perseus,-139.8202,79.8063,-16.2631,1.3,Per.png,-1.751593,2.428407,-2.411593,HD22928
|
||||
northern,Oph,Ophiuchus,127.9419,14.0822,56.2015,3.2,Oph.png,2.178407,-0.781593,-1.681593,HD149757
|
||||
southern,PsA,Piscis Austrinus,99.9977,47.6679,-199.6345,1.0,PsA.png,3.138407,-2.541593,-2.881593,HD214748
|
||||
southern,Cru,Crux,49.3509,-85.0446,-0.6223,1.1,Cru.png,1.718407,0.048407,-2.741593,HD108248
|
||||
southern,Pic,Pictor,-4.5417,-45.5649,-27.1768,1.0,Pic.png,2.568407,2.138407,-2.081593,HD39523
|
||||
|
@@ -4,9 +4,9 @@ local Keybindings = {
|
||||
{
|
||||
Key = "c",
|
||||
Name = "Show Constellation Art",
|
||||
Command = "openspace.setPropertyValue('Scene.Constellation Art*.Renderable.Opacity', 0);" ..
|
||||
"openspace.setPropertyValue('Scene.Constellation Art*.Renderable.Enabled', true);" ..
|
||||
"openspace.setPropertyValue('Scene.Constellation Art*.Renderable.Opacity', 0.1, 2);",
|
||||
Command = "openspace.setPropertyValue('Scene.ConstellationArt*.Renderable.Opacity', 0);" ..
|
||||
"openspace.setPropertyValue('Scene.ConstellationArt*.Renderable.Enabled', true);" ..
|
||||
"openspace.setPropertyValue('Scene.ConstellationArt*.Renderable.Opacity', 0.1, 2);",
|
||||
Documentation = "Enables and fades up constellation art work",
|
||||
GuiPath = "/Rendering",
|
||||
Local = false
|
||||
@@ -14,7 +14,7 @@ local Keybindings = {
|
||||
{
|
||||
Key = "SHIFT+c",
|
||||
Name = "Hide Constellation Art",
|
||||
Command = "openspace.setPropertyValue('Scene.Constellation Art*.Renderable.Opacity', 0, 2);",
|
||||
Command = "openspace.setPropertyValue('Scene.ConstellationArt*.Renderable.Opacity', 0, 2);",
|
||||
Documentation = "Fades out constellation artwork",
|
||||
GuiPath = "/Rendering",
|
||||
Local = false
|
||||
@@ -22,7 +22,7 @@ local Keybindings = {
|
||||
{
|
||||
Key = "CTRL+c",
|
||||
Name = "Disable Constellation Art",
|
||||
Command = "openspace.setPropertyValue('Scene.Constellation Art*.Renderable.Enabled', false);",
|
||||
Command = "openspace.setPropertyValue('Scene.ConstellationArt*.Renderable.Enabled', false);",
|
||||
Documentation = "Disable constellation artwork",
|
||||
GuiPath = "/Rendering",
|
||||
Local = false
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
local DataPath = asset.syncedResource({
|
||||
Name = "Exoplanet Data Files",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "exoplanets_data",
|
||||
Version = 1
|
||||
})
|
||||
asset.export("DataPath", DataPath)
|
||||
@@ -0,0 +1,7 @@
|
||||
local TexturesPath = asset.syncedResource({
|
||||
Name = "Exoplanet Textures",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "exoplanets_textures",
|
||||
Version = 1
|
||||
})
|
||||
asset.export("TexturesPath", TexturesPath)
|
||||
@@ -0,0 +1,51 @@
|
||||
--orionnebula/cluster.asset
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require("./transforms")
|
||||
|
||||
local sync = asset.syncedResource({
|
||||
Name = "Orion Nebula Star Cluster",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "orion_nebula_star_cluster",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local OrionClusterStars = {
|
||||
Identifier = "OrionClusterStars",
|
||||
Parent = transforms.NebulaPosition.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableStars",
|
||||
File = sync .. "/oricluster.speck",
|
||||
Texture = sync .. "/halo.png",
|
||||
Texture = sync .. "/colorbv.cmap",
|
||||
MagnitudeExponent = 5.02,
|
||||
SizeComposition = "Distance Modulus",
|
||||
RenderMethod = "Texture Based"
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula Star Cluster",
|
||||
Path = "/Milky Way/Stars"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { OrionClusterStars })
|
||||
|
||||
asset.meta = {
|
||||
Name = "Orion Nebula Star Cluster",
|
||||
Version = "1.0",
|
||||
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 distribution. ]],
|
||||
Author = "AMNH Digital Universe",
|
||||
URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
|
||||
License = "custom"
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
local transforms = asset.require('./transforms')
|
||||
|
||||
local center = sunTransforms.SolarSystemBarycenter.Identifier;
|
||||
local LIGHTS = assetHelper.getDefaultLightSources(center);
|
||||
|
||||
local sync = asset.syncedResource({
|
||||
Name = "Orion Nebula Model",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "orion_nebula_model",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local NebulaHolder = {
|
||||
Identifier = "OrionNebulaHolder",
|
||||
Parent = transforms.NebulaPosition.Identifier,
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 35999998699110400.000000
|
||||
},
|
||||
Rotation = {
|
||||
Type = "FixedRotation",
|
||||
Attached = "OrionNebulaHolder",
|
||||
XAxis = {1.000000,1.000000,0.510000},
|
||||
XAxisOrthogonal = true,
|
||||
YAxis = "Sun",
|
||||
YAxisInverted = false
|
||||
}
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula",
|
||||
Path = "/Milky Way/Objects",
|
||||
}
|
||||
}
|
||||
|
||||
local OrionNebulaModel = {
|
||||
Identifier = "OrionNebulaModel",
|
||||
Parent = NebulaHolder.Identifier,
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 0.67500000
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {{
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = sync .. "/orion_nebula.obj",
|
||||
ColorTexture = sync .. "/heic0601a_masked.png"
|
||||
}},
|
||||
Opacity = 1.0,
|
||||
DisableFaceCulling = false,
|
||||
SpecularIntensity = 0.0,
|
||||
AmbientIntensity = 0.45,
|
||||
DiffuseIntensity = 0.0,
|
||||
RotationVector = { 0.000000, 22.300000, 0.000000 },
|
||||
LightSources = LIGHTS;
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula Model",
|
||||
Path = "/Milky Way/Objects",
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
local OrionNebulaShocksModel = {
|
||||
Identifier = "OrionNebulaShocksModel",
|
||||
Parent = NebulaHolder.Identifier,
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 0.67500000
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {{
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = sync .. "/orishocks.obj",
|
||||
ColorTexture = "${DATA}/colors/pink.png"
|
||||
}},
|
||||
Opacity = 1.0,
|
||||
DisableFaceCulling = false,
|
||||
SpecularIntensity = 0.0,
|
||||
AmbientIntensity = 0.19,
|
||||
DiffuseIntensity = 0.4,
|
||||
RotationVector = { 0.000000, 22.300000, 0.000000 },
|
||||
LightSources = LIGHTS;
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula Shocks",
|
||||
Path = "/Milky Way/Objects",
|
||||
Hidden = false
|
||||
}
|
||||
}
|
||||
|
||||
local OrionNebulaProplydsModel = {
|
||||
Identifier = "OrionNebulaProplydsModel",
|
||||
Parent = NebulaHolder.Identifier,
|
||||
Transform = {
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 0.67500000
|
||||
}
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {{
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = sync .. "/proplyds.obj",
|
||||
ColorTexture = "${DATA}/colors/pink.png"
|
||||
}},
|
||||
Opacity = 1.0,
|
||||
DisableFaceCulling = false,
|
||||
SpecularIntensity = 0.0,
|
||||
AmbientIntensity = 1.0,
|
||||
DiffuseIntensity = 1.0,
|
||||
RotationVector = { 0.000000, 22.300000, 0.000000 },
|
||||
LightSources = LIGHTS;
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula Proplyds",
|
||||
Path = "/Milky Way/Objects",
|
||||
Hidden = false
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, {
|
||||
NebulaHolder,
|
||||
OrionNebulaModel,
|
||||
OrionNebulaShocksModel,
|
||||
OrionNebulaProplydsModel
|
||||
})
|
||||
|
||||
asset.meta = {
|
||||
Name = "Orion Nebula Model",
|
||||
Version = "1.0",
|
||||
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,
|
||||
and the bow shocks are part of the outward rush of material. ]],
|
||||
Author = "AMNH Digital Universe",
|
||||
URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
|
||||
License = "custom"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
asset.require('./cluster')
|
||||
asset.require('./nebula')
|
||||
@@ -0,0 +1,26 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
|
||||
local PARSEC_CONSTANT = 3.0856776E16;
|
||||
|
||||
local NebulaPosition = {
|
||||
Identifier = "NebulaPosition",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "StaticTranslation",
|
||||
Position = {
|
||||
-329.915 * PARSEC_CONSTANT,
|
||||
-183.153 * PARSEC_CONSTANT,
|
||||
-132.706 * PARSEC_CONSTANT
|
||||
}
|
||||
},
|
||||
},
|
||||
GUI = {
|
||||
Name = "Orion Nebula Position",
|
||||
Path = "/Milky Way/Objects",
|
||||
Hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { NebulaPosition })
|
||||
+5
-14
@@ -1,8 +1,8 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local transforms = asset.require('./../transforms')
|
||||
asset.require("spice/base")
|
||||
asset.request('./trail')
|
||||
local labelsPath = asset.require('./pluto_globelabels').LabelsPath
|
||||
asset.require('../trail')
|
||||
local labelsPath = asset.require('./../pluto_globelabels').LabelsPath
|
||||
|
||||
|
||||
|
||||
@@ -26,16 +26,7 @@ local Charon = {
|
||||
Type = "RenderableGlobe",
|
||||
Radii = { 6.035E5, 6.035E5, 6.035E5 },
|
||||
SegmentsPerPatch = 64,
|
||||
Layers = {
|
||||
ColorLayers = {
|
||||
{
|
||||
Identifier = "Greyscale_USGS",
|
||||
Name = "Black & White [USGS]",
|
||||
FilePath = "WMS:https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/pluto/charon_simp_cyl.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEWHORIZONS_CHARON_MOSAIC&SRS=EPSG:4326&BBOX=-180,-90.0003,359.972,90",
|
||||
Enabled = true
|
||||
}
|
||||
}
|
||||
},
|
||||
Layers = {},
|
||||
Labels = {
|
||||
Enable = false,
|
||||
FileName = labelsPath .. "/charon.labels",
|
||||
@@ -50,7 +41,7 @@ local Charon = {
|
||||
FadeOutStartingDistance = 1000000.0,
|
||||
LabelsForceDomeRendering = true,
|
||||
LabelsDistanceEPS = 1350000.0,
|
||||
LabelsColor = {1.0, 1.0, 0.0, 1.0}
|
||||
LabelsColor = { 1.0, 1.0, 0.0 }
|
||||
}
|
||||
},
|
||||
Tag = { "planet_solarSystem", "planet_terrestrial" },
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local transforms = asset.require('../transforms')
|
||||
asset.require("spice/base")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
local colorLayersPath = "./layers/colorlayers"
|
||||
|
||||
local colorLayer = asset.require(colorLayersPath .. "/greyscale_usgs")
|
||||
|
||||
-- Set enabled layers (temporary solution)
|
||||
-- @TODO: do this using a boolean that's passed to the 'asset.require' instead
|
||||
asset.onInitialize(function ()
|
||||
openspace.setPropertyValueSingle("Scene.Charon.Renderable.Layers.ColorLayers." .. colorLayer.layer.Identifier .. ".Enabled", true)
|
||||
end)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
local globeIdentifier = asset.require("./../../charon").Charon.Identifier
|
||||
|
||||
local layer = {
|
||||
Identifier = "Greyscale_USGS",
|
||||
Name = "Black & White [USGS]",
|
||||
FilePath = "WMS:https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/pluto/charon_simp_cyl.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEWHORIZONS_CHARON_MOSAIC&SRS=EPSG:4326&BBOX=-180,-90.0003,359.972,90",
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
|
||||
end)
|
||||
|
||||
asset.export("layer", layer)
|
||||
@@ -0,0 +1,9 @@
|
||||
local colorLayersPath = "./layers/colorlayers"
|
||||
|
||||
local colorLayer = asset.require(colorLayersPath .. "/greyscale_usgs")
|
||||
|
||||
-- Set enabled layers (temporary solution)
|
||||
-- @TODO: do this using a boolean that's passed to the 'asset.require' instead
|
||||
asset.onInitialize(function ()
|
||||
openspace.setPropertyValueSingle("Scene.Pluto.Renderable.Layers.ColorLayers." .. colorLayer.layer.Identifier .. ".Enabled", true)
|
||||
end)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
local globeIdentifier = asset.require("./../../pluto").Pluto.Identifier
|
||||
|
||||
local layer = {
|
||||
Identifier = "Greyscale_USGS",
|
||||
Name = "Black & White [USGS]",
|
||||
FilePath = "WMS:https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/pluto/pluto_simp_cyl.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEWHORIZONS_PLUTO_MOSAIC&SRS=EPSG:4326&BBOX=-180,-90,360,90",
|
||||
}
|
||||
|
||||
asset.onInitialize(function ()
|
||||
openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
|
||||
end)
|
||||
|
||||
asset.export("layer", layer)
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local kernels = asset.require('./kernels').PlutoKernels
|
||||
local transforms = asset.require('../transforms')
|
||||
local kernels = asset.require('../kernels').PlutoKernels
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local kernels = asset.require('./kernels').PlutoKernels
|
||||
local transforms = asset.require('../transforms')
|
||||
local kernels = asset.require('../kernels').PlutoKernels
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local kernels = asset.require('./kernels').PlutoKernels
|
||||
local transforms = asset.require('../transforms')
|
||||
local kernels = asset.require('../kernels').PlutoKernels
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
local kernels = asset.require('./kernels').PlutoKernels
|
||||
local transforms = asset.require('../transforms')
|
||||
local kernels = asset.require('../kernels').PlutoKernels
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local transforms = asset.require('./transforms')
|
||||
asset.require("spice/base")
|
||||
asset.request('./trail')
|
||||
asset.require('./trail')
|
||||
local labelsPath = asset.require('./pluto_globelabels').LabelsPath
|
||||
|
||||
|
||||
@@ -26,16 +26,7 @@ local Pluto = {
|
||||
Type = "RenderableGlobe",
|
||||
Radii = { 1.173E6, 1.173E6, 1.173E6 },
|
||||
SegmentsPerPatch = 64,
|
||||
Layers = {
|
||||
ColorLayers = {
|
||||
{
|
||||
Identifier = "Greyscale_USGS",
|
||||
Name = "Black & White [USGS]",
|
||||
FilePath = "WMS:https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/pluto/pluto_simp_cyl.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NEWHORIZONS_PLUTO_MOSAIC&SRS=EPSG:4326&BBOX=-180,-90,360,90",
|
||||
Enabled = true
|
||||
}
|
||||
}
|
||||
},
|
||||
Layers = {},
|
||||
Labels = {
|
||||
Enable = false,
|
||||
FileName = labelsPath .. "/pluto.labels",
|
||||
@@ -50,7 +41,7 @@ local Pluto = {
|
||||
FadeOutStartingDistance = 1000000.0,
|
||||
LabelsForceDomeRendering = true,
|
||||
LabelsDistanceEPS = 1350000.0,
|
||||
LabelsColor = {1.0, 1.0, 0.0, 1.0}
|
||||
LabelsColor = { 1.0, 1.0, 0.0 }
|
||||
}
|
||||
},
|
||||
Tag = { "planet_solarSystem", "planet_terrestrial" },
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
asset.request('./trail')
|
||||
asset.request('./pluto')
|
||||
asset.request('./pluto_trail')
|
||||
asset.request('./charon')
|
||||
asset.request('./charon_trail')
|
||||
asset.request('./hydra')
|
||||
asset.request('./kerberos')
|
||||
asset.request('./nix')
|
||||
asset.request('./styx')
|
||||
asset.require('./trail')
|
||||
asset.require('./pluto')
|
||||
asset.require('./pluto_trail')
|
||||
asset.require('./charon/charon')
|
||||
asset.require('./charon/charon_trail')
|
||||
asset.require('./minor/hydra')
|
||||
asset.require('./minor/kerberos')
|
||||
asset.require('./minor/nix')
|
||||
asset.require('./minor/styx')
|
||||
|
||||
|
||||
@@ -58,9 +58,9 @@ local Apollo11Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/Apollo_CSM_shrunk_rotated_xy_double_size.obj"
|
||||
GeometryFile = models .. "/Apollo_CSM_shrunk_rotated_xy_double_size.obj",
|
||||
ColorTexture = models .. "/gray.png"
|
||||
},
|
||||
ColorTexture = models .. "/gray.png",
|
||||
LightSources = asset_helper.getDefaultLightSources(sun_transforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
GUI = {
|
||||
@@ -177,11 +177,11 @@ local Apollo11LemDescentModel = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = lem_model.modelFolder .. "/lmremoved.obj"
|
||||
GeometryFile = lem_model.modelFolder .. "/lmremoved.obj",
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg"
|
||||
},
|
||||
SpecularIntensity = 0.0,
|
||||
RotationVector = { 273.750,28.0,309.85 },
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg",
|
||||
LightSources = asset_helper.getDefaultLightSources(sun_transforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
GUI = {
|
||||
@@ -207,11 +207,11 @@ local Apollo11LemLandedModel = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = lem_model.modelFolder .. "/LM-2_ver2clean.obj"
|
||||
GeometryFile = lem_model.modelFolder .. "/LM-2_ver2clean.obj",
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg"
|
||||
},
|
||||
SpecularIntensity = 0.0,
|
||||
RotationVector = { 273.750,28.0,309.85 },
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg",
|
||||
LightSources = asset_helper.getDefaultLightSources(sun_transforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -38,10 +38,10 @@ local Apollo11LemModel = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = lem_model.modelFolder .. "/LM-2_ver2clean.obj"
|
||||
GeometryFile = lem_model.modelFolder .. "/LM-2_ver2clean.obj",
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 91.044090,171.229706,111.666664 },
|
||||
ColorTexture = lem_model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg",
|
||||
LightSources = asset_helper.getDefaultLightSources(sun_transforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -66,9 +66,9 @@ local Apollo15 = {
|
||||
-- Geometry = {
|
||||
-- Type = "MultiModelGeometry",
|
||||
-- -- GeometryFile = models .. "/Apollo_Spacecraft.obj"
|
||||
-- GeometryFile = models .. "/Apollo_CSM_shrunk_rotated_xy_doubble_size.obj"
|
||||
-- GeometryFile = models .. "/Apollo_CSM_shrunk_rotated_xy_doubble_size.obj",
|
||||
-- ColorTexture = models .. "/gray.png"
|
||||
-- },
|
||||
-- ColorTexture = models .. "/gray.png",
|
||||
-- LightSources = LightSources,
|
||||
-- DisableFaceCulling = true
|
||||
-- },
|
||||
|
||||
@@ -49,10 +49,10 @@ local Station2Boulder1Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/b1-v2.obj"
|
||||
GeometryFile = models .. "/b1-v2.obj",
|
||||
ColorTexture = models .. "/b1-v2_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 243.243256 ,206.270264, 309.677429 },
|
||||
ColorTexture = models .. "/b1-v2_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
@@ -95,10 +95,10 @@ local Station2Boulder2Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/b2model.obj"
|
||||
GeometryFile = models .. "/b2model.obj",
|
||||
ColorTexture = models .. "/b2model_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 66.162155, 7.783780, 114.193550 },
|
||||
ColorTexture = models .. "/b2model_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
@@ -141,10 +141,10 @@ local Station2Boulder3Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/b3model.obj"
|
||||
GeometryFile = models .. "/b3model.obj",
|
||||
ColorTexture = models .. "/b3model_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 161.513519 ,243.243256, 65.806450 },
|
||||
ColorTexture = models .. "/b3model_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
|
||||
@@ -60,10 +60,10 @@ local Station6Frag1Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/A17-S6-frag1.obj"
|
||||
GeometryFile = models .. "/A17-S6-frag1.obj",
|
||||
ColorTexture = models .. "/A17-S6-frag1.png"
|
||||
},
|
||||
RotationVector = { 235.909088,165.000000,286.299194 },
|
||||
ColorTexture = models .. "/A17-S6-frag1.png",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
@@ -107,10 +107,10 @@ local Station6Frag2Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/station6_boulder_frag2.obj"
|
||||
GeometryFile = models .. "/station6_boulder_frag2.obj",
|
||||
ColorTexture = models .. "/frag2crop_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 336.959991,210.239990,325.984253 },
|
||||
ColorTexture = models .. "/frag2crop_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true,
|
||||
@@ -142,10 +142,10 @@ local Station6Frag3Model = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/station6_boulder_frag3.obj"
|
||||
GeometryFile = models .. "/station6_boulder_frag3.obj",
|
||||
ColorTexture = models .. "/frag3crop_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 293.181824,255.000000,4.090910 },
|
||||
ColorTexture = models .. "/frag3crop_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
|
||||
@@ -49,10 +49,10 @@ local Station7BoulderModel = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/b7model.obj"
|
||||
GeometryFile = models .. "/b7model.obj",
|
||||
ColorTexture = models .. "/b7model_u1_v1.jpeg"
|
||||
},
|
||||
RotationVector = { 1.945950,274.378387,212.903214 },
|
||||
ColorTexture = models .. "/b7model_u1_v1.jpeg",
|
||||
LightSources = LightSources,
|
||||
PerformShading = false,
|
||||
DisableFaceCulling = true
|
||||
|
||||
@@ -36,11 +36,11 @@ local Apollo17LemModel = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = model.modelFolder .. "/LM-2_ver2clean.obj"
|
||||
GeometryFile = model.modelFolder .. "/LM-2_ver2clean.obj",
|
||||
ColorTexture = model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg"
|
||||
},
|
||||
SpecularIntensity = 0.0,
|
||||
RotationVector = { 110.255219,171.229706,126.666664 },
|
||||
ColorTexture = model.modelFolder .. "/LM-2_ver2clean_u1_v1.jpeg",
|
||||
LightSources = asset_helper.getDefaultLightSources(sun_transforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -22,7 +22,8 @@ local LaunchTrail = {
|
||||
Color = { 0.70, 0.50, 0.20 },
|
||||
StartTime = "1968 DEC 21 12:51:00",
|
||||
EndTime = "1968 DEC 21 23:23:22",
|
||||
SampleInterval = 30
|
||||
SampleInterval = 30,
|
||||
RenderBinMode = "PostDeferredTransparent"
|
||||
},
|
||||
GUI = {
|
||||
Name = "Apollo 8 Launch Trail",
|
||||
|
||||
@@ -652,9 +652,9 @@ local Dawn = {
|
||||
Body = "DAWN",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/mainbodydawn.obj"
|
||||
GeometryFile = models .. "/mainbodydawn.obj",
|
||||
ColorTexture = textures .. "/gray.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gray.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
GUI = {
|
||||
@@ -684,9 +684,9 @@ local DawnSolarArray1 = {
|
||||
Body = "DAWN",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/solarpanelleft.obj"
|
||||
GeometryFile = models .. "/solarpanelleft.obj",
|
||||
ColorTexture = textures .. "/gray.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gray.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
GUI = {
|
||||
@@ -715,9 +715,9 @@ local DawnSolarArray2 = {
|
||||
Body = "DAWN",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/solarpanelright.obj"
|
||||
GeometryFile = models .. "/solarpanelright.obj",
|
||||
ColorTexture = textures .. "/gray.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gray.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -47,10 +47,10 @@ local Vesta = {
|
||||
Type = "RenderableModelProjection",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/VestaComet_5000.obj"
|
||||
GeometryFile = models .. "/VestaComet_5000.obj",
|
||||
ColorTexture = textures .. "/dummy.jpg"
|
||||
},
|
||||
BoundingSphereRadius = 10.0,
|
||||
ColorTexture = textures .. "/dummy.jpg",
|
||||
Projection = {
|
||||
Sequence = images,
|
||||
SequenceType = "image-sequence",
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "GaiaEarthDistance",
|
||||
GuiName = "Gaia Earth Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "Gaia",
|
||||
DestinationType = "Node Surface",
|
||||
DestinationNodeName = "Earth"
|
||||
}
|
||||
})
|
||||
@@ -41,9 +41,9 @@ local Gaia = {
|
||||
Body = "GAIA",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = model .. "/gaia.obj"
|
||||
GeometryFile = model .. "/gaia.obj",
|
||||
ColorTexture = textures .. "/gaia-baked.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gaia-baked.png",
|
||||
LightSources = {
|
||||
{
|
||||
Type = "SceneGraphLightSource",
|
||||
|
||||
@@ -169,9 +169,9 @@ local Insight_Entry_CapsuleA = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_cruise_cone .. "/cruise_insight_doubleside2_newcapsule_diffuse.obj"
|
||||
GeometryFile = models_cruise_cone .. "/cruise_insight_doubleside2_newcapsule_diffuse.obj",
|
||||
ColorTexture = models_cruise_cone .. "/insight_newcapsule_diffuse.jpg"
|
||||
},
|
||||
ColorTexture = models_cruise_cone .. "/insight_newcapsule_diffuse.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -194,9 +194,9 @@ local Insight_Entry_Capsule_Ring = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_cone_ring_foil_gold.obj"
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_cone_ring_foil_gold.obj",
|
||||
ColorTexture = models_cruise_cone .. "/foil_gold_ramp.png"
|
||||
},
|
||||
ColorTexture = models_cruise_cone .. "/foil_gold_ramp.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -219,9 +219,9 @@ local Insight_Entry_Capsule_Plugs = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_cone_capsule_diffuse.obj"
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_cone_capsule_diffuse.obj",
|
||||
ColorTexture = models_cruise_cone .. "/insight_capsule_diffuse.png"
|
||||
},
|
||||
ColorTexture = models_cruise_cone .. "/insight_capsule_diffuse.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -244,9 +244,9 @@ local Insight_Entry_Heatshield = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_heatshield_foil_gold.obj"
|
||||
GeometryFile = models_cruise_cone .. "/insight_cruise_heatshield_foil_gold.obj",
|
||||
ColorTexture = models_cruise_cone .. "/foil_gold_ramp.png"
|
||||
},
|
||||
ColorTexture = models_cruise_cone .. "/foil_gold_ramp.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -269,9 +269,9 @@ local Insight_Parachute_0 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame01_diff1.obj"
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame01_diff1.obj",
|
||||
ColorTexture = models_chutes .. "/chute_diff.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/chute_diff.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -294,9 +294,9 @@ local Insight_Parachute_Cords_0 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame01_cords1.obj"
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame01_cords1.obj",
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -319,9 +319,9 @@ local Insight_Parachute_20 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame20_diff1.obj"
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame20_diff1.obj",
|
||||
ColorTexture = models_chutes .. "/chute_diff.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/chute_diff.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -344,9 +344,9 @@ local Insight_Parachute_Cords_20 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame20_cords1.obj"
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame20_cords1.obj",
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -369,9 +369,9 @@ local Insight_Parachute_40 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/chute_doubleside_frame40_diff.obj"
|
||||
GeometryFile = models_chutes .. "/chute_doubleside_frame40_diff.obj",
|
||||
ColorTexture = models_chutes .. "/chute_diff.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/chute_diff.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -394,9 +394,9 @@ local Insight_Parachute_Cords_40 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame40_cords1.obj"
|
||||
GeometryFile = models_chutes .. "/insight_chute_frame40_cords1.obj",
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png"
|
||||
},
|
||||
ColorTexture = models_chutes .. "/foil_gold_ramp.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -419,9 +419,9 @@ local Insight_Lander_A001 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO01.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO01.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -444,9 +444,9 @@ local Insight_Lander_A002 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO02.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO02.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_02.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_02.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -469,9 +469,9 @@ local Insight_Lander_A003 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO03.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO03.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_03.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_03.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -494,9 +494,9 @@ local Insight_Lander_A004 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO04.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO04.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_04.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_04.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -519,9 +519,9 @@ local Insight_Lander_A005 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO05.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO05.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_05.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_05.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -544,9 +544,9 @@ local Insight_Lander_A006 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO06.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO06.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_06.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_06.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -569,9 +569,9 @@ local Insight_Lander_A007 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO07.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO07.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_07.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_07.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -594,9 +594,9 @@ local Insight_Lander_A008 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO08.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_AO08.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_08.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_AO_08.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -619,9 +619,9 @@ local Insight_Lander_foil1 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_foil1.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_foil1.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/foil_silver_ramp.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/foil_silver_ramp.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -644,9 +644,9 @@ local Insight_Lander_Tex01 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_tex01.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_tex01.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_tex_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_tex_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -669,9 +669,9 @@ local Insight_Lander_Tex02 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_tex02.obj"
|
||||
GeometryFile = models_lander_lander_deck .. "/insight_lander_deck_tex02.obj",
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_tex_02.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_lander_deck .. "/InSIGHT_tex_02.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -694,9 +694,9 @@ local Insight_Legs_Stowed_tex = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_legs_stow .. "/insight_lander_legs_stow_tex01.obj"
|
||||
GeometryFile = models_lander_legs_stow .. "/insight_lander_legs_stow_tex01.obj",
|
||||
ColorTexture = models_lander_legs_stow .. "/InSIGHT_tex_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_legs_stow .. "/InSIGHT_tex_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -719,9 +719,9 @@ local Insight_Legs_Stowed_AO06 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_legs_stow .. "/insight_lander_legs_stow_AO06.obj"
|
||||
GeometryFile = models_lander_legs_stow .. "/insight_lander_legs_stow_AO06.obj",
|
||||
ColorTexture = models_lander_legs_stow .. "/InSIGHT_AO_06.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_legs_stow .. "/InSIGHT_AO_06.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -744,9 +744,9 @@ local Insight_Legs_Deployed_tex = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_legs_deploy .. "/insight_lander_legs_deploy_tex01.obj"
|
||||
GeometryFile = models_lander_legs_deploy .. "/insight_lander_legs_deploy_tex01.obj",
|
||||
ColorTexture = models_lander_legs_deploy .. "/InSIGHT_tex_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_legs_deploy .. "/InSIGHT_tex_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -769,9 +769,9 @@ local Insight_Legs_Deployed_AO06 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_legs_deploy .. "/insight_lander_legs_deploy_AO06.obj"
|
||||
GeometryFile = models_lander_legs_deploy .. "/insight_lander_legs_deploy_AO06.obj",
|
||||
ColorTexture = models_lander_legs_deploy .. "/InSIGHT_AO_06.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_legs_deploy .. "/InSIGHT_AO_06.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -794,9 +794,9 @@ local Insight_Panels_Stowed_tex = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_tex01.obj"
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_tex01.obj",
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_tex_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_tex_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -819,9 +819,9 @@ local Insight_Panels_Stowed_tex2 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_tex02.obj"
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_tex02.obj",
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_tex_02.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_tex_02.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -844,9 +844,9 @@ local Insight_Panels_Stowed_AO01 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_AO01.obj"
|
||||
GeometryFile = models_lander_panels_stow .. "/insight_lander_panels_stow_AO01.obj",
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_AO_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_stow .. "/InSIGHT_AO_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -869,9 +869,9 @@ local Insight_Panels_Deployed_tex = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_tex01.obj"
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_tex01.obj",
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_tex_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_tex_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -894,9 +894,9 @@ local Insight_Panels_Deployed_tex2 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_tex02.obj"
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_tex02.obj",
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_tex_02.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_tex_02.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
@@ -919,9 +919,9 @@ local Insight_Panels_Deployed_AO06 = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_AO01.obj"
|
||||
GeometryFile = models_lander_panels_deploy .. "/insight_lander_panels_deploy_AO01.obj",
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_AO_01.jpg"
|
||||
},
|
||||
ColorTexture = models_lander_panels_deploy .. "/InSIGHT_AO_01.jpg",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources,
|
||||
},
|
||||
|
||||
@@ -159,9 +159,9 @@ local Juno = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = model .. "/Juno.obj"
|
||||
GeometryFile = model .. "/Juno.obj",
|
||||
ColorTexture = textures .. "/gray.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gray.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = assetHelper.getDefaultLightSources(sunTransforms.SolarSystemBarycenter.Identifier)
|
||||
},
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "MessengerDistance",
|
||||
GuiName = "Messenger - Mercury Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "Messenger",
|
||||
DestinationType = "Node",
|
||||
DestinationNodeName = "Mercury"
|
||||
}
|
||||
})
|
||||
@@ -94,9 +94,9 @@ local MessengerProbeBlack = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/MessengerProbe_black.obj"
|
||||
GeometryFile = models .. "/MessengerProbe_black.obj",
|
||||
ColorTexture = models .. "/Tex_black.png"
|
||||
},
|
||||
ColorTexture = models .. "/Tex_black.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources
|
||||
},
|
||||
@@ -113,9 +113,9 @@ local MessengerProbeFoil = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/MessengerProbe_foil.obj"
|
||||
GeometryFile = models .. "/MessengerProbe_foil.obj",
|
||||
ColorTexture = models .. "/foil_n2.png"
|
||||
},
|
||||
ColorTexture = models .. "/foil_n2.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources
|
||||
},
|
||||
@@ -132,9 +132,9 @@ local MessengerProbeHeatShield = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/MessengerProbe_heatShield.obj"
|
||||
GeometryFile = models .. "/MessengerProbe_heatShield.obj",
|
||||
ColorTexture = models .. "/AO_heatshield4.png"
|
||||
},
|
||||
ColorTexture = models .. "/AO_heatshield4.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources
|
||||
},
|
||||
@@ -151,9 +151,9 @@ local MessengerProbeMetal = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/MessengerProbe_metal.obj"
|
||||
GeometryFile = models .. "/MessengerProbe_metal.obj",
|
||||
ColorTexture = models .. "/Tex_grey.png"
|
||||
},
|
||||
ColorTexture = models .. "/Tex_grey.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources
|
||||
},
|
||||
@@ -171,9 +171,9 @@ local MessengerProbePanels = {
|
||||
Type = "RenderableModel",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/MessengerProbe_panels.obj"
|
||||
GeometryFile = models .. "/MessengerProbe_panels.obj",
|
||||
ColorTexture = models .. "/Messenger_tex.png"
|
||||
},
|
||||
ColorTexture = models .. "/Messenger_tex.png",
|
||||
ModelTransform = RotationMatrix,
|
||||
LightSources = LightSources
|
||||
},
|
||||
|
||||
@@ -100,6 +100,7 @@ local CharonShadow = {
|
||||
Parent = CharonProjection .Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableShadowCylinder",
|
||||
Opacity = 0.25,
|
||||
TerminatorType = "PENUMBRAL",
|
||||
LightSource = "SUN",
|
||||
Observer = "NEW HORIZONS",
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemSpacing",
|
||||
Identifier = "NewHorizonsSpacing",
|
||||
GuiName = "New Horizons Spacing",
|
||||
Spacing = 25
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "NewHorizonsPlutoDistance",
|
||||
GuiName = "New Horizons Pluto Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "NewHorizons",
|
||||
DestinationType = "Node Surface",
|
||||
DestinationNodeName = "PlutoProjection"
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemInstruments",
|
||||
Identifier = "NewHorizonsInstruments",
|
||||
GuiName = "NewHorizons Instruments",
|
||||
}
|
||||
})
|
||||
@@ -16,9 +16,9 @@ local Labels = {
|
||||
Body = "NEW HORIZONS",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/Labels.obj"
|
||||
GeometryFile = models .. "/Labels.obj",
|
||||
ColorTexture = textures .. "/labels.png"
|
||||
},
|
||||
ColorTexture = textures .. "/labels.png",
|
||||
AmbientIntensity = 0.8
|
||||
},
|
||||
GUI = {
|
||||
|
||||
@@ -24,9 +24,9 @@ local NewHorizons = {
|
||||
Body = "NEW HORIZONS",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj"
|
||||
GeometryFile = models .. "/NewHorizonsCleanModel.obj",
|
||||
ColorTexture = textures .. "/NHTexture.jpg"
|
||||
},
|
||||
ColorTexture = textures .. "/NHTexture.jpg",
|
||||
AmbientIntensity = 0.0,
|
||||
DiffuseIntensity = 1.0,
|
||||
SpecularIntensity = 1.0,
|
||||
|
||||
@@ -226,6 +226,7 @@ local PlutoShadow = {
|
||||
Parent = PlutoProjection.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableShadowCylinder",
|
||||
Opacity = 0.25,
|
||||
TerminatorType = "PENUMBRAL",
|
||||
LightSource = "SUN",
|
||||
Observer = "NEW HORIZONS",
|
||||
|
||||
@@ -36,9 +36,9 @@ local Bennu = {
|
||||
Body = BENNU_BODY,
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/BennuTextured.obj"
|
||||
GeometryFile = models .. "/BennuTextured.obj",
|
||||
ColorTexture = textures .. "/gray.png"
|
||||
},
|
||||
ColorTexture = textures .. "/gray.png",
|
||||
Projection = {
|
||||
Sequence = asset.localResource('InstrumentTimes'),
|
||||
SequenceType = "instrument-times",
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
|
||||
assetHelper.registerDashboardItems(asset, {
|
||||
{
|
||||
Type = "DashboardItemSpacing",
|
||||
Identifier = "OsirisRexSpacing",
|
||||
GuiName = "OSIRIS-REx Spacing",
|
||||
Spacing = 25
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemDistance",
|
||||
Identifier = "OsirisRexBennuDistance",
|
||||
GuiName = "OSIRIS-REx Bennu Distance",
|
||||
SourceType = "Node",
|
||||
SourceNodeName = "OsirisRex",
|
||||
DestinationType = "Node",
|
||||
DestinationNodeName = "BennuBarycenter"
|
||||
},
|
||||
{
|
||||
Type = "DashboardItemInstruments",
|
||||
Identifier = "OsirisRexInstruments",
|
||||
GuiName = "OSIRIS-REx Instruments",
|
||||
}
|
||||
})
|
||||
@@ -218,9 +218,9 @@ local OsirisRex = {
|
||||
Body = "OSIRIS-REX",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/orx_base_resized_12_sep_2016.obj"
|
||||
GeometryFile = models .. "/orx_base_resized_12_sep_2016.obj",
|
||||
ColorTexture = textures .. "/osirisTex.png"
|
||||
},
|
||||
ColorTexture = textures .. "/osirisTex.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
GUI = {
|
||||
@@ -248,9 +248,9 @@ local PolyCam = {
|
||||
Body = "OSIRIS-REX",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/orx_polycam_resized_12_sep_2016.obj"
|
||||
GeometryFile = models .. "/orx_polycam_resized_12_sep_2016.obj",
|
||||
ColorTexture = textures .. "/osirisTex.png"
|
||||
},
|
||||
ColorTexture = textures .. "/osirisTex.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
GUI = {
|
||||
@@ -267,9 +267,9 @@ local Rexis = {
|
||||
Body = "OSIRIS-REX",
|
||||
Geometry = {
|
||||
Type = "MultiModelGeometry",
|
||||
GeometryFile = models .. "/orx_rexis_resized_12_sep_2016.obj"
|
||||
GeometryFile = models .. "/orx_rexis_resized_12_sep_2016.obj",
|
||||
ColorTexture = textures .. "/osirisTex.png"
|
||||
},
|
||||
ColorTexture = textures .. "/osirisTex.png",
|
||||
LightSources = LightSources
|
||||
},
|
||||
Transform = {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user