mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 05:29:41 -06:00
47 lines
1.2 KiB
Plaintext
47 lines
1.2 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(openspace.time.currentWallTime())
|
|
openspace.spice.loadKernel("${SPICE}/naif0011.tls")
|
|
openspace.spice.loadKernel("${SPICE}/pck00010.tpc")
|
|
|
|
openspace.time.setTime("2015 NOV 24 00:00:00")
|
|
|
|
|
|
dofile(openspace.absPath('${SCRIPTS}/bind_keys.lua'))
|
|
end
|
|
|
|
function postInitialization()
|
|
openspace.printInfo("Setting default values")
|
|
|
|
openspace.setInteractionMode('GlobeBrowsing')
|
|
|
|
openspace.time.setDeltaTime(0)
|
|
openspace.restoreCameraStateFromFile("debugstart.view")
|
|
openspace.resetCameraDirection()
|
|
openspace.gui.show()
|
|
|
|
openspace.printInfo("Done setting default values")
|
|
end
|
|
|
|
|
|
return {
|
|
ScenePath = ".",
|
|
CommonFolder = "common",
|
|
Camera = {
|
|
Focus = "DebugGlobe",
|
|
Position = {3428016.852415, 616607.056698, 60430.587719},
|
|
Rotation = {0.178551, -0.280661, 0.916566, 0.221935},
|
|
},
|
|
|
|
Modules = {
|
|
"debugglobe"
|
|
}
|
|
}
|
|
|