Update default scene to new scene graph structure.

This commit is contained in:
Kalle Bladin
2016-08-17 21:04:11 -04:00
parent 1be12333ad
commit 0152cb40db
11 changed files with 250 additions and 184 deletions
+31 -42
View File
@@ -3,16 +3,6 @@ return {
{
Name = "EarthBarycenter",
Parent = "SolarSystemBarycenter",
Static = true,
Ephemeris = {
Type = "Spice",
Body = "EARTH BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
},
-- Earth module
{
@@ -21,7 +11,7 @@ return {
Renderable = {
Type = "RenderablePlanet",
Frame = "IAU_EARTH",
Body = "EARTH",
Body = "EARTH",
Geometry = {
Type = "SimpleSphere",
Radius = { 6.371, 6 },
@@ -30,20 +20,41 @@ return {
Textures = {
Type = "simple",
Color = "textures/earth_bluemarble.jpg",
Night = "textures/earth_night.jpg",
--Height = "textures/earth_bluemarble_height.jpg",
-- Depth = "textures/earth_depth.png",
Reflectance = "textures/earth_reflectance.png",
Clouds = "textures/earth_clouds.jpg"
Night = "textures/earth_night.jpg",
Height = "textures/earth_bluemarble_height.jpg"
},
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "EARTH",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_EARTH",
DestinationFrame = "GALACTIC",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Earth"
},
-- EarthTrail module
{
Name = "EarthTrail",
Parent = "SolarSystemBarycenter",
Parent = "EarthBarycenter",
Renderable = {
Type = "RenderableTrail",
Body = "EARTH",
@@ -56,6 +67,7 @@ return {
},
GuiName = "/Solar/EarthTrail"
},
--[[
{
Name = "EarthMarker",
Parent = "Earth",
@@ -65,30 +77,7 @@ return {
Origin = "Center",
Billboard = true,
Texture = "textures/marker.png"
},
Ephemeris = {
Type = "Static",
Position = {0, 0, 0, 5}
}
}
-- Plane
-- {
-- Name = "EarthPlane",
-- Parent = "Earth",
-- Renderable = {
-- Type = "RenderablePlane",
-- Billboard = true,
-- Size = { 6.371, 6 },
-- Texture = "textures/graph.jpg",
-- Atmosphere = {
-- Type = "Nishita", -- for example, values missing etc etc
-- MieFactor = 1.0,
-- MieColor = {1.0, 1.0, 1.0}
-- }
-- },
-- Ephemeris = {
-- Type = "Static",
-- Position = { 6.371*2, 0, 0, 6},
-- },
-- }
]]
}
+24 -13
View File
@@ -16,20 +16,31 @@ return {
Type = "simple",
Color = "textures/callisto.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "CALLISTO",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_JUPITER",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "CALLISTO",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/jup260.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_CALLISTO",
DestinationFrame = "IAU_JUPITER",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Callisto"
},
@@ -53,5 +64,5 @@ return {
},
},
GuiName = "/Solar/CallistoTrail"
}
}
}
+23 -12
View File
@@ -16,20 +16,31 @@ return {
Type = "simple",
Color = "textures/europa.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "EUROPA",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_JUPITER",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "EUROPA",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/jup260.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_EUROPA",
DestinationFrame = "IAU_JUPITER",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/EUROPA"
},
+23 -12
View File
@@ -16,20 +16,31 @@ return {
Type = "simple",
Color = "textures/ganymede.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "GANYMEDE",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_JUPITER",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "GANYMEDE",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/jup260.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_GANYMEDE",
DestinationFrame = "IAU_JUPITER",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Ganymede"
},
+23 -13
View File
@@ -16,21 +16,31 @@ return {
Type = "simple",
Color = "textures/io.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "IO",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
--"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
"${SPICE}/jup260.bsp",
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_JUPITER",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "IO",
Reference = "ECLIPJ2000",
Observer = "JUPITER BARYCENTER",
Kernels = {
"${OPENSPACE_DATA}/spice/jup260.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_IO",
DestinationFrame = "IAU_JUPITER",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Jupiter"
},
+29 -15
View File
@@ -3,14 +3,16 @@ return {
{
Name = "JupiterBarycenter",
Parent = "SolarSystemBarycenter",
Ephemeris = {
Type = "Spice",
Body = "JUPITER BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "JUPITER BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
},
},
-- Jupiter module
@@ -30,14 +32,26 @@ return {
Type = "simple",
Color = "textures/jupiter.jpg",
},
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Ephemeris = {
Type = "Static" -- jupiter is at its barycenter
},
Rotation = {
Type = "Spice",
Frame = "IAU_JUPITER",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "StaticEphemeris",
Position = {0, 0, 0}, -- jupiter is at its barycenter
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_JUPITER",
DestinationFrame = "ECLIPJ2000",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Jupiter"
},
+23 -16
View File
@@ -3,11 +3,7 @@ return {
{
Name = "MarsBarycenter",
Parent = "SolarSystemBarycenter",
Ephemeris = {
Type = "Static"
}
},
-- Mars module
{
Name = "Mars",
@@ -25,20 +21,31 @@ return {
Type = "simple",
Color = "textures/mars.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "MARS BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_MARS",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "MARS BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_MARS",
DestinationFrame = "ECLIPJ2000",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Mars"
},
+23 -16
View File
@@ -3,11 +3,7 @@ return {
{
Name = "MercuryBarycenter",
Parent = "SolarSystemBarycenter",
Ephemeris = {
Type = "Static"
}
},
-- Mercury module
{
Name = "Mercury",
@@ -25,20 +21,31 @@ return {
Type = "simple",
Color = "textures/mercury.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "MERCURY",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_MERCURY",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "MERCURY",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_MERCURY",
DestinationFrame = "ECLIPJ2000",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Mercury"
},
+23 -30
View File
@@ -3,9 +3,6 @@ return {
{
Name = "SaturnBarycenter",
Parent = "SolarSystemBarycenter",
Ephemeris = {
Type = "Static"
}
},
-- Saturn module
@@ -25,38 +22,34 @@ return {
Type = "simple",
Color = "textures/saturn.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "SATURN BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_SATURN",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "SATURN BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_SATURN",
DestinationFrame = "ECLIPJ2000",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Saturn"
},
-- The rings of Saturn
-- Using the 'Saturn's rings dark side mosaic' as a basis
{
Name = "SaturnRings",
Parent = "Saturn",
Renderable = {
Type = "RenderableRings",
Body = "SATURN BARYCENTER",
Frame = "IAU_SATURN",
Texture = "textures/saturn_rings.png",
Size = { 0.140445100671159, 9.0 }, -- 140445.100671159km
Offset = { 74500 / 140445.100671159, 1.0 } -- min / max extend
},
},
-- SaturnTrail module
{
Name = "SaturnTrail",
+23 -15
View File
@@ -3,9 +3,6 @@ return {
{
Name = "UranusBarycenter",
Parent = "SolarSystemBarycenter",
Ephemeris = {
Type = "Static"
}
},
-- Uranus module
@@ -25,20 +22,31 @@ return {
Type = "simple",
Color = "textures/uranus.jpg",
},
},
Ephemeris = {
Type = "Spice",
Body = "URANUS BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Rotation = {
Type = "Spice",
Frame = "IAU_URANUS",
Reference = "ECLIPJ2000"
Transform = {
Translation = {
Type = "SpiceEphemeris",
Body = "URANUS BARYCENTER",
Reference = "ECLIPJ2000",
Observer = "SUN",
Kernels = {
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
}
},
Rotation = {
Type = "SpiceRotation",
SourceFrame = "IAU_URANUS",
DestinationFrame = "ECLIPJ2000",
},
Scale = {
Type = "StaticScale",
Scale = 1,
},
},
GuiName = "/Solar/Planets/Uranus"
},
+5
View File
@@ -25,6 +25,11 @@ return {
Type = "simple",
Color = "textures/venus.jpg",
},
Atmosphere = {
Type = "Nishita", -- for example, values missing etc etc
MieFactor = 1.0,
MieColor = {1.0, 1.0, 1.0}
}
},
Ephemeris = {
Type = "Spice",