Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Kopernicus:FOR[ProceduralAsteroid]
- {
- Body
- {
- //--------------------------------------------------------------------------------------------------------------//
- name = Procedure
- //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
- PolynomialSeed = 46.4
- //Any number from 1 to 65. (Does not have to be an integer)
- //Determines lumpiness.
- 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
- }
- 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 = 2.53318755e10
- eccentricity = 0.08874
- }
- //
- //
- //
- //--------------------------------------------------------------------------------------------------------------//
- //Don't touch anything below here unless you know what you're doing.
- //--------------------------------------------------------------------------------------------------------------//
- //
- //
- //
- //
- //
- //
- PolynomialFunction1
- {
- //y=1.8+(0.06(x^6 - 21.29x^5 + 180.145x^4 - 770.323x^3 + 1739.539x^2 - 1937.123x + 808.053))
- //Useful Domain: 1 < x < 6
- x = #$../AsteroidGeneratorSettings/Seed2$
- @X /= 10
- //input
- Xt1 = #$X$
- @Xt1 != 6
- Xt2 = #$X$
- @Xt2 != 5
- @Xt2 *= 21.29
- Xt3 = #$X$
- @Xt3 != 4
- @Xt3 *= 180.145
- Xt4 = #$X$
- @Xt4 != 3
- @Xt4 *= 770.323
- Xt5 = #$X$
- @Xt5 != 2
- @Xt5 *= 1739.539
- Xt6 = #$X$
- @Xt6 != 1
- @Xt6 *= 1937.123
- Xt7 = #$X$
- @Xt7 != 0
- @Xt7 *= 808.053
- Yans = #$Xt1$
- @Yans -= #$Xt2$
- @Yans += #$Xt3$
- @Yans -= #$Xt4$
- @Yans += #$Xt5$
- @Yans -= #$Xt6$
- @Yans += #$Xt7$
- @Yans *= 0.06
- @Yans += 1.8
- }
- 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
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement