Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Kopernicus:FOR[RandomAsteroid]
- {
- Body
- {
- //--------------------------------------------------------------------------------------------------------------//
- name = Random
- //Whatever name you want.
- AsteroidGeneratorSettings
- {
- Description = A whole sort of general mish mash of rock, ice, and metal.
- //describe the asteroid.
- Radius = 21
- //About half of the asteroid's size in kilometers.
- //Gilly is 13
- Density = 3.8
- //1.1 for icy, 2 for rocky, 3.5 for rocky/metallic, 6 for metallic. Multiply for 10 to get Kerbalized version.
- //density times radius is gravity (in relative units)
- Seed = 52699271
- //Any number you want, used to randomize some of the PQSmods
- ColorOne = RGBA(164, 132, 125, 255)
- ColorTwo = RGBA(74, 70, 55, 255)
- //http://www.colorpicker.com/
- //Changes the colors of the PQSMods
- //Default is the colors of Gilly
- //You can replace RGBA(0-255,0-255,0-255,255) with Unity colors by doing, for instance, ColorOne = 0.5,0.5,0.5,1
- LumpHeightMultiplier = 1
- //Use 0 if you're using a heightmap, otherwise, this multiplier will determine how lumpy the asteroid is.
- //Default is 1
- LumpinessMultiplier = 1
- //Changes Frequency and Persistence of PQSmods.
- //Anywhere from 0 to 2.5 should be reasonable.
- //Shorter LumpHeights allow for higher LumpMults.
- CraterCountMultiplier = 2
- //Should probably be an integer, since VoronoiFrequency refers to how many dots the voronoi cells are based upon.
- //Also, don't go past, say, 8, for small bodies. Larger bodies should only go up to 15.
- //default is 2.
- AddHeightMap = false
- //Set to True or False. You MUST set to false if you're not using a heightmap.
- //If you use a heightmap, I recommend you lower the Lumpiness Multiplier.
- //Default is False.
- HeightMap = BUILTIN/genericoffset
- //Example: HeightMap = MyMod/PluginData/MyAsteroidHeight.png
- //Set to BUILTIN/genericoffset when not using a heightmap.
- //Default: None.
- }
- ScaledVersion
- {
- Material
- {
- texture =
- normals =
- //Example: texture = MyMod/PluginData/Name_Color.png
- //or: texture = MyMod/Textures/Name_Color
- //(The first one is for Load On Demand, the second one is for not that thing. There is not file extension on the second one.)
- //Put these in after exporting them in KittopiaTech.
- //Shame there's no way to have Kopernicus autogenerate the textures. (Dear Thomas,...)
- //Export at 512 resolution for objects smaller than 10km, 1024 for objects smaller than 50km.
- }
- }
- Orbit
- {
- //Default parameters represent a main belt asteroid orbiting the Kerbal Sun, but you can change them freely however you like.
- referenceBody = Sun
- semiMajorAxis = 3.53318755e10
- eccentricity = 0.2317
- inclination = 7.14
- }
- //
- //
- //
- //--------------------------------------------------------------------------------------------------------------//
- //Don't touch anything below here unless you know what you're doing.
- //--------------------------------------------------------------------------------------------------------------//
- //
- //
- //
- //
- //
- //
- Template
- {
- name = Gilly
- }
- Properties
- {
- description = #$../AsteroidGeneratorSettings/Description$
- radius = 1
- @radius *= #$../AsteroidGeneratorSettings/Radius$
- @radius *= 1000
- geeASL = 1
- @geeASL *= #$../AsteroidGeneratorSettings/Radius$
- @geeASL /= 6371
- @geeASL *= #$../AsteroidGeneratorSettings/Density$
- @geeASL /= 5.51
- }
- PQS
- {
- Mods
- {
- VertexHeightMap
- {
- map = #$../../../AsteroidGeneratorSettings/HeightMap$
- offset = 0
- deformity = 6000
- @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformity /= 13
- order = 100
- enabled = #$../../../AsteroidGeneratorSettings/AddHeightMap$
- ignorelandscape = true
- //The above is a setting for SigmaDimensions.
- }
- VertexSimplexHeightAbsolute
- {
- frequency = 0.5
- @frequency *= #$../../../AsteroidGeneratorSettings/LumpinessMultiplier$
- deformity = 8000
- @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformity /= 13
- @deformity *= #$../../../AsteroidGeneratorSettings/LumpHeightMultiplier$
- seed = #$../../../AsteroidGeneratorSettings/Seed$
- }
- VertexHeightNoise
- {
- deformity = 150
- @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformity /= 13
- seed = #$../../../AsteroidGeneratorSettings/Seed$
- }
- VertexSimplexNoiseColor
- {
- colorStart = #$../../../AsteroidGeneratorSettings/ColorOne$
- colorEnd = #$../../../AsteroidGeneratorSettings/ColorTwo$
- seed = #$../../../AsteroidGeneratorSettings/Seed$
- }
- VoronoiCraters
- {
- name = Craters1
- colorOpacity = 0.2
- DebugColorMapping = False
- deformation = 286
- @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformation /= 13
- jitter = 0.1
- jitterHeight = 3
- rFactor = 1
- rOffset = 1
- simplexFrequency = 120
- simplexOctaves = 3
- simplexPersistence = 0.5
- simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
- voronoiDisplacement = 0
- voronoiFrequency = 5
- voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
- order = 101
- enabled = True
- index = 0
- CraterCurve
- {
- key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
- key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
- key = -0.8990405 -0.7433339 -2.560626 -2.560626
- key = -0.7445966 -0.8581167 0.4436148 0.4436148
- key = -0.4499771 -0.1392395 5.289535 5.289535
- key = -0.4015177 0.2551735 9.069458 -2.149609
- key = -0.2297457 0.002857953 -0.4453675 -0.4453675
- key = 0.2724952 0.00423781 -0.01884932 -0.01884932
- key = 0.9998434 -0.004090764 0.01397126 0.01397126
- }
- JitterCurve
- {
- key = -1.000701 0.4278412 0.1577609 0.1577609
- key = -0.7884969 0.09487452 -0.7739663 -0.7739663
- key = -0.6091803 0.072019 0.123537 0.123537
- key = -0.3930514 0.3903495 3.300831 3.300831
- key = -0.3584836 0.8643304 0.07139917 0.07139917
- key = -0.2988068 0.002564805 -0.01814346 -0.01814346
- key = 0.9970253 0.003401639 0 0
- }
- }
- VoronoiCraters
- {
- name = Craters2
- colorOpacity = 0.2
- DebugColorMapping = False
- deformation = 680
- @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformation /= 13
- @deformation /= #$../../../AsteroidGeneratorSettings/CraterCountMultiplier$
- jitter = 0.1
- jitterHeight = 3
- rFactor = 1
- rOffset = 1
- simplexFrequency = 120
- simplexOctaves = 3
- simplexPersistence = 0.5
- simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
- voronoiDisplacement = 0
- voronoiFrequency = 1
- @voronoiFrequency *= #$../../../AsteroidGeneratorSettings/CraterCountMultiplier$
- voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
- @voronoiSeed *= 2
- order = 101
- enabled = True
- index = 0
- CraterCurve
- {
- key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
- key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
- key = -0.8990405 -0.7433339 -2.560626 -2.560626
- key = -0.7445966 -0.8581167 0.4436148 0.4436148
- key = -0.4499771 -0.1392395 5.289535 5.289535
- key = -0.4015177 0.2551735 9.069458 -2.149609
- key = -0.2297457 0.002857953 -0.4453675 -0.4453675
- key = 0.2724952 0.00423781 -0.01884932 -0.01884932
- key = 0.9998434 -0.004090764 0.01397126 0.01397126
- }
- JitterCurve
- {
- key = -1.000701 0.4278412 0.1577609 0.1577609
- key = -0.7884969 0.09487452 -0.7739663 -0.7739663
- key = -0.6091803 0.072019 0.123537 0.123537
- key = -0.3930514 0.3903495 3.300831 3.300831
- key = -0.3584836 0.8643304 0.07139917 0.07139917
- key = -0.2988068 0.002564805 -0.01814346 -0.01814346
- key = 0.9970253 0.003401639 0 0
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement