home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 0 / axisbox.inc next >
Text File  |  1992-07-21  |  3KB  |  106 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Include file for steiner.pov, grafbic.pov
  4. // by Alexander Enzmann
  5.  
  6. // Declare the sizes of cylinders that represent coordinate axes 
  7. #declare Axes_X_Radii = <1.0  0.01 0.01>
  8. #declare Axes_Y_Radii = <0.01 1.0  0.01>
  9. #declare Axes_Z_Radii = <0.01 0.01 1.0>
  10.  
  11. // Define the colors of the coordinate axes 
  12. #declare X_Axis_Color = color green 1 blue 1
  13. #declare Y_Axis_Color = color red 1 green 1
  14. #declare Z_Axis_Color = color red 1 blue 1
  15.  
  16. // Define the ways that the coordinate axes can be translated 
  17. #declare Translate_X_Axis_Up       = < 0.0  1.0  0.0>
  18. #declare Translate_X_Axis_Down     = < 0.0 -1.0  0.0>
  19. #declare Translate_X_Axis_Forward  = < 0.0  0.0  1.0>
  20. #declare Translate_X_Axis_Back     = < 0.0  0.0 -1.0>
  21. #declare Translate_Y_Axis_Left     = < 1.0  0.0  0.0>
  22. #declare Translate_Y_Axis_Right    = <-1.0  0.0  0.0>
  23. #declare Translate_Y_Axis_Forward  = < 0.0  0.0  1.0>
  24. #declare Translate_Y_Axis_Back     = < 0.0  0.0 -1.0>
  25. #declare Translate_Z_Axis_Up       = < 0.0  1.0  0.0>
  26. #declare Translate_Z_Axis_Down     = < 0.0 -1.0  0.0>
  27. #declare Translate_Z_Axis_Left     = < 1.0  0.0  0.0>
  28. #declare Translate_Z_Axis_Right    = <-1.0  0.0  0.0>
  29.  
  30. // Define coordinate axes 
  31. #declare Axes =
  32. composite {
  33.    object {
  34.       quadric { Cylinder_X
  35.          scale Axes_X_Radii
  36.          texture { color X_Axis_Color }
  37.       }
  38.    }
  39.    object {
  40.       quadric { Cylinder_Y
  41.          scale Axes_Y_Radii
  42.          texture { color Y_Axis_Color }
  43.       }
  44.    }
  45.    object {
  46.       quadric { Cylinder_Z
  47.          scale Axes_Z_Radii
  48.          texture { color Z_Axis_Color }
  49.       }
  50.    }
  51. }
  52.  
  53. // Translate the axis up, down, right, ...,  to form the three
  54. // planes that divide the standard octants. 
  55. #declare Axis_Box =
  56. composite {
  57.    object {
  58.       quadric { Cylinder_X
  59.          scale Axes_X_Radii
  60.          translate Translate_X_Axis_Up
  61.          texture { color X_Axis_Color }
  62.       }
  63.    }
  64.  
  65.    object {
  66.       quadric { Cylinder_X
  67.          scale Axes_X_Radii
  68.          translate Translate_X_Axis_Down
  69.          texture { color X_Axis_Color }
  70.       }
  71.    }
  72.  
  73.    object {
  74.       quadric { Cylinder_Y
  75.          scale Axes_Y_Radii
  76.          translate Translate_Y_Axis_Forward
  77.          texture { color Y_Axis_Color }
  78.       }
  79.    }
  80.  
  81.    object {
  82.       quadric { Cylinder_Y
  83.          scale Axes_Y_Radii
  84.          translate Translate_Y_Axis_Back
  85.          texture { color Y_Axis_Color }
  86.       }
  87.    }
  88.  
  89.    object {
  90.       quadric { Cylinder_Z
  91.          scale Axes_Z_Radii
  92.          translate Translate_Z_Axis_Left
  93.          texture { color Z_Axis_Color }
  94.       }
  95.    }
  96.  
  97.    object {
  98.       quadric { Cylinder_Z
  99.          scale Axes_Z_Radii
  100.          translate Translate_Z_Axis_Right
  101.          texture { color Z_Axis_Color }
  102.       }
  103.    }
  104. }
  105.  
  106.