mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
35636890da
- 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
76 lines
1.9 KiB
Modula-2
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
|
|
},
|
|
}
|
|
|
|
}
|