Skip to content

Instantly share code, notes, and snippets.

@alex-sherwin
Created November 26, 2025 02:53
Show Gist options
  • Select an option

  • Save alex-sherwin/426b7c6406ce127853cc5133e598135d to your computer and use it in GitHub Desktop.

Select an option

Save alex-sherwin/426b7c6406ce127853cc5133e598135d to your computer and use it in GitHub Desktop.
GeneratedSystem.xml
<?xml version="1.0" encoding="utf-8"?>
<System Id="GeneratedSystem">
<DisplayName Value="GeneratedSystem"/>
<LoadFromLibrary Id="Sol"/>
<LoadFromLibrary Id="Rocket" Parent="Earth"/>
<LoadFromLibrary Id="Gemini7" Parent="Earth"/>
<LoadFromLibrary Id="Gemini6a" Parent="Earth"/>
<LoadFromLibrary Id="Hunter" Parent="Earth"/>
<LoadFromLibrary Id="Banjo" Parent="Earth"/>
<LoadFromLibrary Id="Polaris" Parent="Earth"/>
<LoadFromLibrary Id="Earth" Parent="Sol"/>
<AtmosphericBody Id="Mars" Parent="Sol">
<MeshCollection Id="MarsScale"/>
<Diffuse Id="MarsDiffuse" Path="../Core/Textures/Mars_Diffuse.dds" Category="Terrain"/>
<Normal Path="../Core/Textures/Mars_Normal.dds" Power="0.2" Category="Terrain"/>
<Height Path="../Core/Textures/Mars_Height.ktx2" Category="Terrain">
<Minimum Km="-8.200"/>
<Maximum Km="21.229"/>
</Height>
<Terrain><!-- In progress... -->
<BiomeIDMap Id="MarsBiomeID" Path="../Core/Textures/Mars_Biome_ID.png" Category="Terrain"/>
<BiomeControlMap Id="MarsBiomeControl" Path="../Core/Textures/Mars_Biome_Control.png" Category="Terrain"/>
<ProceduralModifiers>
<GradientScale Value="2.2"/>
<Modifier Type="Decal" Name="MarsTestDecal">
<Frequency Value="250"/>
<Amplitude Value="200"/>
<Seed Value="1"/>
<Order Value="9999"/>
<Radius Value="100"/>
<Rotation Degrees="0"/>
<Location Id="TestLocation">
<Latitude Degrees="0.0"/>
<Longitude Degrees="0.0"/>
</Location>
<AltitudeOffset Km="0"/>
<SmoothFactor Value="0.5"/>
<Additive Value="true"/>
<HeightMap Id="LunaTestDecalHeight" Path="../Core/Textures/Planets/Luna/TestDecalHeight.png" Category="Terrain"/>
</Modifier>
<Modifier Type="Erosion" Name="MarsErosion">
<Frequency Value="150"/>
<Amplitude Value="750"/>
<Lacunarity Value="2"/>
<GradientFalloff Value="0.1"/>
<Curvature Value="0.00035"/>
<Seed Value="1"/>
<Octaves Value="6"/>
<Order Value="1"/>
<GenerateColor Value="false"/>
<ValleyColor R="0.0" G="0.0" B="0.0" A="0.0"/>
<RidgeColor R="0.42" G="0.42" B="0.42" A="1.0"/>
</Modifier>
</ProceduralModifiers>
<BiomeMaterials><!-- Define any properties such as biome blending strength here --><!-- Order matters! The order these appear corresponds to the ID in the ID map, starting from 0 -->
<BlendStrength Value="2.25"/><!-- Appears in the lighter sandy areas, and mountains -->
<BiomeMaterial Name="SandOnly">
<SlopeBlendStrength Value="15.0"/>
<SlopeBlendContrast Value="2.0"/>
<SlopeBlendBias Value="0.00"/><!--<HeightTexture Id="LunaCraters" Path="Textures/craters.png" Category="Terrain"/> -->
<GroundMaterial>
<Diffuse Id="MarsRegolithDiffuse" Path="../Core/Textures/Planets/Mars/Regolith/Regolith_Albedo.dds" Category="Terrain"/>
<Normal Id="MarsRegolithNormal" Path="../Core/Textures/Planets/Mars/Regolith/Regolith_Normal.dds" Category="Terrain"/>
<AoRoughMetal Id="MarsRegolithAoRoughMetal" Path="../Core/Textures/Planets/Mars/Regolith/Regolith_AoRoughMetal.dds" Category="Terrain"/>
<Displacement Id="MarsRegolithDisplacement" Path="../Core/Textures/Planets/Mars/Regolith/Regolith_Displacement.png" Category="Terrain"/>
<Height Id="MarsM" Path="../Core/Textures/Mars_Noise.png" Category="Terrain"/>
<TextureTiling Value="0.04"/>
<HeightTiling Value="0.0000155"/>
<HeightDeformity Value="0.4"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.45"/>
</GroundMaterial>
<SlopeMaterial><!-- Luna's cliffs work pretty well here, recoloured orange by the terrain -->
<Diffuse Id="LunaCliffsDiffuse"/>
<Normal Id="LunaCliffsNormal"/>
<AoRoughMetal Id="LunaCliffsAoRoughMetal"/>
<Displacement Id="LunaCliffsDisplacement"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.6"/>
</SlopeMaterial>
</BiomeMaterial><!-- Appears in the darker sandy areas -->
<BiomeMaterial Name="SandAndCliffs">
<SlopeBlendStrength Value="15.0"/>
<SlopeBlendContrast Value="2.0"/>
<SlopeBlendBias Value="0.00"/><!--<HeightTexture Id="LunaCraters" Path="Textures/craters.png" Category="Terrain"/> -->
<GroundMaterial>
<Diffuse Id="MarsDebrisDiffuse" Path="../Core/Textures/Planets/Mars/Debris/Debris_Albedo.dds" Category="Terrain"/>
<Normal Id="MarsDebrisNormal" Path="../Core/Textures/Planets/Mars/Debris/Debris_Normal.dds" Category="Terrain"/>
<AoRoughMetal Id="MarsDebrisAoRoughMetal" Path="../Core/Textures/Planets/Mars/Debris/Debris_AoRoughMetal.dds" Category="Terrain"/>
<Displacement Id="MarsDebrisDisplacement" Path="../Core/Textures/Planets/Mars/Debris/Debris_Displacement.png" Category="Terrain"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.12800"/>
</GroundMaterial>
<SlopeMaterial>
<Diffuse Id="MarsCliffsDiffuse" Path="../Core/Textures/Planets/Mars/Cliffs/Cliffs_Albedo.dds" Category="Terrain"/>
<Normal Id="MarsCliffsNormal" Path="../Core/Textures/Planets/Mars/Cliffs/Cliffs_Normal.dds" Category="Terrain"/>
<AoRoughMetal Id="MarsCliffsAoRoughMetal" Path="../Core/Textures/Planets/Mars/Cliffs/Cliffs_AoRoughMetal.dds" Category="Terrain"/>
<Displacement Id="MarsCliffsDisplacement" Path="../Core/Textures/Planets/Mars/Cliffs/Cliffs_Displacement.png" Category="Terrain"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.6"/>
</SlopeMaterial>
<ProceduralModifiers>
<Modifier Type="Dunes" Name="MarsSandDunes">
<Frequency Value="100.0"/>
<Lacunarity Value="2.0"/>
<Persistence Value="0.6288"/>
<Shear Value="0.70"/>
<DistortionScale Value="0.08"/>
<DistortionAmp Value="10.21"/>
<FalloffPower Value="3.1"/>
<Amplitude Value="400"/>
<Seed Value="1"/>
<Octaves Value="8"/>
<Order Value="0"/>
</Modifier>
</ProceduralModifiers>
</BiomeMaterial><!-- The big canyon -->
<BiomeMaterial Name="VallesMarineris">
<SlopeBlendStrength Value="15.0"/>
<SlopeBlendContrast Value="2.0"/>
<SlopeBlendBias Value="0.00"/>
<GroundMaterial>
<Diffuse Id="MarsRegolithDiffuse"/>
<Normal Id="MarsRegolithNormal"/>
<AoRoughMetal Id="MarsRegolithAoRoughMetal"/>
<Displacement Id="MarsRegolithDisplacement"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.6"/>
</GroundMaterial>
<SlopeMaterial>
<Diffuse Id="MarsCliffsDiffuse"/>
<Normal Id="MarsCliffsNormal"/>
<AoRoughMetal Id="MarsCliffsAoRoughMetal"/>
<Displacement Id="MarsCliffsDisplacement"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.6"/>
</SlopeMaterial>
</BiomeMaterial>
<BiomeMaterial Name="Poles">
<SlopeBlendStrength Value="15.0"/>
<SlopeBlendContrast Value="2.0"/>
<SlopeBlendBias Value="0.00"/>
<GroundMaterial>
<Diffuse Id="MarsSnowDiffuse" Path="../Core/Textures/Planets/Mars/Snow/Snow_Albedo.dds" Category="Terrain"/>
<Normal Id="MarsSnowNormal" Path="../Core/Textures/Planets/Mars/Snow/Snow_Normal.dds" Category="Terrain"/>
<AoRoughMetal Id="MarsSnowAoRoughMetal" Path="../Core/Textures/Planets/Mars/Snow/Snow_AoRoughMetal.dds" Category="Terrain"/>
<Displacement Id="MarsSnowDisplacement" Path="../Core/Textures/Planets/Mars/Snow/Snow_Displacement.png" Category="Terrain"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.38"/>
</GroundMaterial><!-- Luna's cliffs work pretty well here too, although not sure if there actually are any cliffs or it's just an ice shelf -->
<SlopeMaterial>
<Diffuse Id="LunaCliffsDiffuse"/>
<Normal Id="LunaCliffsNormal"/>
<AoRoughMetal Id="LunaCliffsAoRoughMetal"/>
<Displacement Id="LunaCliffsDisplacement"/>
<Height Id="Grey" Path="../Core/Textures/Planets/EmptyGrey.png" Category="Terrain"/>
<TextureTiling Value="0.068"/>
<DiffuseScale Value="1.0"/>
<NormalScale Value="1.0"/>
<DisplacementScale Value="0.6"/>
</SlopeMaterial>
</BiomeMaterial>
</BiomeMaterials>
</Terrain>
<Color R="1.0" G="0.27" B="0.0"/>
<AxialAlignment Degrees="0"/>
<SemiMajorAxis Km="227939132.9"/>
<Inclination Degrees="1.85"/>
<Eccentricity Value="0.0933"/>
<LongitudeOfAscendingNode Degrees="49.56"/>
<ArgumentOfPeriapsis Degrees="286.54"/>
<MeanAnomalyAtEpoch Degrees="19.36"/>
<MeanRadius Km="3389.9"/>
<Period Seconds="88639"/>
<AxialTilt Degrees="25.19"/>
<Mass Kg="641690963846395900000000"/>
</AtmosphericBody>
</System>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment