home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 497.CLIP4.V < prev    next >
Text File  |  1992-03-14  |  1KB  |  66 lines

  1.  
  2. //      clip.v -- test out new clipping planes with transforms
  3.  
  4. #include color.vc
  5.  
  6. studio {
  7.     from 1 -6 4
  8.     at 0 0 0
  9.     up 0 0 1
  10.     angle 35
  11.     res 640 480
  12.     antialias adaptive
  13.     aspect 4/3
  14.     background {
  15.         greys.map
  16.     }
  17.     ambient white * .2
  18. }
  19.  
  20. light {
  21.     type point
  22.     falloff 0
  23.     position 1 -.5 5
  24.     color white * .5
  25. }
  26. light {
  27.     type point
  28.     falloff 0
  29.     position -2 -4 5
  30.     color white * .5
  31. }
  32.  
  33. //      base surface
  34.  
  35. surface {
  36.     diff plum * .5          // dark plum
  37. }
  38. ring { center 0 0 0 normal 0 0 1 radius 1000 }
  39.  
  40. //      clip spheres
  41.  
  42. surf {
  43.     diff 0 .5 1
  44.     shine 20 white
  45. }
  46.  
  47. transform { rotate 0 0 0 translate -2 0 .5 }
  48. #include clips.vo
  49. transform_pop
  50.  
  51. transform { rotate 72 0 0 translate -1 0 .5 }
  52. #include clips.vo
  53. transform_pop
  54.  
  55. transform { rotate 144 0 0 translate 0 0 .5 }
  56. #include clips.vo
  57. transform_pop
  58.  
  59. transform { rotate 216 0 0 translate 1 0 .5 }
  60. #include clips.vo
  61. transform_pop
  62.  
  63. transform { rotate 288 0 0 translate 2 0 .5 }
  64. #include clips.vo
  65. transform_pop
  66.