mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-16 10:31:05 -05:00
52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
function preInitialization()
|
|
--[[
|
|
The scripts in this function are executed after the scene is loaded but before the
|
|
scene elements have been initialized, thus they should be used to set the time at
|
|
which the scene should start and other settings that might determine initialization
|
|
critical objects.
|
|
]]--
|
|
|
|
--openspace.time.setTime("2015 NOV 24 00:00:00")
|
|
openspace.time.setTime(openspace.time.currentWallTime())
|
|
dofile(openspace.absPath('${SCRIPTS}/bind_keys.lua'))
|
|
--openspace.bindKey("v", "openspace.setPropertyValue('DebugGlobe.saveOrThrowCamera', true)")
|
|
end
|
|
|
|
function postInitialization()
|
|
openspace.printInfo("Setting default values")
|
|
|
|
openspace.setInteractionMode('GlobeBrowsingInteractionMode')
|
|
--openspace.restoreCameraStateFromFile("camera_lookat_planet.lua")
|
|
|
|
openspace.setPropertyValue("MilkyWay.renderable.transparency", 0.55)
|
|
openspace.setPropertyValue("MilkyWay.renderable.segments", 50)
|
|
|
|
openspace.setPropertyValue("Sun.renderable.enabled", true)
|
|
openspace.setPropertyValue("SunGlare.renderable.enabled", false)
|
|
openspace.setPropertyValue("SunMarker.renderable.enabled", false)
|
|
|
|
|
|
openspace.resetCameraDirection()
|
|
|
|
openspace.printInfo("Done setting default values")
|
|
end
|
|
|
|
|
|
return {
|
|
ScenePath = ".",
|
|
CommonFolder = "common",
|
|
Camera = {
|
|
Focus = "DebugGlobe",
|
|
Position = {41717685.600207, -0.000000, -0.000000},
|
|
Rotation = {0.031159, -0.713114, 0.015919, -0.700174},
|
|
},
|
|
|
|
Modules = {
|
|
"debugglobe",
|
|
"sun",
|
|
"stars",
|
|
"milkyway",
|
|
}
|
|
}
|
|
|