GregroxMun

random procedural asteroid

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