home *** CD-ROM | disk | FTP | other *** search
/ Chip: Paintnig & Drawing / Chip-Special-Malovani.bin / anims / screw1.txt < prev   
Text File  |  1994-03-21  |  680b  |  38 lines

  1. start_frame 0
  2. end_frame 35
  3. define t frame / end_frame
  4.  
  5. viewpoint {
  6.    from <0,-5,-20>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 45
  10.    max_trace_depth 20
  11.    resolution 256, 256
  12.    }
  13. light orange, <-10, 30, -20>
  14. light turquoise, < 10,-30, -20>
  15.  
  16. define pi 3.14159265358979
  17.  
  18. define phase_offset 2*pi*t
  19.  
  20. define screw_x u * cos(v)
  21. define screw_y v * cos(u+phase_offset)
  22. define screw_z u * sin(v)
  23. background 0.05*green
  24. object {
  25.    parametric <screw_x, screw_y, screw_z>
  26.    uv_bounds -2*pi, 2*pi, -pi, 2*pi
  27.    uv_steps 64, 64
  28.    texture {
  29.       surface {
  30.      color white
  31.      ambient 0.02
  32.      diffuse 0.3
  33.      transmission 0.7, 1
  34.      }
  35.       }
  36.    shading_flags 4
  37.    }
  38.