Orihaus

Hexagon Snake Structure Synth Script

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