home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 9 / FreelogHS09.iso / Pov / Dos / povmsdos.exe / POVMSDOS.ZIP / INCLUDE / CONSTS.INC < prev    next >
Text File  |  1998-01-21  |  2KB  |  83 lines

  1. #ifdef(Consts_Inc_Temp)
  2. // do nothing
  3. #else
  4. #declare Consts_Inc_Temp = version;
  5.  
  6. #ifdef(View_POV_Include_Stack)
  7. #   debug "including consts.inc\n"
  8. #end
  9.  
  10. /*
  11.               Persistence of Vision Raytracer Version 3.1
  12.                  Various constants and alias definitions
  13. */
  14.  
  15. // MAP_TYPE CONSTANTS
  16. #declare Plane_Map    = 0;
  17. #declare Sphere_Map   = 1;
  18. #declare Cylinder_Map = 2;
  19. #declare Torus_Map    = 5;
  20.  
  21. // INTERPOLATION TYPE CONSTANTS
  22. #declare Bi           = 2;
  23. #declare Norm         = 4;
  24.  
  25. // FOG TYPE CONSTANTS
  26. #declare Uniform_Fog = 1;
  27. #declare Ground_Fog  = 2;
  28.  
  29. // FOCAL BLUR HEXGRID CONSTANTS
  30. #declare Hex_Blur1    = 7;
  31. #declare Hex_Blur2    = 19;
  32. #declare Hex_Blur3    = 37;
  33.  
  34. // INDEX OF REFRACTION CONSTANTS
  35. // Defines a few Index of Refractions for various materials for sodium light.
  36. // Source: College Physics by Arthur L. Kimball, PhD. 4th Edition (1923)
  37. // ---------------------------
  38. #declare Flint_Glass_Ior = 1.71;
  39. #declare Crown_Glass_Ior = 1.51;
  40. #declare Diamond_Ior     = 2.47;
  41. #declare Water_Ior       = 1.33;
  42. #declare Air_Ior         = 1.000292;
  43.  
  44. // POV-Ray 3.1 NOTE: These are included for backwards compatibility only.
  45. // Use the camera "angle" parameter for version 3.0 and above.
  46. //
  47. // Direction Vectors for various Field of View angles.
  48. // The formula used to calculate these is:  FoV = 0.5 / tan(angle/2)
  49. // Based on the height, (the UP vector), not width or diagonal.
  50. // Useage:  direction <0, 0, FoV_45>
  51. // (You will also need to adjust the location vector if you change FoV and
  52. // want to keep the same visual distance from your scene.)
  53. #declare FoV_15  = 7.595981;
  54. #declare FoV_30  = 3.732166;
  55. #declare FoV_45  = 2.414293;
  56. #declare FoV_60  = 1.732113;
  57. #declare FoV_75  = 1.303277;
  58. #declare FoV_90  = 1.000046;
  59. #declare FoV_105 = 0.767370;
  60. #declare FoV_120 = 0.577391;
  61. #declare FoV_135 = 0.414254;
  62. #declare FoV_150 = 0.267991;
  63. #declare FoV_165 = 0.131696;
  64.  
  65. // ATMOSPHERE TYPES
  66. #declare ISOTROPIC_SCATTERING         = 1;
  67. #declare MIE_HAZY_SCATTERING          = 2;
  68. #declare MIE_MURKY_SCATTERING         = 3;
  69. #declare RAYLEIGH_SCATTERING          = 4;
  70. #declare HENYEY_GREENSTEIN_SCATTERING = 5;
  71.  
  72. // BASIC RADIOSITY MODES
  73. // These are used in the "rad_def.inc" file.
  74. #declare Radiosity_Debug   = 1;
  75. #declare Radiosity_Fast    = 2;
  76. #declare Radiosity_Normal  = 3;
  77. #declare Radiosity_2Bounce = 4;
  78. #declare Radiosity_Final   = 5;
  79.  
  80.  
  81. #version Consts_Inc_Temp;
  82. #end
  83.