5. Appendix B

To model complex surfaces like water with waves, sometimes it is better to use a simple object like a box with suitable textures like bump and blotch to produce the scale and kind of detail wanted. Using this scene

    eye 8 5 2
    fov 18
    light point 0 6 0
    light directional -1 -1 1
    group ; floor
      surface matte mono 0.9
      checkers surface matte mono 0.1 scale 0.5
      box 10 0.1 0 7 0.11 17
      box -10 0.1 0 7 0.11 17
      box 0 0.1 10 3 0.11 7
      box 0 0.1 -10 3 0.11 7
    ungroup
    group ; pool
      surface matte 0.7 0.7 1
      box 3 -1 0 0.1 1 3
      box -3 -1 0 0.1 1 3
      box 0 -1 3 3 1 0.1
      box 0 -1 -3 3 1 0.1
      box 0 -2 0 3 0.1 3
    ungroup
    box ; water
      surface 0.5 0.5 1 mono 0.2 mono 0.1 100 0 mono 0.7
      bump 0.8 scale 0.2
      ripples 1 0 0.7
      ripples 1.5 0 0.8 translate 3 0 3
      blotch 0.5 surface 0.7 0.7 1 mono 0.5 mono 0.1 100 0 mono 0.4
      refraction 1.05
      data 0 -1.1 0 3.01 0.9 3.01
    surface matte red
    cylinder 0 1 0 0 -1 0 0.5

The following image was produced:


To Table of Contents
Back To 4. Appendix A