diff --git a/.gitignore b/.gitignore index f3bdc07d..909f3e59 100644 --- a/.gitignore +++ b/.gitignore @@ -151,3 +151,6 @@ $RECYCLE.BIN/ *.DS_Store BoulderCo/CityLights/Textures/detaildark.png BoulderCo/CityLights/Textures/detaillight.png + +# Oblate Gas Giants +Oblate*.bin \ No newline at end of file diff --git a/GameData/RealSolarSystem/RSSKopernicus/Jupiter/Jupiter_Oblate.cfg b/GameData/RealSolarSystem/RSSKopernicus/Jupiter/Jupiter_Oblate.cfg new file mode 100644 index 00000000..25b71608 --- /dev/null +++ b/GameData/RealSolarSystem/RSSKopernicus/Jupiter/Jupiter_Oblate.cfg @@ -0,0 +1,56 @@ +@Kopernicus:FOR[RealSolarSystem] +{ + + // reference: http://nssdc.gsfc.nasa.gov/planetary/factsheet/jupiterfact.html + + @Body[Jupiter] + { + %cacheFile = RealSolarSystem/RSSKopernicus/Jupiter/Cache/OblateJupiter.bin + @Properties + { + @radius *= 1.02261446696514 // Equatorial Radius + } + @Rings + { + @Ring,* + { + @innerRadius /= 1.02261446696514 // Keep rings the same size + @outerRadius /= 1.02261446696514 + } + } + @Atmosphere + { + @AtmosphereFromGround + { + %transformScale = 0,0,0 + } + } + @Debug + { + !update = DEL + !exportMesh = DEL + } + PQS + { + materialType = AtmosphericOptimized + Mods + { + VertexHeightOffset + { + offset = #$../../../Properties/radius$ + @offset *= -0.0648743915403122 + order = 99 + enabled = True + } + VertexHeightOblate + { + height = #$../VertexHeightOffset/offset$ + @height *= -1 + pow = 2 + enabled = true + order = 100 + } + } + } + } +} diff --git a/GameData/RealSolarSystem/RSSKopernicus/Neptune/Neptune_Oblate.cfg b/GameData/RealSolarSystem/RSSKopernicus/Neptune/Neptune_Oblate.cfg new file mode 100644 index 00000000..1861c2e0 --- /dev/null +++ b/GameData/RealSolarSystem/RSSKopernicus/Neptune/Neptune_Oblate.cfg @@ -0,0 +1,49 @@ +@Kopernicus:FOR[RealSolarSystem] +{ + + // reference: http://nssdc.gsfc.nasa.gov/planetary/factsheet/neptunefact.html + + @Body[Neptune] + { + %cacheFile = RealSolarSystem/RSSKopernicus/Neptune/Cache/OblateNeptune.bin + @Properties + { + @radius *= 1.00576720006498 // Equatorial Radius + } + @Rings + { + @Ring,* + { + @innerRadius /= 1.00576720006498 // Keep rings the same size + @outerRadius /= 1.00576720006498 + } + } + @Debug + { + !update = DEL + !exportMesh = DEL + } + PQS + { + materialType = AtmosphericOptimized + Mods + { + VertexHeightOffset + { + offset = #$../../../Properties/radius$ + @offset *= -0.0170812469714101 + order = 99 + enabled = True + } + VertexHeightOblate + { + height = #$../VertexHeightOffset/offset$ + @height *= -1 + pow = 2 + enabled = true + order = 100 + } + } + } + } +} diff --git a/GameData/RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin b/GameData/RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin deleted file mode 100644 index fffacccc..00000000 Binary files a/GameData/RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin and /dev/null differ diff --git a/GameData/RealSolarSystem/RSSKopernicus/Saturn/Saturn_Oblate.cfg b/GameData/RealSolarSystem/RSSKopernicus/Saturn/Saturn_Oblate.cfg index 185cea75..f07e1efb 100644 --- a/GameData/RealSolarSystem/RSSKopernicus/Saturn/Saturn_Oblate.cfg +++ b/GameData/RealSolarSystem/RSSKopernicus/Saturn/Saturn_Oblate.cfg @@ -1,31 +1,51 @@ @Kopernicus:FOR[RealSolarSystem] { - Body // This is a dummy body, its only purpose is to generate the .bin file. It will not show up ingame. + + // reference: http://nssdc.gsfc.nasa.gov/planetary/factsheet/saturnfact.html + + @Body[Saturn] { - name = OblateSaturn - cacheFile = RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin - Template + %cacheFile = RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin + @Properties { - name = Minmus - removePQSMods = PQSLandControl,VertexPlanet + @radius *= 1.03496359390026 // Equatorial Radius + } + @Rings + { + @Ring,* + { + @innerRadius /= 1.03496359390026 // Keep rings the same size + @outerRadius /= 1.03496359390026 + } } - Properties + @Atmosphere { - radius = #$/Body[Saturn]/Properties/radius$ - @radius *= 0.948496056947449 // obtain polar radius multiplying by the ratio (polar radius) / (mean radius) + @AtmosphereFromGround + { + %transformScale = 0,0,0 + } } - Orbit + @Debug { - referenceBody = OblateSaturn + !update = DEL + !exportMesh = DEL } PQS { + materialType = AtmosphericOptimized Mods { + VertexHeightOffset + { + offset = #$../../../Properties/radius$ + @offset *= -0.0979624344594137 + order = 99 + enabled = True + } VertexHeightOblate { - height = #$../../../Properties/radius$ - @height *= 0.108601280258995 // calculate the value: (equatorial radius) - (polar radius) + height = #$../VertexHeightOffset/offset$ + @height *= -1 pow = 2 enabled = true order = 100 @@ -33,57 +53,4 @@ } } } - #Body[Saturn] {} // we need to move saturn after OblateSaturn so this Body will load the .bin file of the dummy - !Body[Saturn] {} - @Body[Saturn] // this body needs to load the same .bin file as OblateSaturn - { - %cacheFile = RealSolarSystem/RSSKopernicus/Saturn/Cache/OblateSaturn.bin - %Debug - { - %update = true - %exportMesh = true - } - @Properties // reference: http://nssdc.gsfc.nasa.gov/planetary/factsheet/saturnfact.html - { - @radius *= 0.948496056947449 // obtain polar radius multiplying by the ratio (polar radius) / (mean radius) - } - @Atmosphere // bring the atmosphere up so that the "pressureASL" is applied at the equatorial radius - { - %equator = #$../Properties/radius$ - @equator *= 0.108601280258995 - - @maxAltitude += #$equator$ - @altitude += #$equator$ - @atmosphereDepth += #$equator$ - - @pressureCurve - { - @key,*[0, ] += #$../equator$ - } - @temperatureCurve - { - @key,*[0, ] += #$../equator$ - } - @temperatureSunMultCurve - { - @key,*[0, ] += #$../equator$ - } - @AtmosphereFromGround - { - @transformScale = 0,0,0 - } - } - @Atmosphere - { - !equator = DEL - } - @Rings - { - @Ring,* - { - @innerRadius /= 0.948496056947449 // keep the rings the same size they are without this cfg - @outerRadius /= 0.948496056947449 - } - } - } } diff --git a/GameData/RealSolarSystem/RSSKopernicus/Uranus/Uranus_Oblate.cfg b/GameData/RealSolarSystem/RSSKopernicus/Uranus/Uranus_Oblate.cfg new file mode 100644 index 00000000..09f75ed2 --- /dev/null +++ b/GameData/RealSolarSystem/RSSKopernicus/Uranus/Uranus_Oblate.cfg @@ -0,0 +1,49 @@ +@Kopernicus:FOR[RealSolarSystem] +{ + + // reference: http://nssdc.gsfc.nasa.gov/planetary/factsheet/uranusfact.html + + @Body[Uranus] + { + %cacheFile = RealSolarSystem/RSSKopernicus/Uranus/Cache/OblateUranus.bin + @Properties + { + @radius *= 1.00776752622033 // Equatorial Radius + } + @Rings + { + @Ring,* + { + @innerRadius /= 1.00776752622033 // Keep rings the same size + @outerRadius /= 1.00776752622033 + } + } + @Debug + { + !update = DEL + !exportMesh = DEL + } + PQS + { + materialType = AtmosphericOptimized + Mods + { + VertexHeightOffset + { + offset = #$../../../Properties/radius$ + @offset *= -0.0229273445752964 + order = 99 + enabled = True + } + VertexHeightOblate + { + height = #$../VertexHeightOffset/offset$ + @height *= -1 + pow = 2 + enabled = true + order = 100 + } + } + } + } +}