Advertisement
GregroxMun

Procedural Asteroid v0.1

Aug 2nd, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 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. VertexSimplexHeightAbsolute
  96. {
  97. deformity = 8000
  98. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  99. @deformity /= 15
  100. @deformity *= #$../../../AsteroidGeneratorSettings/Lumpiness$
  101. seed = #$../../../AsteroidGeneratorSettings/Seed$
  102. }
  103. VertexHeightNoise
  104. {
  105. deformity = 150
  106. seed = #$../../../AsteroidGeneratorSettings/Seed$
  107. }
  108. VertexSimplexNoiseColor
  109. {
  110. colorStart = #$../../../AsteroidGeneratorSettings/ColorOne$
  111. colorEnd = #$../../../AsteroidGeneratorSettings/ColorTwo$
  112. seed = #$../../../AsteroidGeneratorSettings/Seed$
  113. }
  114. VoronoiCraters
  115. {
  116. name = Craters1
  117. colorOpacity = 0.2
  118. DebugColorMapping = False
  119. deformation = 286
  120. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  121. @deformation /= 15
  122. jitter = 0.1
  123. jitterHeight = 3
  124. rFactor = 1
  125. rOffset = 1
  126. simplexFrequency = 120
  127. simplexOctaves = 3
  128. simplexPersistence = 0.5
  129. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  130. voronoiDisplacement = 0
  131. voronoiFrequency = 5
  132. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  133. order = 101
  134. enabled = True
  135. index = 0
  136. CraterCurve
  137. {
  138. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  139. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  140. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  141. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  142. key = -0.4499771 -0.1392395 5.289535 5.289535
  143. key = -0.4015177 0.2551735 9.069458 -2.149609
  144. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  145. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  146. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  147. }
  148. JitterCurve
  149. {
  150. key = -1.000701 0.4278412 0.1577609 0.1577609
  151. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  152. key = -0.6091803 0.072019 0.123537 0.123537
  153. key = -0.3930514 0.3903495 3.300831 3.300831
  154. key = -0.3584836 0.8643304 0.07139917 0.07139917
  155. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  156. key = 0.9970253 0.003401639 0 0
  157. }
  158. }
  159. VoronoiCraters
  160. {
  161. name = Craters2
  162. colorOpacity = 0.2
  163. DebugColorMapping = False
  164. deformation = 340
  165. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  166. @deformation /= 15
  167. jitter = 0.1
  168. jitterHeight = 3
  169. rFactor = 1
  170. rOffset = 1
  171. simplexFrequency = 120
  172. simplexOctaves = 3
  173. simplexPersistence = 0.5
  174. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  175. voronoiDisplacement = 0
  176. voronoiFrequency = 2
  177. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  178. @voronoiSeed *= 2
  179. order = 101
  180. enabled = True
  181. index = 0
  182. CraterCurve
  183. {
  184. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  185. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  186. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  187. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  188. key = -0.4499771 -0.1392395 5.289535 5.289535
  189. key = -0.4015177 0.2551735 9.069458 -2.149609
  190. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  191. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  192. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  193. }
  194. JitterCurve
  195. {
  196. key = -1.000701 0.4278412 0.1577609 0.1577609
  197. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  198. key = -0.6091803 0.072019 0.123537 0.123537
  199. key = -0.3930514 0.3903495 3.300831 3.300831
  200. key = -0.3584836 0.8643304 0.07139917 0.07139917
  201. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  202. key = 0.9970253 0.003401639 0 0
  203. }
  204. }
  205. }
  206. }
  207. }
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement