Orihaus

Hex Sphere Structure Synth Script

Jun 20th, 2012
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.90 KB | None | 0 0
  1. set background #444
  2.  
  3. set raytracer::light [0,5000,5000]
  4. set raytracer::samples 8
  5. set raytracer::ambient-occlusion-samples 2
  6. set raytracer::phong [0.6,0.6,0.9]
  7.  
  8. { color white } SphereStuct
  9.  
  10. rule SphereStuct w 4 md 30
  11. {
  12.     { rx 4 y 1.625 } dbox
  13.     { rx -4 y -1.625 x 2.25 ry 8 } ubox
  14.     { x 4.5 ry 12 } SphereStuct
  15. }
  16.  
  17. rule dbox w 2 maxdepth 2
  18. {
  19.     { rx -8 y 3.25 x 2.25 ry 8 } dbox
  20.     { rx 8 } hex2
  21. }
  22. rule dbox w 1 maxdepth 2
  23. {
  24.     { rx -8 y 3.25 x 2.25 ry 8 } dbox
  25.     { b 0.5 rx 8 } hex2
  26. }
  27. rule dbox { }
  28.  
  29. rule ubox w 2 maxdepth 2
  30. {
  31.     { rx 8 y -3.25 x 2.25 ry 8 } ubox
  32.     { rx 8 } hex2
  33. }
  34. rule ubox w 1 maxdepth 2
  35. {
  36.     { rx 8 y -3.25 x 2.25 ry 8 } ubox
  37.     { b 0.5 rx 8 } hex2
  38. }
  39. rule ubox { }
  40.  
  41. rule hex2 maxdepth 1 > hex
  42. {
  43.     { z 1 } hex
  44.     { } Panel
  45. }
  46.  
  47. rule hex w 2 maxdepth 6
  48. {
  49.     { z 1 } hex
  50.     { } Panel
  51. }
  52. rule hex w 4 { }
  53.  
  54. rule Panel md 1 w 1
  55. {
  56.     { y 1.0 rz -60 y 1.0  } Panel
  57. }
  58.  
  59. rule Panel md 6 w 16
  60. {
  61.     PanelPart
  62.     { y 1.0 rz -60 y 1.0  } Panel
  63. }
  64.  
  65. rule PanelPart
  66. {
  67.     { rz 90 s 0.2 0.2 0.1 } beamAssembly
  68.     { s 0.1 1.75 1 } box
  69. }
  70.  
  71. // Beam
  72.  
  73. rule beamAssembly w 1
  74. {
  75.     { z -5 } beam
  76.     { z 5 } beam
  77.  
  78.     { s 1 0.2 11 y 12 } box
  79.     { s 1 0.2 11 y -12 } box
  80.  
  81.     { z 0.4 } vertPanel
  82.     { z 5 } vertPanel
  83.     { z -5 } vertPanel
  84. }
  85.  
  86. rule beamAssembly w 6
  87. {
  88. }
  89.  
  90. rule vertPanel
  91. {
  92.     {s 1 4 0.2} box
  93.     {s 1 1 0.5} box
  94. }
  95.  
  96. rule vertPanel md 15 > end
  97. {
  98.     widePane
  99.     { y 1 } vertPanel
  100. }
  101.  
  102. rule end
  103. {
  104. }
  105.  
  106. rule vertPanel
  107. {
  108.     {s 1 1 0.5 } box
  109.     {s 0.2 4 0.2 x 2 } box
  110.     {s 0.2 4 0.2 x -2 } box
  111.     {s 1 0.2 0.2 y 10 } box
  112.     {s 1 0.2 0.2 y -10 } box
  113. }
  114.  
  115. rule beam
  116. {
  117.     { s 0.2 5 0.2 } box
  118. }
  119.  
  120. rule widePane
  121. {
  122.     thinBeam1
  123.     { y 5 } thinBeam1
  124.     { x 4.9 y 2.5 } thinBeamVert
  125.     { x -4.9 y 2.5 } thinBeamVert
  126.     pane
  127. }
  128.  
  129. rule pane
  130. {
  131.     {s 10 5 0.05 y 0.5} box
  132. }
  133.  
  134. rule pane
  135. {
  136.     { s 10 2.5 0.05 y 0.5 } box
  137. }
  138.  
  139. rule thinBeam1
  140. {
  141.     { s 10 0.2 0.2 } box
  142. }
  143.  
  144. rule thinBeamVert
  145. {
  146.     { s 0.2 5 0.2 } box
  147. }
Advertisement
Add Comment
Please, Sign In to add comment