Files
OpenSpace/data/scene/missions/newhorizons/pluto/nix/nix.mod
T
Alexander Bock 35636890da Various fixes for the New Horizons scene
- Fix transparency issue making the New Horizons module invisible
  - Fix the offsets of the instruments on board New Horizons
  - Fix the missing projections occurred by switching the radius specifications from PSC to regular coordinates
  - Update the accurate kernel usage
2017-07-14 18:53:40 -04:00

76 lines
1.9 KiB
Modula-2

local nix_radius = 0.45E5
if UseAccurateNewHorizonsKernels then
NewHorizonsKernels = {
"${SPICE}/nh_20170126/spk/NavSE_plu047_od122.bsp"
}
else
NewHorizonsKernels = {
"${SPICE}/NewHorizonsKernels/nh_p4p5_revised.bsp"
}
end
return {
-- Nix module
{
Name = "Nix",
Parent = "PlutoBarycenter",
Renderable = {
Type = "RenderablePlanet",
Frame = "IAU_PLUTO",
Body = "NIX",
Radius = nix_radius,
Geometry = {
Type = "SimpleSphere",
Radius = nix_radius,
Segments = 100
},
Textures = {
Type = "simple",
Color = "textures/gray.jpg",
}
},
Transform = {
Translation = {
Type = "SpiceTranslation",
Body = "NIX",
Observer = "PLUTO BARYCENTER",
Kernels = NewHorizonsKernels
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_PLUTO",
DestinationFrame = "ECLIPJ2000"
},
},
},
{
Name = "NixText",
Parent = "Nix",
Renderable = {
Type = "RenderablePlane",
Size = 10^6.3,
Origin = "Center",
Billboard = true,
Texture = "textures/Nix-Text.png"
},
},
-- NixTrail module
{
Name = "NixTrail",
Parent = "PlutoBarycenter",
Renderable = {
Type = "RenderableTrailOrbit",
Translation = {
Type = "SpiceTranslation",
Body = "NIX",
Observer = "PLUTO BARYCENTER",
},
Color = {0.00, 0.62, 1.00},
Period = 24.85463,
Resolution = 1000
},
}
}