mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Add planet mercury as a RenderableGlobe and use in osirisrex.scene
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
return {
|
||||
-- Mercury barycenter module
|
||||
{
|
||||
Name = "MercuryBarycenter",
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Transform = {
|
||||
Translation = {
|
||||
Type = "SpiceEphemeris",
|
||||
Body = "MERCURY",
|
||||
Reference = "ECLIPJ2000",
|
||||
Observer = "SUN",
|
||||
Kernels = {
|
||||
"${OPENSPACE_DATA}/spice/de430_1850-2150.bsp"
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- RenderableGlobe module
|
||||
{
|
||||
Name = "LodMercury",
|
||||
Parent = "MercuryBarycenter",
|
||||
Transform = {
|
||||
Rotation = {
|
||||
Type = "SpiceRotation",
|
||||
SourceFrame = "IAU_MERCURY",
|
||||
DestinationFrame = "GALACTIC",
|
||||
},
|
||||
Scale = {
|
||||
Type = "StaticScale",
|
||||
Scale = 1,
|
||||
},
|
||||
},
|
||||
Renderable = {
|
||||
Type = "RenderableGlobe",
|
||||
Radii = {2439700, 2439700.0, 2439700.0},
|
||||
Frame = "IAU_MERCURY",
|
||||
Body = "MERCURY",
|
||||
|
||||
CameraMinHeight = 300,
|
||||
InteractionDepthBelowEllipsoid = 0, -- Useful when having negative height map values
|
||||
SegmentsPerPatch = 64,
|
||||
TextureInitData = {
|
||||
ColorTextureMinimumSize = 512,
|
||||
OverlayMinimumSize = 512,
|
||||
HeightMapMinimumSize = 64,
|
||||
},
|
||||
Textures = {
|
||||
ColorTextures = {
|
||||
{
|
||||
Name = "On Mercury Color",
|
||||
FilePath = "map_service_configs/OnMercuryColor.xml",
|
||||
Enabled = true,
|
||||
},
|
||||
{
|
||||
Name = "On Mercury Image",
|
||||
FilePath = "map_service_configs/OnMercuryImage.xml",
|
||||
},
|
||||
},
|
||||
GrayScaleOverlays = { },
|
||||
NightTextures = { },
|
||||
WaterMasks = { },
|
||||
Overlays = { },
|
||||
HeightMaps = {
|
||||
{
|
||||
Name = "On Mercury Height",
|
||||
FilePath = "map_service_configs/OnMercuryElevationGaskell.xml",
|
||||
Enabled = true,
|
||||
},
|
||||
},
|
||||
HeightMapOverlays = { },
|
||||
},
|
||||
},
|
||||
GuiName = "/Solar/Planets/LodMercury"
|
||||
},
|
||||
|
||||
-- MercuryTrail module
|
||||
{
|
||||
Name = "MercuryTrail",
|
||||
Parent = "SolarSystemBarycenter",
|
||||
Renderable = {
|
||||
Type = "RenderableTrail",
|
||||
Body = "MERCURY",
|
||||
Frame = "GALACTIC",
|
||||
Observer = "SUN",
|
||||
RGB = {0.6, 0.5, 0.5 },
|
||||
TropicalOrbitPeriod = 87.968 ,
|
||||
EarthOrbitRatio = 0.241,
|
||||
DayLength = 4222.6,
|
||||
Textures = {
|
||||
Type = "simple",
|
||||
Color = "${COMMON_MODULE}/textures/glare_blue.png",
|
||||
-- need to add different texture
|
||||
},
|
||||
},
|
||||
GuiName = "/Solar/MercuryTrail"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<GDAL_WMS>
|
||||
<Service name="TiledWMS">
|
||||
<ServerUrl>http://192.168.1.167/OnMercury/wms.cgi?</ServerUrl>
|
||||
<TiledGroupName>Color 665m</TiledGroupName>
|
||||
<!--
|
||||
These are the available layers that can be used as TiledGroupName:
|
||||
Color Ratio
|
||||
Colorized Elevation
|
||||
Color 665m
|
||||
Color 665m, x6g2
|
||||
Color 332m
|
||||
Color 332m, stretched
|
||||
MASC Color Ratio Map
|
||||
MASC Color Ratio Map sat75, white
|
||||
MASC Color Ratio Map sat85, black
|
||||
-->
|
||||
</Service>
|
||||
<DataWindow>
|
||||
<UpperLeftX>-180.0</UpperLeftX>
|
||||
<UpperLeftY>90</UpperLeftY>
|
||||
<LowerRightX>180.0</LowerRightX>
|
||||
<LowerRightY>-90</LowerRightY>
|
||||
<TileLevel>20</TileLevel>
|
||||
<TileCountX>2</TileCountX>
|
||||
<TileCountY>1</TileCountY>
|
||||
<YOrigin>top</YOrigin>
|
||||
</DataWindow>
|
||||
<BlockSizeX>512</BlockSizeX>
|
||||
<BlockSizeY>512</BlockSizeY>
|
||||
</GDAL_WMS>
|
||||
@@ -0,0 +1,24 @@
|
||||
<GDAL_WMS>
|
||||
<Service name="TiledWMS">
|
||||
<ServerUrl>http://192.168.1.167/OnMercury/wms.cgi?</ServerUrl>
|
||||
<!--
|
||||
These are the available layers that can be used as TiledGroupName:
|
||||
Elevation, Gaskell
|
||||
Elevation 16bit, Gaskell
|
||||
Elevation 16bit, Gaskell, 2014-12-04
|
||||
-->
|
||||
<TiledGroupName>Elevation 16bit, Gaskell</TiledGroupName>
|
||||
</Service>
|
||||
<DataWindow>
|
||||
<UpperLeftX>-180.0</UpperLeftX>
|
||||
<UpperLeftY>90</UpperLeftY>
|
||||
<LowerRightX>180.0</LowerRightX>
|
||||
<LowerRightY>-90</LowerRightY>
|
||||
<TileLevel>8</TileLevel>
|
||||
<TileCountX>2</TileCountX>
|
||||
<TileCountY>1</TileCountY>
|
||||
<YOrigin>top</YOrigin>
|
||||
</DataWindow>
|
||||
<BlockSizeX>512</BlockSizeX>
|
||||
<BlockSizeY>512</BlockSizeY>
|
||||
</GDAL_WMS>
|
||||
@@ -0,0 +1,31 @@
|
||||
<GDAL_WMS>
|
||||
<Service name="TiledWMS">
|
||||
<ServerUrl>http://192.168.1.167/OnMercury/wms.cgi?</ServerUrl>
|
||||
<TiledGroupName>Mercury Image</TiledGroupName>
|
||||
<!--
|
||||
Mercury Image
|
||||
Gravity, contours
|
||||
Gravity, no contours
|
||||
Fast Neutron
|
||||
Sigma Map
|
||||
Aluminum
|
||||
Calcium
|
||||
Iron
|
||||
Magnesium
|
||||
Sulfur
|
||||
Potassium
|
||||
-->
|
||||
</Service>
|
||||
<DataWindow>
|
||||
<UpperLeftX>-180.0</UpperLeftX>
|
||||
<UpperLeftY>90</UpperLeftY>
|
||||
<LowerRightX>180.0</LowerRightX>
|
||||
<LowerRightY>-90</LowerRightY>
|
||||
<TileLevel>20</TileLevel>
|
||||
<TileCountX>2</TileCountX>
|
||||
<TileCountY>1</TileCountY>
|
||||
<YOrigin>top</YOrigin>
|
||||
</DataWindow>
|
||||
<BlockSizeX>512</BlockSizeX>
|
||||
<BlockSizeY>512</BlockSizeY>
|
||||
</GDAL_WMS>
|
||||
@@ -211,7 +211,7 @@ return {
|
||||
},
|
||||
Modules = {
|
||||
"sun",
|
||||
"mercury",
|
||||
"lodmercury",
|
||||
"venus",
|
||||
"lodearth",
|
||||
"lodmoon",
|
||||
|
||||
Reference in New Issue
Block a user