Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Kopernicus:FOR[ProceduralAsteroid]
- {
- Body
- {
- //--------------------------------------------------------------------------------------------------------------//
- name = Random
- //Whatever name you want
- AsteroidGeneratorSettings
- {
- Description = A Generic Asteroid
- //describe the asteroid
- Radius = 21
- //About half of the asteroid's size in kilometers
- 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
- LumpHeightMultiplier = 0.5
- //Use 0 if you're using a heightmap, otherwise, this multiplier will determine how lumpy the asteroid is.
- //Default is 1
- LumpinessMultiplier = 2.5
- //Changes Frequency and Persistence of PQSmods.
- //Anywhere from 0 to 2.5 should be reasonable.
- }
- ScaledVersion
- {
- Material
- {
- texture =
- normals =
- //Example: texture = MyMod/PluginData/Name_Color.png
- //Put these in after exporting them in KittopiaTech.
- //Export at 512 resolution for objects smaller than 10km, 1024 for objects smaller than 50km.
- }
- }
- Orbit
- {
- //Default parameters represent 4 Vesta, but you can change them freely however you like.
- referenceBody = Sun
- semiMajorAxis = 3.53318755e10
- eccentricity = 0.08874
- }
- //
- //
- //
- //--------------------------------------------------------------------------------------------------------------//
- //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
- {
- VertexSimplexHeightAbsolute
- {
- frequency = 0.5
- @frequency *= #$../../../AsteroidGeneratorSettings/LumpinessMultiplier$
- deformity = 8000
- @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformity /= 15
- @deformity *= #$../../../AsteroidGeneratorSettings/LumpHeightMultiplier$
- seed = #$../../../AsteroidGeneratorSettings/Seed$
- }
- VertexHeightNoise
- {
- deformity = 150
- 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 /= 15
- 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 = 340
- @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
- @deformation /= 15
- jitter = 0.1
- jitterHeight = 3
- rFactor = 1
- rOffset = 1
- simplexFrequency = 120
- simplexOctaves = 3
- simplexPersistence = 0.5
- simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
- voronoiDisplacement = 0
- voronoiFrequency = 2
- 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
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment