home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / CLOCKMOD.ZIP / COMBINE.POV < prev    next >
Encoding:
Text File  |  1997-06-24  |  1.4 KB  |  52 lines

  1. // CLOCK MODIFIER: CLOCK COMBINATION EXAMPLE
  2. // *****************************************
  3. // This scene shows the result of using the clock_combine
  4. // option.
  5.  
  6. // CAMERA AND LIGHTS
  7.    camera {location <0, 0, -10> look_at <0, 0, 0> angle 30}
  8.    light_source {<10, 10, -100> rgb 1}
  9.  
  10. // PREVIEW OPTIONS
  11.    #declare graph_only = true
  12.    #declare graph_smoothness = 50
  13.    #declare graph_thickness = .03
  14.    #declare graph_continuous = true
  15.  
  16. // PLUS AND EQUALS SIGNS
  17.    #declare Plus = union {
  18.       box {<-1, -3, 0>, <1, 3, 1>}
  19.       box {<-3, -1, 0>, <3, 1, 1>}
  20.       pigment {rgb <.6, .6, .6>}}
  21.  
  22.    #declare Equals = union {
  23.       box {<-3, 1, 0>, <3, 3, 1>}
  24.       box {<-3, -3, 0>, <3, -1, 1>}
  25.       pigment {rgb <.6, .6, .6>}}
  26.  
  27. // BASE CLOCK (Repeated Wave)
  28.    object {
  29.       #declare clock_type = "W"
  30.       #declare clock_repeat = 4
  31.       #include "ClockP.inc"
  32.       translate <-2.5, -.5, 0>}
  33.  
  34.    object {Plus scale .08 translate <-1, 0, 0>}
  35.  
  36. // COMBINE_CLOCK (Accelerate)
  37.    object {
  38.       #declare clock_type = "A"
  39.       #declare clock_repeat = 1
  40.       #include "ClockP.inc"
  41.       translate <-.5, -.5, 0>}
  42.  
  43.    object {Equals scale .08 translate <1, 0, 0>}
  44.  
  45. // RESULTING CLOCK
  46.    object {
  47.       #declare clock_type = "W"
  48.       #declare clock_repeat = 4
  49.       #declare clock_combine = "A"
  50.       #include "ClockP.inc"
  51.       translate <1.5, -.5, 0>}
  52.