mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-20 11:10:23 -06:00
30 lines
975 B
Plaintext
30 lines
975 B
Plaintext
asset.require('./base')
|
|
|
|
local earthAsset = asset.require('scene/solarsystem/planets/earth/earth')
|
|
asset.require('scene/solarsystem/planets/earth/satellites/satellites.asset')
|
|
|
|
asset.onInitialize(function ()
|
|
local now = openspace.time.currentWallTime()
|
|
-- Jump back one day to be able to show complete weather data on Earth.
|
|
openspace.time.setTime(openspace.time.advancedTime(now, "-1d"))
|
|
|
|
openspace.globebrowsing.goToGeo("Earth", 58.5877, 16.1924, 20000000)
|
|
|
|
openspace.markInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
|
|
|
openspace.setPropertyValue("{earth_satellites}.Renderable.Enabled", false)
|
|
end)
|
|
|
|
asset.onDeinitialize(function ()
|
|
openspace.removeInterestingNodes({ "Earth", "Mars", "Moon", "Sun" })
|
|
end)
|
|
|
|
asset.meta = {
|
|
Name = "Default scene",
|
|
Version = "1.0",
|
|
Description = [[ Bla bla, something something asteroids ]],
|
|
Author = "OpenSpace Team",
|
|
URL = "http://openspaceproject.com",
|
|
License = "MIT license"
|
|
}
|