home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / kidstuf1 / kidstuf1.pov < prev    next >
Encoding:
Text File  |  1994-04-07  |  5.1 KB  |  102 lines

  1. // Persistence of Vision RayTracer version 2.2 Scene description file
  2. // File: KIDSTUF1.POV
  3. // Description: A Lego¿ model I used to play with when I was a kid...
  4. // Date: 03/21/94
  5. // Author: Anton Raves
  6. //
  7.  
  8. #include "lego.inc"
  9. #include "base_1.inc"
  10. #include "world1.inc"
  11.  
  12. camera {
  13.   location  <-62.5, 75, -250>
  14.   direction 2*z
  15.   up        y
  16.   right     4/3*x
  17.   look_at   <0, 30, 0>
  18. }
  19.  
  20. object { light_source { <60, 200, -150> color red 1 green 1 blue 1 } }
  21. object { light_source { <60, 200, 150> color red 1 green 1 blue 1 } }
  22.  
  23. #declare Rotor =
  24. object {
  25.   union {
  26.     object { Rotor_piece texture { Grey_tex } }
  27.     object { FFBlock1_8 translate <8, 10, 0> texture { Grey_tex } }
  28.     object { FFBlock1_8 translate <-64, 10, 0> texture { Grey_tex } }
  29.   }
  30.   bounded_by { box { <-69, -1, -21> <69, 14, 21> } }
  31. }
  32.  
  33. #declare Heli =
  34. object {
  35.   union {
  36.     object { F_Block1_6 texture { Black_tex } }
  37.     object { F_Block1_6 translate <0, 0, 40> texture { Black_tex } }
  38.     object { Bar1_6 rotate 90*y translate <8, 3, 40> texture { Yellow_tex } }
  39.     object { Bar1_6 rotate 90*y translate <24, 3, 40> texture { Yellow_tex } }
  40.     object { F_Block1_3 translate <8, 12, 8> texture { Red_tex } }
  41.     object { F_Block1_3 translate <8, 12, 32> texture { Red_tex } }
  42.     object { F_Block2_4 translate <0, 12, 16> texture { Red_tex } }
  43.  
  44. // If you want to use the stick at another angle, then first rotate the following object around its
  45. // z-axis and then move it to its position on the joy base ! ( Which is <x, y+5, z> )
  46.     object { Joy_stick rotate -30*z translate <0, 20, 16> texture { Black_tex } }
  47.     object { Joy_base translate <0, 15, 16> texture { Yellow_tex } }
  48.     object { Joy_stick rotate -30*z translate <0, 20, 24> texture { Black_tex } }
  49.     object { Joy_base translate <0, 15, 24> texture { Yellow_tex } }
  50.     object { I_Slope2_2 translate <24, 15, 16> texture { Black_tex } }
  51.     object { Slope1_3 translate <8, 15, 32> texture { Black_tex } }
  52.     object { Slope1_3 translate <8, 15, 8> texture { Black_tex } }
  53.     object { H_Block1_4 rotate -90*y translate <24, 24, 8> texture { Black_tex } }
  54.     object { I_Slope2_3 translate <32, 24, 16> texture { Black_tex } }
  55.     object { FSBlock1_2 rotate -90*y translate <40, 33, 16> texture { Yellow_tex } }
  56.     object { FSBlock1_2 rotate -90*y translate <48, 33, 16> texture { Yellow_tex } }
  57.     object { F_Block1_4 rotate -90*y translate <24, 36, 8> texture { Red_tex } }
  58.     object { F_Block1_8 translate <56, 33, 20> texture { Yellow_tex } }
  59.     object { F_Block1_8 translate <40, 36, 20> texture { Red_tex } }
  60.     object { Thing1_2 rotate -90*y translate <32, 36, 16> texture { Black_tex } }
  61.     object { Thing2_2 translate <24, 39, 16> texture { Black_tex } }
  62.     object { Slope1_3 translate <96, 39, 20> texture { Black_tex } }
  63.     object { FFBlock1_1 translate <112, 48, 20> texture { T_Red_tex } }
  64.     object { H_Block1_1 translate <24, 39, 8> texture { Black_tex } }
  65.     object { H_Block1_1 translate <24, 39, 32> texture { Black_tex } }
  66.     object { Thing1_4 rotate -90*y translate <24, 48, 8> texture { Black_tex } }
  67.     object { Window_shield translate <18, 49.5, 8> texture { T_Cyan_tex } }
  68.     object { Slope2_2 rotate 180*y translate <40, 42, 24> texture { Black_tex } }
  69.     object { FFBlock1_1 translate <24, 51, 8> texture { T_Red_tex } }
  70.     object { FFBlock1_1 translate <24, 51, 32> texture { T_Green_tex } }
  71.     object { F_Block1_2 rotate -90*y translate <24, 42, 16> texture { Black_tex } }
  72.     object { F_Block1_2 rotate -90*y translate <24, 45, 16> texture { Black_tex } }
  73.     object { F_Triangle2_2 translate <24, 33, 8> texture { Yellow_tex } }
  74.     object { F_Triangle2_2 rotate -90*y translate <32, 33, 24> texture { Yellow_tex } }
  75.     object { S_Propellor2_2 translate <104, 36, 20> texture { Red_tex } }
  76.  
  77. // If you want to use this little helicopter inside an animation, and you want its rotors
  78. // to move, then first rotate the following object around its z-axis and then move it to
  79. // its position on the propellor base! ( Which is <x+4, y+1, z+14> )
  80.     object { S_Propellor rotate -5*z translate <108, 37, 34> texture { Black_tex } }
  81.     object { L_Propellor2_2 translate <24, 51, 16> texture { Black_tex } }
  82.  
  83. // Rotate the main rotor object group before placing at its base at <x+4, y, z+4>
  84.     object { Rotor rotate 20*y translate <28, 51, 20> }
  85.     object { Swiveltop1_2 translate <0, 13, 16> texture { Black_tex } }
  86.  
  87. // Glue to the swivel base that what is needed and then rotate and move it to <x, y-5, z>
  88.     union {
  89.       object { Swivelbase1_2 texture { Black_tex } }
  90.       object { FRBlock1_1 translate <0, -9, 0> texture { T_Yellow_tex } }
  91.       object { FRBlock1_1 translate <0, -9, 8> texture { T_Yellow_tex } }
  92.       rotate -45*z translate <0, 8, 16>
  93.     }
  94.   }
  95.   bounded_by { box { <-45, -1, -5 > <117, 63, 45> } } // Note that this bounding doesn't allow for
  96.                                                       // rotating the main rotor, it's not wide
  97.                                                       // enough on the z-axis !
  98. }
  99.  
  100. object { Heli rotate -20*y translate <-20, 1, 20> }
  101. object { Base_plate_1 translate <-120, 0, -30> }
  102.