home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / polyray / dat / texture / splash1.pi < prev    next >
Text File  |  1994-12-31  |  2KB  |  87 lines

  1. // Generic Polyray input File
  2. // Polyray input file: Alexander Enzmann
  3.  
  4. // Set up the camera
  5. viewpoint {
  6.    from <0,2,-6>
  7.    at <0,0,0>
  8.    up <0,1,0>
  9.    angle 20
  10.    resolution 160, 160
  11.    }
  12.  
  13. background midnight_blue
  14. light <-10, 8, -10>
  15. light < 10, 8, -10>
  16.  
  17. include "../colors.inc"
  18.  
  19. define dens1 0.6
  20. define dens2 (dens1 + 1) / 2
  21. define splash1_layer1_map color_map(
  22.    [0, dens1, black, 1, black, 1]
  23.    [dens1, dens2, red/3, 0.5, red, 0]
  24.    [dens2, 1, red, red])
  25. define splash1_layer2_map color_map(
  26.    [0, dens1, black, 1, black, 1]
  27.    [dens1, dens2, blue/3, 0.5, blue, 0]
  28.    [dens2, 1, blue, blue])
  29. define splash1_layer3_map color_map(
  30.    [0, dens1, black, 1, black, 1]
  31.    [dens1, dens2, green/3, 0.5, green, 0]
  32.    [dens2, 1, green, green])
  33. define splash1_layer4_map color_map(
  34.    [0, dens1, black, 1, black, 1]
  35.    [dens1, dens2, yellow/3, 0.5, yellow, 0]
  36.    [dens2, 1, yellow, yellow])
  37.  
  38. define noisy_x3 x + 5 * dnoise(4*P)[0]
  39. define noisy_y3 y + 5 * dnoise(4*P)[1]
  40. define noisy_z3 y + 5 * dnoise(4*P)[2]
  41. define noisy_x4 noisy_x3 - floor(noisy_x3)
  42. define noisy_y4 noisy_y3 - floor(noisy_y3)
  43. define noisy_z4 noisy_z3 - floor(noisy_z3)
  44. define noisy_checker3_fn fmod((noisy_x4+noisy_y4+noisy_z4)/3, 1)
  45.  
  46. define splash1_layer1
  47. texture { special shiny { color splash1_layer1_map[noisy_checker3_fn] } }
  48.  
  49. define splash1_layer2
  50. texture {
  51.    special shiny { color splash1_layer2_map[noisy_checker3_fn] }
  52.    scale <0.75, 1.7, 0.9>
  53.    rotate <60,-30, 0>
  54.    }
  55.  
  56. define splash1_layer3
  57. texture {
  58.    special shiny { color splash1_layer3_map[noisy_checker3_fn] }
  59.    scale <1.5, 0.7, 1.2>
  60.    rotate <0, 30, 20>
  61.    }
  62.  
  63. define splash1_layer4
  64. texture {
  65.    special shiny { color splash1_layer4_map[noisy_checker3_fn] }
  66.    scale <1.5, 0.7, 1.2>
  67.    rotate <10,-80, 0>
  68.    }
  69.  
  70. define milky_white
  71. texture { shiny {
  72.    color white
  73.    ambient 0.2
  74.    diffuse 0.1
  75.    transmission white, 0.4, 1.0
  76.    specular white, 0.1
  77.    microfacet Cook 5
  78.    } }
  79.  
  80. define splash1
  81. texture {
  82.    layered splash1_layer1, splash1_layer2, splash1_layer3,
  83.        splash1_layer4, matte_white
  84.    }
  85.  
  86. object { sphere <0, 0, 0>, 1 splash1 }
  87.