mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 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.setInteractionMode('GlobeBrowsingInteractionMode')
|
|
|
|
openspace.setPropertyValue("MilkyWay.renderable.transparency", 0.55)
|
|
openspace.setPropertyValue("MilkyWay.renderable.segments", 50)
|
|
|
|
openspace.printInfo("Done setting default values")
|
|
end
|
|
|
|
|
|
return {
|
|
ScenePath = ".",
|
|
CommonFolder = "common",
|
|
Camera = {
|
|
Focus = "DebugGlobe",
|
|
Position = {1, 0, 0, 8},
|
|
},
|
|
Modules = {
|
|
"debugglobe",
|
|
"stars",
|
|
"milkyway",
|
|
}
|
|
}
|
|
|