Advertisement
GregroxMun

RandomAsteroid.cfg v1.0

Aug 3rd, 2016
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.13 KB | None | 0 0
  1. @Kopernicus:FOR[RandomAsteroid]
  2. {
  3. Body
  4. {
  5. //--------------------------------------------------------------------------------------------------------------//
  6.  
  7. name = Random
  8. //Whatever name you want.
  9.  
  10. AsteroidGeneratorSettings
  11. {
  12. Description = A whole sort of general mish mash of rock, ice, and metal.
  13. //describe the asteroid.
  14.  
  15. Radius = 21
  16. //About half of the asteroid's size in kilometers.
  17. //Gilly is 13
  18.  
  19. Density = 3.8
  20. //1.1 for icy, 2 for rocky, 3.5 for rocky/metallic, 6 for metallic. Multiply for 10 to get Kerbalized version.
  21. //density times radius is gravity (in relative units)
  22.  
  23.  
  24. Seed = 52699271
  25. //Any number you want, used to randomize some of the PQSmods
  26.  
  27.  
  28. ColorOne = RGBA(164, 132, 125, 255)
  29. ColorTwo = RGBA(74, 70, 55, 255)
  30. //http://www.colorpicker.com/
  31. //Changes the colors of the PQSMods
  32. //Default is the colors of Gilly
  33. //You can replace RGBA(0-255,0-255,0-255,255) with Unity colors by doing, for instance, ColorOne = 0.5,0.5,0.5,1
  34.  
  35.  
  36. LumpHeightMultiplier = 1
  37. //Use 0 if you're using a heightmap, otherwise, this multiplier will determine how lumpy the asteroid is.
  38. //Default is 1
  39.  
  40. LumpinessMultiplier = 1
  41. //Changes Frequency and Persistence of PQSmods.
  42. //Anywhere from 0 to 2.5 should be reasonable.
  43. //Shorter LumpHeights allow for higher LumpMults.
  44.  
  45.  
  46. CraterCountMultiplier = 2
  47. //Should probably be an integer, since VoronoiFrequency refers to how many dots the voronoi cells are based upon.
  48. //Also, don't go past, say, 8, for small bodies. Larger bodies should only go up to 15.
  49. //default is 2.
  50.  
  51.  
  52. AddHeightMap = false
  53. //Set to True or False. You MUST set to false if you're not using a heightmap.
  54. //If you use a heightmap, I recommend you lower the Lumpiness Multiplier.
  55. //Default is False.
  56.  
  57. HeightMap = BUILTIN/genericoffset
  58. //Example: HeightMap = MyMod/PluginData/MyAsteroidHeight.png
  59. //Set to BUILTIN/genericoffset when not using a heightmap.
  60. //Default: None.
  61.  
  62. }
  63. ScaledVersion
  64. {
  65. Material
  66. {
  67. texture =
  68. normals =
  69. //Example: texture = MyMod/PluginData/Name_Color.png
  70. //or: texture = MyMod/Textures/Name_Color
  71. //(The first one is for Load On Demand, the second one is for not that thing. There is not file extension on the second one.)
  72. //Put these in after exporting them in KittopiaTech.
  73. //Shame there's no way to have Kopernicus autogenerate the textures. (Dear Thomas,...)
  74. //Export at 512 resolution for objects smaller than 10km, 1024 for objects smaller than 50km.
  75. }
  76. }
  77. Orbit
  78. {
  79. //Default parameters represent a main belt asteroid orbiting the Kerbal Sun, but you can change them freely however you like.
  80.  
  81. referenceBody = Sun
  82. semiMajorAxis = 3.53318755e10
  83. eccentricity = 0.2317
  84. inclination = 7.14
  85. }
  86. //
  87. //
  88. //
  89. //--------------------------------------------------------------------------------------------------------------//
  90. //Don't touch anything below here unless you know what you're doing.
  91. //--------------------------------------------------------------------------------------------------------------//
  92. //
  93. //
  94. //
  95. //
  96. //
  97. //
  98. Template
  99. {
  100. name = Gilly
  101. }
  102. Properties
  103. {
  104. description = #$../AsteroidGeneratorSettings/Description$
  105.  
  106. radius = 1
  107.  
  108. @radius *= #$../AsteroidGeneratorSettings/Radius$
  109.  
  110. @radius *= 1000
  111.  
  112. geeASL = 1
  113.  
  114. @geeASL *= #$../AsteroidGeneratorSettings/Radius$
  115.  
  116. @geeASL /= 6371
  117.  
  118. @geeASL *= #$../AsteroidGeneratorSettings/Density$
  119.  
  120. @geeASL /= 5.51
  121.  
  122. }
  123. PQS
  124. {
  125. Mods
  126. {
  127. VertexHeightMap
  128. {
  129. map = #$../../../AsteroidGeneratorSettings/HeightMap$
  130. offset = 0
  131. deformity = 6000
  132. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  133. @deformity /= 13
  134. order = 100
  135. enabled = #$../../../AsteroidGeneratorSettings/AddHeightMap$
  136. ignorelandscape = true
  137. //The above is a setting for SigmaDimensions.
  138. }
  139. VertexSimplexHeightAbsolute
  140. {
  141. frequency = 0.5
  142. @frequency *= #$../../../AsteroidGeneratorSettings/LumpinessMultiplier$
  143. deformity = 8000
  144. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  145. @deformity /= 13
  146. @deformity *= #$../../../AsteroidGeneratorSettings/LumpHeightMultiplier$
  147. seed = #$../../../AsteroidGeneratorSettings/Seed$
  148. }
  149. VertexHeightNoise
  150. {
  151. deformity = 150
  152. @deformity *= #$../../../AsteroidGeneratorSettings/Radius$
  153. @deformity /= 13
  154. seed = #$../../../AsteroidGeneratorSettings/Seed$
  155. }
  156. VertexSimplexNoiseColor
  157. {
  158. colorStart = #$../../../AsteroidGeneratorSettings/ColorOne$
  159. colorEnd = #$../../../AsteroidGeneratorSettings/ColorTwo$
  160. seed = #$../../../AsteroidGeneratorSettings/Seed$
  161. }
  162. VoronoiCraters
  163. {
  164. name = Craters1
  165. colorOpacity = 0.2
  166. DebugColorMapping = False
  167. deformation = 286
  168. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  169. @deformation /= 13
  170. jitter = 0.1
  171. jitterHeight = 3
  172. rFactor = 1
  173. rOffset = 1
  174. simplexFrequency = 120
  175. simplexOctaves = 3
  176. simplexPersistence = 0.5
  177. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  178. voronoiDisplacement = 0
  179. voronoiFrequency = 5
  180. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  181. order = 101
  182. enabled = True
  183. index = 0
  184. CraterCurve
  185. {
  186. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  187. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  188. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  189. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  190. key = -0.4499771 -0.1392395 5.289535 5.289535
  191. key = -0.4015177 0.2551735 9.069458 -2.149609
  192. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  193. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  194. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  195. }
  196. JitterCurve
  197. {
  198. key = -1.000701 0.4278412 0.1577609 0.1577609
  199. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  200. key = -0.6091803 0.072019 0.123537 0.123537
  201. key = -0.3930514 0.3903495 3.300831 3.300831
  202. key = -0.3584836 0.8643304 0.07139917 0.07139917
  203. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  204. key = 0.9970253 0.003401639 0 0
  205. }
  206. }
  207. VoronoiCraters
  208. {
  209. name = Craters2
  210. colorOpacity = 0.2
  211. DebugColorMapping = False
  212. deformation = 680
  213. @deformation *= #$../../../AsteroidGeneratorSettings/Radius$
  214. @deformation /= 13
  215. @deformation /= #$../../../AsteroidGeneratorSettings/CraterCountMultiplier$
  216. jitter = 0.1
  217. jitterHeight = 3
  218. rFactor = 1
  219. rOffset = 1
  220. simplexFrequency = 120
  221. simplexOctaves = 3
  222. simplexPersistence = 0.5
  223. simplexSeed = #$../../../AsteroidGeneratorSettings/Seed$
  224. voronoiDisplacement = 0
  225. voronoiFrequency = 1
  226. @voronoiFrequency *= #$../../../AsteroidGeneratorSettings/CraterCountMultiplier$
  227. voronoiSeed = #$../../../AsteroidGeneratorSettings/Seed$
  228. @voronoiSeed *= 2
  229. order = 101
  230. enabled = True
  231. index = 0
  232. CraterCurve
  233. {
  234. key = -0.9982381 -0.7411783 -0.06500059 -0.06500059
  235. key = -0.9332262 -0.7678316 -0.2176399 -0.2176399
  236. key = -0.8990405 -0.7433339 -2.560626 -2.560626
  237. key = -0.7445966 -0.8581167 0.4436148 0.4436148
  238. key = -0.4499771 -0.1392395 5.289535 5.289535
  239. key = -0.4015177 0.2551735 9.069458 -2.149609
  240. key = -0.2297457 0.002857953 -0.4453675 -0.4453675
  241. key = 0.2724952 0.00423781 -0.01884932 -0.01884932
  242. key = 0.9998434 -0.004090764 0.01397126 0.01397126
  243. }
  244. JitterCurve
  245. {
  246. key = -1.000701 0.4278412 0.1577609 0.1577609
  247. key = -0.7884969 0.09487452 -0.7739663 -0.7739663
  248. key = -0.6091803 0.072019 0.123537 0.123537
  249. key = -0.3930514 0.3903495 3.300831 3.300831
  250. key = -0.3584836 0.8643304 0.07139917 0.07139917
  251. key = -0.2988068 0.002564805 -0.01814346 -0.01814346
  252. key = 0.9970253 0.003401639 0 0
  253. }
  254. }
  255. }
  256. }
  257. }
  258. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement