Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. -- The configuration has an implict
  2. -- require('scripts/configuration_helper.lua')
  3. -- which defines helper functions useful to customize the configuration
  4.  
  5. -- Determines which SGCT configuration file is loaded, that is, if there rendering
  6. -- occurs in a single window, a fisheye projection, or a dome cluster system
  7.  
  8. -- A regular 1280x720 window
  9. --SGCTConfig = sgct.config.single{}
  10.  
  11. -- A regular 1920x1080 window
  12. -- SGCTConfig = sgct.config.single{1920, 1080}
  13.  
  14. -- A windowed 1920x1080 fullscreen
  15. -- SGCTConfig = sgct.config.single{1920, 1080, border=false, windowPos={0,0}}
  16.  
  17. -- One window for the GUI and one window for rendering.
  18. -- SGCTConfig = "${CONFIG}/single_gui.xml"
  19.  
  20. -- GUI window on monitor 1, fullscreen window for rendering on monitor 2 (1080p).
  21. -- SGCTConfig = "${CONFIG}/gui_projector.xml"
  22.  
  23. -- One window for the GUI and one window for rendering fisheye
  24. SGCTConfig = "${CONFIG}/fisheye_gui.xml"
  25.  
  26. -- A 1k fisheye rendering
  27. -- SGCTConfig = sgct.config.fisheye{1024, 1024}
  28.  
  29. -- A 4k fisheye rendering in a 1024x1024 window
  30. -- SGCTConfig = sgct.config.fisheye{1024, 1024, res={4096, 4096}, quality="2k", tilt=27}
  31.  
  32. -- Streaming OpenSpace via Spout to OBS
  33. -- SGCTConfig = sgct.config.single{2560, 1440, shared=true, name="WV_OBS_SPOUT1"}
  34.  
  35. -- Spout exit
  36. -- SGCTConfig = "${CONFIG}/spout_output.xml"
  37.  
  38. -- VR support only if compiled from source with OpenVR
  39. -- SGCTConfig = "${CONFIG}/openvr_oculusRiftCv1.xml"
  40. -- SGCTConfig = "${CONFIG}/openvr_htcVive.xml"
  41.  
  42.  
  43. -- Sets the scene that is to be loaded by OpenSpace. A scene file is a description
  44. -- of all entities that will be visible during an instance of OpenSpace
  45.  
  46. Asset = "default"
  47. -- Asset = "default_full"
  48. -- Asset = "newhorizons"
  49. -- Asset = "rosetta"
  50. -- Asset = "osirisrex"
  51. -- Asset = "voyager"
  52. -- Asset = "gaia"
  53. -- Asset = "juno"
  54. -- Asset = "messenger"
  55. -- Asset = "insight"
  56. -- Asset = "apollo8"
  57. -- Asset = "apollo_sites"
  58.  
  59. -- These scripts are executed after the initialization of each scene, thus making
  60. -- it possible to have global overrides to default values or execute other scripts
  61. -- regardless of the scene that is loaded
  62. GlobalCustomizationScripts = {
  63. "${SCRIPTS}/customization.lua"
  64. }
  65.  
  66. Paths = {
  67. DATA = "${BASE}/data",
  68. ASSETS = "${DATA}/assets",
  69. FONTS = "${DATA}/fonts",
  70. TASKS = "${DATA}/tasks",
  71. SYNC = "${BASE}/sync",
  72. SCREENSHOTS = "${BASE}/screenshots",
  73. WEB = "${DATA}/web",
  74. RECORDINGS = "${BASE}/recordings",
  75.  
  76. CACHE = "${BASE}/cache",
  77. CONFIG = "${BASE}/config",
  78. DOCUMENTATION = "${BASE}/documentation",
  79. LOGS = "${BASE}/logs",
  80. MODULES = "${BASE}/modules",
  81. SCRIPTS = "${BASE}/scripts",
  82. SHADERS = "${BASE}/shaders",
  83. TEMPORARY = "${BASE}/temp"
  84. }
  85.  
  86. ModuleConfigurations = {
  87. GlobeBrowsing = {
  88. WMSCacheEnabled = false,
  89. -- OfflineMode = true,
  90. -- NoWarning = true,
  91. WMSCacheLocation = "${BASE}/cache_gdal",
  92. WMSCacheSize = 1024, -- in megabytes PER DATASET
  93. TileCacheSize = 2048 -- for all globes (CPU and GPU memory)
  94. },
  95. Sync = {
  96. SynchronizationRoot = "${SYNC}",
  97. HttpSynchronizationRepositories = {
  98. "http://data.openspaceproject.com/request"
  99. }
  100. },
  101. Server = {
  102. AllowAddresses = { "127.0.0.1", "localhost" },
  103. Interfaces = {
  104. {
  105. Type = "TcpSocket",
  106. Identifier = "DefaultTcpSocketInterface",
  107. Port = 4681,
  108. Enabled = true,
  109. DefaultAccess = "Deny",
  110. RequirePasswordAddresses = {},
  111. Password = ""
  112. },
  113. {
  114. Type = "WebSocket",
  115. Identifier = "DefaultWebSocketInterface",
  116. Port = 4682,
  117. Enabled = true,
  118. DefaultAccess = "Deny",
  119. RequirePasswordAddresses = {},
  120. Password = ""
  121. }
  122. }
  123. },
  124. WebBrowser = {
  125. Enabled = true
  126. },
  127. WebGui = {
  128. Address = "localhost",
  129. HttpPort = 4680,
  130. WebSocketInterface = "DefaultWebSocketInterface"
  131. },
  132. CefWebGui = {
  133. -- GuiUrl = "http://localhost:4680/#/onscreen/",
  134. -- GuiScale = 2.0,
  135. Enabled = true,
  136. Visible = true
  137. }
  138. }
  139.  
  140. Fonts = {
  141. Mono = "${FONTS}/Bitstream-Vera-Sans-Mono/VeraMono.ttf",
  142. Light = "${FONTS}/Roboto/Roboto-Regular.ttf",
  143. Console = "${FONTS}/Inconsolata/Inconsolata-Regular.ttf",
  144. Loading = "${FONTS}/Roboto/Roboto-Regular.ttf"
  145. }
  146.  
  147. Logging = {
  148. LogDir = "${LOGS}",
  149. -- LogLevel = "Trace",
  150. LogLevel = "Debug",
  151. ImmediateFlush = true,
  152. Logs = {
  153. { Type = "html", File = "${LOGS}/log.html", Append = false }
  154. },
  155. CapabilitiesVerbosity = "Full"
  156. }
  157. ScriptLog = "${LOGS}/ScriptLog.txt"
  158.  
  159. Documentation = {
  160. Path = "${DOCUMENTATION}/"
  161. }
  162.  
  163. VersionCheckUrl = "http://data.openspaceproject.com/latest-version"
  164.  
  165. UseMultithreadedInitialization = true
  166. LoadingScreen = {
  167. ShowMessage = true,
  168. ShowNodeNames = true,
  169. ShowProgressbar = false
  170. }
  171. CheckOpenGLState = false
  172. LogEachOpenGLCall = false
  173.  
  174. ShutdownCountdown = 3
  175. ScreenshotUseDate = true
  176.  
  177. -- OnScreenTextScaling = "framebuffer"
  178. -- PerSceneCache = true
  179. -- DisableRenderingOnMaster = true
  180. -- DisableInGameConsole = true
  181.  
  182. GlobalRotation = { 0.0, 0.0, 0.0 }
  183. MasterRotation = { 0.0, 0.0, 0.0 }
  184. ScreenSpaceRotation = { 0.0, 0.0, 0.0 }
  185.  
  186. RenderingMethod = "Framebuffer"
  187. OpenGLDebugContext = {
  188. Activate = false,
  189. FilterIdentifier = {
  190. { Type = "Other", Source = "API", Identifier = 131185 },
  191. { Type = "Performance", Source = "API", Identifier = 131186 }, --Buffer performance warning: "copied/moved from VIDEO memory to HOST memory"
  192. { Type = "Deprecated", Source = "API", Identifier = 7 } -- API_ID_LINE_WIDTH deprecated behavior warning has been generated
  193. },
  194. -- FilterSeverity = { }
  195. }
  196. --RenderingMethod = "ABuffer" -- alternative: "Framebuffer"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement