From b02409eb6dae79e793749de6b28f949502f7d989 Mon Sep 17 00:00:00 2001 From: Erik Broberg Date: Tue, 9 Aug 2016 13:16:17 -0400 Subject: [PATCH] Add osirisrex.mod and bennu.mod --- data/scene/osirisrex/bennu/bennu.mod | 124 +++++++++++++++++++ data/scene/osirisrex/osirisrex/osirisrex.mod | 65 ++++++++++ 2 files changed, 189 insertions(+) create mode 100644 data/scene/osirisrex/bennu/bennu.mod create mode 100644 data/scene/osirisrex/osirisrex/osirisrex.mod diff --git a/data/scene/osirisrex/bennu/bennu.mod b/data/scene/osirisrex/bennu/bennu.mod new file mode 100644 index 0000000000..9395eb27c9 --- /dev/null +++ b/data/scene/osirisrex/bennu/bennu.mod @@ -0,0 +1,124 @@ +local BENNU_BODY = "2101955" + +return { + ------------------------ + -- Bennu -- + ------------------------ + { + Name = "Bennu2", + Parent = "SolarSystemBarycenter", + + Renderable = { + Type = "RenderableModelProjection", + Body = BENNU_BODY, + Geometry = { + Type = "MultiModelGeometry", + GeometryFile = "models/BennuUntextured.obj", + Magnification = 4, + }, + Shading = { + PerformShading = true, + Fadeable = false, + Ghosting = false, + }, + Textures = { + Type = "simple", + Color = "textures/osirisTex.png", + Project = "textures/defaultProj.png", + Default = "textures/defaultProj.png" + }, + Rotation = { + Source = "IAU_BENNU", + Destination = "GALACTIC" + }, + Projection = { + Sequence = "InstrumentTimes", + SequenceType = "instrument-times", + Observer = "OSIRIS-REX", + Target = BENNU_BODY, + Aberration = "NONE", + }, + DataInputTranslation = { + Instruments = { + POLY_CAM = { + DetectorType = "Camera", + Spice = {"ORX_OCAMS_POLYCAM"}, + Files = { + "BaseballDiamond_PolyCam.txt", + "OrbitalB_Site08_PolyCamImages.txt", + "Recon_225m_Equatorial_PolyCam", + }, + }, + SPECTOMETER = { + DetectorType = "Camera", + Spice = {"ORX_REXIS"}, + Files = { + "DetailedSurvey_EquatorialStations_Spectrometers.txt", + "Recon_225m_Equatorial_spectrometers.txt", + "Recon_525m_Equatorial_spectrometers.txt", + }, + }, + }, + Target = { + Body = BENNU_BODY, + --[[ + Read = { + "TARGET_NAME", + "INSTRUMENT_HOST_NAME", + "INSTRUMENT_ID", + "START_TIME", + "STOP_TIME", + }, + Convert = { + CHURYUMOV = {"CHURYUMOV-GERASIMENKO"}, + ROSETTA = {"ROSETTA" }, + --NAVCAM = {"NAVCAM"}, + ["ROSETTA-ORBITER"] = {"ROSETTA" }, + CHURYUMOVGERASIMENKO11969R1 = {"CHURYUMOV-GERASIMENKO"}, + CHURYUMOVGERASIMENKO = {"CHURYUMOV-GERASIMENKO"}, + ["CHURYUMOV-GERASIMENKO1(1969R1)"] = {"CHURYUMOV-GERASIMENKO"}, + --NAVIGATIONCAMERA = {"NAVCAM" }, + }, + ]] + }, + }, + + Instrument = { -- INVALID DATA - JUST FOR TESTING + Name = "ORX_OCAMS_POLYCAM", + Method = "ELLIPSOID", + Aberration = "NONE", + Fovy = 5.00, + Aspect = 1, + Near = 0.01, + Far = 1000000, + }, + }, + + Ephemeris = { + Type = "Spice", + Body = BENNU_BODY, + -- Reference = "ECLIPJ2000", + Reference = "GALACTIC", + Observer = "SUN", + }, + + GuiName = "/Solar/Bennu" + }, + + + { + Name = "BennuTrail", + Parent = "SolarSystemBarycenter", + Renderable = { + Type = "RenderableTrail", + Body = BENNU_BODY, + Frame = "GALACTIC", + Observer = "SUN", + RGB = { 0.4, 0.0, 0.7}, + TropicalOrbitPeriod = 436.649, + EarthOrbitRatio = 1.3559, -- worst parameter I've ever seen + DayLength = 4.288 -- why this for a path?? + }, + GuiName = "/Solar/BennuTrail" + }, +} diff --git a/data/scene/osirisrex/osirisrex/osirisrex.mod b/data/scene/osirisrex/osirisrex/osirisrex.mod new file mode 100644 index 0000000000..17c7b4f535 --- /dev/null +++ b/data/scene/osirisrex/osirisrex/osirisrex.mod @@ -0,0 +1,65 @@ +return { + ------------------------ + -- Osiris Rex -- + ------------------------ + { + Name = "OsirisRex", + Parent = "SolarSystemBarycenter", + + Renderable = { + Type = "RenderableModel", + Body = "OSIRIS-REX", + Geometry = { + Type = "MultiModelGeometry", + GeometryFile = "models/osiris.obj", + Magnification = 0.5, + }, + Textures = { + Type = "simple", + Color = "textures/osirisTex.png", + }, + Rotation = { + Source = "ORX_SPACECRAFT", + Destination = "GALACTIC" + }, + Shading = { + PerformShading = true, + Fadeable = false, + Ghosting = false, + }, + }, + + Ephemeris = { + Type = "Spice", + Body = "OSIRIS-REX", + -- Reference = "ECLIPJ2000", + Reference = "GALACTIC", + Observer = "SUN", + }, + + GuiName = "/Solar/OsirisRex" + }, + + { + Name = "OsirisRexPath", + Parent = "SolarSystemBarycenter", + Renderable = { + Type = "RenderablePath", + Body = "OSIRIS-REX", + Frame = "GALACTIC", + Observer = "SUN", + RGB = { 0.8, 0.8, 0.2}, + TimeSteps = 900, + Textures = { + Type = "simple", + Color = "textures/glare_blue.png", + -- need to add different texture + }, + DrawLine = true, + + StartTime = "2016 SEP 8 12:00:00", + EndTime = "2022 OCT 17 12:00:00" + }, + GuiName = "/Solar/OsirisRexTrail" + }, +}