Advertisement
GregroxMun

@Kopernicus:FOR[ProceduralAsteroid]

Aug 2nd, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.28 KB | None | 0 0
  1. @Kopernicus:FOR[ProceduralAsteroid]
  2. {
  3. Body
  4. {
  5. //--------------------------------------------------------------------------------------------------------------//
  6. name = Random
  7. //Whatever name you want
  8.  
  9. AsteroidGeneratorSettings
  10. {
  11. Description = A Generic Asteroid
  12. //describe the asteroid
  13.  
  14. Radius = 16
  15. //About half of the asteroid's size in kilometers
  16.  
  17. Density = 1.2
  18. //1.1 for icy, 2 for rocky, 4 for rocky/metallic, 6 for metallic. Multiply for 10 to get Kerbalized version.
  19. //density times radius is gravity (in relative units)
  20.  
  21. Seed = 52699271
  22. //Any number you want, used to randomize some of the PQSmods
  23.  
  24. ColorOne = RGBA(164, 132, 125, 255)
  25. ColorTwo = RGBA(74, 70, 55, 255)
  26. //http://www.colorpicker.com/
  27. //Changes the colors of the PQSMods
  28. //Default is the colors of Gilly
  29.  
  30. Lumpiness = 1
  31. //Use 0 if you're using a heightmap, otherwise, this multiplier will determine how lumpy the asteroid is.
  32. //Default is 1
  33. }
  34. //ScaledVersion
  35. //{
  36. //Material
  37. //{
  38. //texture =
  39. //normals =
  40. //Example: texture = MyMod/PluginData/Name_Color.png
  41. //Put these in after exporting them in KittopiaTech.
  42. //Export at 512 resolution for objects smaller than 10km, 1024 for objects smaller than 50km.
  43. //}
  44. //}
  45. Orbit
  46. {
  47. //Default parameters represent 4 Vesta, but you can change them freely however you like.
  48.  
  49. referenceBody = Sun
  50. semiMajorAxis = 3.53318755e10
  51. eccentricity = 0.08874
  52.  
  53. }
  54. //
  55. //
  56. //
  57. //--------------------------------------------------------------------------------------------------------------//
  58. //Don't touch anything below here unless you know what you're doing.
  59. //--------------------------------------------------------------------------------------------------------------//
  60. //
  61. //
  62. //
  63. //
  64. //
  65. //
  66. Template
  67. {
  68. name = Gilly
  69. }
  70. Properties
  71. {
  72. description = #$../AsteroidGeneratorSettings/Description$
  73.  
  74. radius = 1
  75.  
  76. @radius *= #$../AsteroidGeneratorSettings/Radius$
  77.  
  78. @radius *= 1000
  79.  
  80. geeASL = 1
  81.  
  82. @geeASL *= #$../AsteroidGeneratorSettings/Radius$
  83.  
  84. @geeASL /= 6371
  85.  
  86. @geeASL *= #$../AsteroidGeneratorSettings/Density$
  87.  
  88. @geeASL /= 5.51
  89.  
  90. }
  91. PQS
  92. {
  93. Mods
  94. {
  95. VertexHeightMap
  96. {
  97. //map =
  98. //Add a map to activate this mod.
  99. offset = 0
  100. deformity = 6000
  101. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  102. @deformity /= 15
  103. order = 100
  104. ignorelandscape = true
  105. }
  106. VertexSimplexHeightAbsolute
  107. {
  108. deformity = 8000
  109. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  110. @deformity /= 15
  111. @deformity *= #$../../../AsteroidGeneratorSettings/Lumpiness$
  112. seed = #$../../../AsteroidGeneratorSettings/Seed$
  113. }
  114. VertexHeightNoise
  115. {
  116. deformity = 150
  117. seed = #$../../../AsteroidGeneratorSettings/Seed$
  118. }
  119. VertexSimplexNoiseColor
  120. {
  121. colorStart = #$../../../AsteroidGeneratorSettings/ColorOne$
  122. colorEnd = #$../../../AsteroidGeneratorSettings/ColorTwo$
  123. seed = #$../../../AsteroidGeneratorSettings/Seed$
  124. }
  125. VoronoiCraters
  126. {
  127. name = Craters1
  128. colorOpacity = 0.2
  129. DebugColorMapping = False
  130. deformation = 286
  131. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  132. @deformation /= 15
  133. jitter = 0.1
  134. jitterHeight = 3
  135. rFactor = 1
  136. rOffset = 1
  137. simplexFrequency = 120
  138. simplexOctaves = 3
  139. simplexPersistence = 0.5
  140. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  141. voronoiDisplacement = 0
  142. voronoiFrequency = 5
  143. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  144. order = 101
  145. enabled = True
  146. index = 0
  147. CraterCurve
  148. {
  149. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  150. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  151. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  152. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  153. key = -0.4499771 -0.1392395 5.289535 5.289535
  154. key = -0.4015177 0.2551735 9.069458 -2.149609
  155. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  156. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  157. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  158. }
  159. JitterCurve
  160. {
  161. key = -1.000701 0.4278412 0.1577609 0.1577609
  162. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  163. key = -0.6091803 0.072019 0.123537 0.123537
  164. key = -0.3930514 0.3903495 3.300831 3.300831
  165. key = -0.3584836 0.8643304 0.07139917 0.07139917
  166. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  167. key = 0.9970253 0.003401639 0 0
  168. }
  169. }
  170. VoronoiCraters
  171. {
  172. name = Craters2
  173. colorOpacity = 0.2
  174. DebugColorMapping = False
  175. deformation = 340
  176. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  177. @deformation /= 15
  178. jitter = 0.1
  179. jitterHeight = 3
  180. rFactor = 1
  181. rOffset = 1
  182. simplexFrequency = 120
  183. simplexOctaves = 3
  184. simplexPersistence = 0.5
  185. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  186. voronoiDisplacement = 0
  187. voronoiFrequency = 2
  188. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  189. @voronoiSeed *= 2
  190. order = 101
  191. enabled = True
  192. index = 0
  193. CraterCurve
  194. {
  195. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  196. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  197. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  198. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  199. key = -0.4499771 -0.1392395 5.289535 5.289535
  200. key = -0.4015177 0.2551735 9.069458 -2.149609
  201. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  202. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  203. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  204. }
  205. JitterCurve
  206. {
  207. key = -1.000701 0.4278412 0.1577609 0.1577609
  208. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  209. key = -0.6091803 0.072019 0.123537 0.123537
  210. key = -0.3930514 0.3903495 3.300831 3.300831
  211. key = -0.3584836 0.8643304 0.07139917 0.07139917
  212. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  213. key = 0.9970253 0.003401639 0 0
  214. }
  215. }
  216. }
  217. }
  218. }
  219. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement