mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 12:39:24 -05:00
Adding asset files for Tesla Roadster and Oumuamua interstellar object.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
|
||||
local trajectory = asset.syncedResource({
|
||||
Name = "'Oumuamua Trajectory",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "oumuamua_horizons",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local OumuamuaTrail = {
|
||||
Identifier = "OumuamuaTrail",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTrailTrajectory",
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = trajectory .. "/horizons_oumuamua.dat"
|
||||
},
|
||||
Color = { 0.9, 0.9, 0.0 },
|
||||
StartTime = "2014 JAN 01 00:00:00",
|
||||
EndTime = "2023 JAN 01 00:00:00",
|
||||
SampleInterval = 60
|
||||
},
|
||||
GUI = {
|
||||
Name = "'Oumuamua Trail",
|
||||
Path = "/Solar System/Interstellar"
|
||||
}
|
||||
}
|
||||
|
||||
local OumuamuaPosition = {
|
||||
Identifier = "OumuamuaPosition",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = trajectory .. "/horizons_oumuamua.dat"
|
||||
},
|
||||
},
|
||||
GUI = {
|
||||
Name = "'Oumuamua",
|
||||
Path = "/Solar System/Interstellar"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { OumuamuaPosition, OumuamuaTrail })
|
||||
@@ -0,0 +1,46 @@
|
||||
local assetHelper = asset.require('util/asset_helper')
|
||||
local sunTransforms = asset.require('scene/solarsystem/sun/transforms')
|
||||
|
||||
local orbit = asset.syncedResource({
|
||||
Name = "Tesla Roadster Orbit",
|
||||
Type = "HttpSynchronization",
|
||||
Identifier = "tesla_horizons",
|
||||
Version = 1
|
||||
})
|
||||
|
||||
local TeslaRoadsterTrail = {
|
||||
Identifier = "TeslaRoadsterTrail",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Renderable = {
|
||||
Type = "RenderableTrailTrajectory",
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = orbit .. "/horizons_tesla.dat"
|
||||
},
|
||||
Color = { 0.9, 0.9, 0.0 },
|
||||
StartTime = "2018 FEB 8 00:00:00",
|
||||
EndTime = "2022 FEB 7 00:00:00",
|
||||
SampleInterval = 60
|
||||
},
|
||||
GUI = {
|
||||
Name = "Tesla Roadster Trail",
|
||||
Path = "/Solar System/SSSB"
|
||||
}
|
||||
}
|
||||
|
||||
local TeslaPosition = {
|
||||
Identifier = "TeslaPosition",
|
||||
Parent = sunTransforms.SolarSystemBarycenter.Identifier,
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "HorizonsTranslation",
|
||||
HorizonsTextFile = orbit .. "/horizons_tesla.dat"
|
||||
},
|
||||
},
|
||||
GUI = {
|
||||
Name = "Tesla Roadster",
|
||||
Path = "/Solar System/SSSB"
|
||||
}
|
||||
}
|
||||
|
||||
assetHelper.registerSceneGraphNodesAndExport(asset, { TeslaPosition, TeslaRoadsterTrail })
|
||||
Reference in New Issue
Block a user