home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 523.VIVID1.V < prev    next >
Text File  |  1992-03-15  |  2KB  |  117 lines

  1.  
  2. //      Vivid logo with Mandelbrot set and spun-chrome sphere
  3.  
  4. #include color.vc
  5.  
  6. studio {
  7.     from -60 -100 35
  8.     at 10 0 5
  9.     up 0 0 1
  10.     angle 16
  11.     res 640 480
  12.     aspect 4/3
  13.     antialias adaptive
  14.     threshold 2
  15.     bkg sky_blue
  16. }
  17.  
  18. light {
  19.     type point
  20.     falloff 0
  21.     position 0 -20 40
  22.     color .6 .6 .6
  23. }
  24. light {
  25.     type point
  26.     falloff 0
  27.     position 35 -10 30
  28.     color .6 .6 .6
  29. }
  30. light {
  31.     type point
  32.     falloff 0
  33.     position 20 10 50
  34.     color .6 .6 .6
  35. }
  36. light {
  37.     type point
  38.     falloff 0
  39.     position -100 -100 10
  40.     color .3 .3 .3
  41. }
  42.  
  43. //      base surface
  44.  
  45. //      Note:   The mandelbrot pattern was put into Vivid almost as a joke.
  46. //              Currently the format for specifying it is terrible.  The
  47. //              first two parameters of the scale value determine the
  48. //              x y scaling of the set while the 3rd parameter determines
  49. //              the maximum number of iterations.  The result of the
  50. //              iteration calculation is then scaled by the max number of
  51. //              iterations to determine the relative percentages of the
  52. //              surface parameters for that point.  Once I figure out a
  53. //              resonable way of doing this Mandelbrot and Julia sets
  54. //              will become a real part of Vivid.
  55.  
  56. surface {
  57.     texture {
  58.         pattern mandelbrot
  59.         scale .05 .05 64
  60.         offset -1 0 0
  61.         surf { diff white amb .3 .3 .3 }
  62.         surf { diff black }
  63.     }
  64. }
  65. ring {
  66.     location 20 0 -0.5
  67.     normal 0 0 1
  68.     radius 4000
  69. }
  70.  
  71.  
  72. //      spun chrome ball
  73.  
  74. surface {
  75.     bump {
  76.         turbulence {
  77.             scale  25 25 .025    // Note the asymmetric scaling
  78.             amp .25
  79.             terms 1
  80.         }
  81.     }
  82.     diff steel_blue
  83.     spec .4 .4 .5
  84.     shine 30
  85. }
  86.  
  87. sphere { center 10 20 10 radius 9 }
  88.  
  89. //      glass sphere
  90.  
  91. surface {
  92.     trans white
  93.     ior 1.3
  94.     shine 100 .7 .7 .7
  95. }
  96. sphere {
  97.     center 15 -20 4.5
  98.     radius 5
  99. }
  100.  
  101. //      cluster of reflecting spheres, somewhat of a gold-tone
  102.  
  103. surf { diff .5 .3 .1 spec .5 .5 .5 shine 400 }
  104. sphere { center 20 16 10 radius 4 }
  105. sphere { center 28 20 12 radius 4 }
  106. sphere { center 32 14  8 radius 4 }
  107. sphere { center 30 10  4 radius 4 }
  108.  
  109. //      surface for Vivid logo
  110.  
  111. surface {
  112.     diff white
  113. }
  114.  
  115. #include vlogo.vo
  116.  
  117.