mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Updated startup scripts
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
--[[ OpenSpace keybinding script ]]--
|
||||
-- This script sets the default keybindings and is executed at startup
|
||||
|
||||
openspace.clearKeys()
|
||||
openspace.bindKey("F1", "openspace.gui.toggle()")
|
||||
openspace.bindKey("F2", "openspace.setPerformanceMeasurement(true)")
|
||||
openspace.bindKey("F3", "openspace.setPerformanceMeasurement(false)")
|
||||
openspace.bindKey("F5", "openspace.changeCoordinateSystem('Sun'); openspace.printInfo('Changing Viewpoint to Sun-in-center');");
|
||||
openspace.bindKey("F6", "openspace.changeCoordinateSystem('Jupiter'); openspace.printInfo('Changing Viewpoint to Jupiter-in-center');");
|
||||
openspace.bindKey("F7", "openspace.changeCoordinateSystem('Pluto'); openspace.printInfo('Changing Viewpoint to Pluto-in-center');");
|
||||
openspace.bindKey("F11", "openspace.fadeOut(2)")
|
||||
openspace.bindKey("F12", "openspace.fadeIn(2)")
|
||||
openspace.bindKey("PRINT_SCREEN", "openspace.takeScreenshot()")
|
||||
|
||||
interaction_speed = 2.75
|
||||
-- Bookmarks for the New Horizons encounter
|
||||
openspace.bindKey("1", "openspace.time.setTime('2007-02-27T16:40:00.00'); openspace.time.setDeltaTime(10)")
|
||||
openspace.bindKey("2", "openspace.time.setTime('2015-07-14T10:50:00.00'); openspace.time.setDeltaTime(10)")
|
||||
openspace.bindKey("3", "openspace.time.setTime('2015-07-14T11:22:00.00'); openspace.time.setDeltaTime(1)")
|
||||
openspace.bindKey("4", "openspace.time.setTime('2015-07-14T11:36:40.00'); openspace.time.setDeltaTime(1)")
|
||||
openspace.bindKey("5", "openspace.time.setTime('2015-07-14T11:48:43.00'); openspace.time.setDeltaTime(1)")
|
||||
openspace.bindKey("6", "openspace.time.setTime('2015-07-14T12:04:35.00'); openspace.time.setDeltaTime(1)")
|
||||
openspace.bindKey("7", "openspace.time.setTime('2015-07-14T15:02:46.00'); openspace.time.setDeltaTime(100)")
|
||||
|
||||
-- Key Bindings
|
||||
openspace.bindKey("f1", "openspace.gui.toggle()")
|
||||
openspace.bindKey("f2", "openspace.setPerformanceMeasurement(true)")
|
||||
openspace.bindKey("f3", "openspace.setPerformanceMeasurement(false)")
|
||||
openspace.bindKey("f4", "openspace.takeScreenshot()")
|
||||
openspace.bindKey("f5", "loadKeyBindings()")
|
||||
|
||||
openspace.bindKey("f9", "openspace.changeCoordinateSystem('Pluto'); openspace.printInfo('Changing Viewpoint to Pluto-in-center');");
|
||||
openspace.bindKey("f10", "openspace.changeCoordinateSystem('Sun'); openspace.printInfo('Changing Viewpoint to Sun-in-center');");
|
||||
openspace.bindKey("f11", "openspace.fadeOut(2);")
|
||||
openspace.bindKey("f12", "openspace.fadeIn(2);")
|
||||
|
||||
openspace.bindKey("T", "openspace.distance(-interaction_speed * openspace.dt(), 6.0)")
|
||||
openspace.bindKey("G", "openspace.distance(interaction_speed * openspace.dt(), 6.0)")
|
||||
openspace.bindKey("Y", "openspace.distance(-interaction_speed * openspace.dt(), 10.0)")
|
||||
openspace.bindKey("H", "openspace.distance(interaction_speed * openspace.dt(), 10.0)")
|
||||
openspace.bindKey("U", "openspace.distance(-interaction_speed * openspace.dt(), 10.0)")
|
||||
openspace.bindKey("J", "openspace.distance(interaction_speed * openspace.dt(), 10.0)")
|
||||
|
||||
openspace.bindKey("PRINT_SCREEN", "openspace.takeScreenshot()")
|
||||
openspace.bindKey("PAUSE", "openspace.printInfo('F5: Toogle to Sun, F6: Toggle to Jupiter, F7: Toggle to Pluto'); openspace.printInfo('Bookmarks: 1: Jupter, 2-7: Pluto');")
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--[[ OpenSpace settings script ]]--
|
||||
-- This Lua script get executed once at the start of the application and is used to
|
||||
-- set settings in the loaded scene graph
|
||||
|
||||
openspace.printInfo("Setting default values");
|
||||
openspace.setPropertyValue("Constellation Bounds.renderable.enabled", false);
|
||||
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
openspace.setInvertRoll(true);
|
||||
--[[ OpenSpace startup script ]]--
|
||||
-- This Lua script get executed once at the start of the application
|
||||
|
||||
--openspace.setInvertRotation(true) -- Uncomment this if you want to invert the rotation
|
||||
openspace.setInvertRoll(true);
|
||||
--openspace.setInteractionSensitivity(10) -- This is the default value for the sensitivity (the higher, the more sensitive)
|
||||
|
||||
openspace.time.setTime("2007 FEB 27 16:40:00") -- This is the start time for a Jupiter run of New Horizons
|
||||
|
||||
|
||||
openspace.time.setDeltaTime(10) -- How many seconds pass per second of realtime, changeable in the GUI
|
||||
|
||||
dofile(openspace.absPath('${SCRIPTS}/bind_keys.lua'))() -- Load the default keybindings
|
||||
|
||||
openspace.time.setTime("2007 FEB 27 16:41:00")
|
||||
-- openspace.time.setDeltaTime(50);
|
||||
|
||||
-- openspace.time.setTime("2015-07-14T10:50:00.00") -- PLUTO
|
||||
@@ -29,13 +40,4 @@ openspace.time.setTime("2007 FEB 27 16:41:00")
|
||||
-- until audience tires (enough to fill 10-15 mins if run at dt = 100)
|
||||
|
||||
|
||||
openspace.time.setDeltaTime(10)
|
||||
-- print(openspace.time.currentTimeUTC())
|
||||
|
||||
|
||||
|
||||
function loadKeyBindings()
|
||||
p = openspace.absPath('${SCRIPTS}/bind_keys.lua')
|
||||
dofile(p)
|
||||
end
|
||||
loadKeyBindings()
|
||||
Reference in New Issue
Block a user