Orihaus

Coil Structure Script

Jul 9th, 2012
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.01 KB | None | 0 0
  1. set background #222
  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.7,0.7,0.25]
  7.  
  8. #define XSegments 18
  9. #define XRotation -15
  10. #define XHalf 30
  11. #define XMove 2
  12.  
  13. #define Scale 0.97
  14. #define YRotation 2
  15. #define YInital 7
  16. #define YMain 46
  17.  
  18. #define Damage 0
  19.  
  20. { color white ry -90 } Core
  21.  
  22. rule Core
  23. {
  24.     XSegments * { b 0.9 z XMove rx XRotation } PanelSegment
  25. }
  26.  
  27. rule PanelSegment
  28. {
  29.     { rx XHalf } PanelScale1
  30.     { rx XHalf ry 180 x -0.5 } PanelScale1
  31. }
  32.  
  33. rule PanelScale1 md YInital > PanelScale2
  34. {
  35.     { rz YRotation } Panel
  36.     { rz YRotation x 0.5 } PanelScale1
  37. }
  38.  
  39. rule PanelScale2 md YMain w 50
  40. {
  41.     { rz YRotation } Panel
  42.     { rz YRotation x 0.5 s 1 1 Scale } PanelScale2
  43. }
  44.  
  45. rule PanelScale2 w Damage
  46. {
  47. }
  48.  
  49. rule Panel
  50. {
  51.     2 * { x 0.25 } PanelSub1
  52.     3 * { z 2 } PanelSub2
  53. }
  54.  
  55. rule PanelSub1 w 4
  56. {
  57.     { rx 90 s 0.04 4 0.1 } box
  58. }
  59.  
  60. rule PanelSub1 w Damage
  61. {
  62. }
  63.  
  64. rule PanelSub2
  65. {
  66.     { z -4 x 0.4 s 0.5 0.25 0.05 } box
  67. }
Advertisement
Add Comment
Please, Sign In to add comment