home *** CD-ROM | disk | FTP | other *** search
/ Computerspiele Selbermachen / computerspieleselbermachen.iso / pov / fov.inc < prev    next >
Text File  |  1993-05-25  |  702b  |  24 lines

  1. // Persistence of Vision Raytracer 2.0
  2. //
  3. // Direction Vectors for various Field of View angles.
  4. // Use in camera in form :
  5. //
  6. //     direction <0, 0, FoV_45>
  7. //
  8. // The formula used to calculate these is:  FoV = 0.5 / tan(angle/2)
  9. // You will also need to adjust the location vector if you change FoV and
  10. // want to keep the same visual distance from your scene.
  11.  
  12.  #declare FoV_15 = 7.595981
  13.  #declare FoV_30 = 3.732166
  14.  #declare FoV_45 = 2.414293
  15.  #declare FoV_60 = 1.732113
  16.  #declare FoV_75 = 1.303277
  17.  #declare FoV_90 = 1.000046
  18.  #declare FoV_105 = 0.767370
  19.  #declare FoV_120 = 0.577391
  20.  #declare FoV_135 = 0.414254
  21.  #declare FoV_150 = 0.267991
  22.  #declare FoV_165 = 0.131696
  23.  
  24.