home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / INCLUDE / TEXTURES.INC < prev    next >
Text File  |  1999-10-30  |  31KB  |  1,292 lines

  1. #include "finish.inc"
  2.  
  3. #ifdef(View_POV_Include_Stack)
  4. #   debug "including textures.inc\n"
  5. #end
  6.  
  7. #local Textures_Inc_Temp = version;
  8. /*
  9.  
  10.               Persistence of Vision Raytracer Version 3.1
  11.                      Standard textures include file
  12.  
  13.     Contents:
  14.     ===========================
  15.     DMFWood6
  16.     NBglass            (Norm Bowler)
  17.     NBoldglass         (Norm Bowler)
  18.     NBwinebottle       (Norm Bowler)
  19.     NBbeerbottle       (Norm Bowler)
  20.     Ruby_Glass         (after Norm Bowler)
  21.     Dark_Green_Glass   (after Norm Bowler)
  22.     Yellow_Glass       (after Norm Bowler)
  23.     Orange_Glass       (after Norm Bowler)
  24.     Vicks_Bottle_Glass (after Norm Bowler)
  25.     Soft_Silver        (Dan Farmer)
  26.     New_Penny          (Dan Farmer)
  27.     Tinny_Brass        (Dan Farmer)
  28.     Gold_Nugget        (Dan Farmer)
  29.     Aluminum           (Dan Farmer)
  30.     Bright_Bronze      (Dan Farmer)
  31.     Lightening1        (Dan Farmer)
  32.     Lightening2        (Dan Farmer)
  33.     Brushed_Aluminum   (Dan Farmer)
  34.     Starfield          (Jeff Burton )
  35.     Shadow_Clouds      (Bill Pulver)
  36.  
  37. */
  38.  
  39.  
  40. //*****************************************************************************
  41. //                      STONE PIGMENTS
  42. //*****************************************************************************
  43.  
  44. #declare Jade_Map =
  45. color_map {
  46.     [0.0 rgb <0.1, 0.6, 0.1>]
  47.     [0.8 rgb <0.0, 0.3, 0.0>]
  48.     [0.8 rgb <0.1, 0.6, 0.1>]
  49.     [1.0 rgb <0.0, 0.2, 0.0>]
  50. }
  51.  
  52. // Drew Wells' superb Jade.  Color map works nicely with other textures, too.
  53. #declare Jade = 
  54. pigment {
  55.     marble
  56.     turbulence 1.8
  57.     color_map { Jade_Map }
  58. }
  59.  
  60. #declare Red_Marble_Map = 
  61. color_map {
  62.     [0.0 rgb <0.8, 0.8, 0.6>]
  63.     [0.8 rgb <0.8, 0.4, 0.4>]
  64.     [1.0 rgb <0.8, 0.2, 0.2>]
  65. }
  66. // Classic white marble with red veins.  Over-worked, like checkers.
  67. #declare Red_Marble = 
  68. pigment {
  69.     marble
  70.     color_map { Red_Marble_Map }
  71.     turbulence 1
  72. }
  73.  
  74. #declare White_Marble_Map =
  75. color_map {
  76.     [0.0 rgb <0.9, 0.9, 0.9>]
  77.     [0.8 rgb <0.5, 0.5, 0.5>]
  78.     [1.0 rgb <0.2, 0.2, 0.2>]
  79. }
  80.  
  81. // White marble with black veins.
  82. #declare White_Marble = 
  83. pigment {
  84.     marble
  85.     turbulence 1
  86.     color_map { White_Marble_Map }
  87. }
  88.  
  89. // Light blue and black marble with a thin red vein 
  90. // Try changing LBlue and Vein below to modify the marble.
  91. #declare LBlue = rgb <0.0, 0.6, 0.6>;
  92. #declare Vein  = rgb <0.6, 0.0, 0.0>;
  93.  
  94. #declare Blood_Marble_Map =
  95. color_map {
  96.     [0.0 color 0]
  97.     [0.8 color LBlue]
  98.     [0.9 color Vein]
  99.     [1.0 color 0]
  100. }
  101. #declare Blood_Marble = 
  102. pigment {
  103.     marble
  104.     color_map { Blood_Marble_Map }
  105.     turbulence 2.3
  106. }
  107.  
  108. #declare Blue_Agate_Map =
  109. color_map {
  110.     [0.5  rgb <0.30, 0.30, 0.50>]
  111.     [0.55 rgb <0.20, 0.20, 0.30>]
  112.     [0.6  rgb <0.25, 0.25, 0.35>]
  113.     [0.7  rgb <0.15, 0.15, 0.26>]
  114.     [0.8  rgb <0.10, 0.10, 0.20>]
  115.     [0.9  rgb <0.30, 0.30, 0.50>]
  116.     [1.0  rgb <0.10, 0.10, 0.20>]
  117. }
  118.  
  119. // a grey blue agate -- kind of purplish.
  120. #declare Blue_Agate = 
  121. pigment {
  122.     agate
  123.     color_map { Blue_Agate_Map }
  124. }
  125.  
  126. #declare Sapphire_Agate_Map = 
  127. color_map {
  128.     [0.0  rgb <0.0, 0.0, 0.9>]
  129.     [0.3  rgb <0.0, 0.0, 0.8>]
  130.     [1.0  rgb <0.0, 0.0, 0.4>]
  131. }
  132.  
  133.  
  134. // Deep blue agate -- almost glows.
  135. #declare Sapphire_Agate = 
  136. pigment { 
  137.     agate
  138.     color_map { Sapphire_Agate_Map }
  139. }
  140.  
  141. #declare Brown_Agate_Map =
  142. color_map {
  143.     [0.0 rgb 0]
  144.     [0.5 rgb <0.9, 0.7, 0.6>]
  145.     [0.6 rgb <0.9, 0.7, 0.4>]
  146.     [1.0 rgb <0.7, 0.4, 0.2>]
  147. }
  148.  
  149. // Brown and white agate -- very pretty.
  150. #declare Brown_Agate = 
  151. pigment {
  152.     agate
  153.     color_map { Brown_Agate_Map }
  154. }
  155.  
  156. #declare Pink_Granite_Map =
  157. color_map {
  158.     [0.4  rgb 0]
  159.     [0.4  rgb <0.85, 0.85, 0.95>]
  160.     [0.45 rgb <0.85, 0.85, 0.95>]
  161.     [0.5  rgb <0.75, 0.75, 0.75>]
  162.     [0.55 rgb <0.82, 0.57, 0.46>]
  163.     [0.8  rgb <0.82, 0.57, 0.46>]
  164.     [1.0  rgb <1.00, 0.50, 0.00>]
  165. }
  166.  
  167. #declare Pink_Granite =  
  168. pigment {
  169.     granite
  170.     color_map { Pink_Granite_Map }
  171. }
  172.  
  173. //*****************************************************************************
  174. //                      STONE TEXTURES
  175. //*****************************************************************************
  176.  
  177. // Gray-pink alabaster or marble.  Layers are scaled for a unit object
  178. // and relative to each other.
  179. // NOTE: This texture has very tiny dark blue specks that are often
  180. //       mistaken for rendering errors.  They are not errors.  Just a
  181. //       strange texture design.
  182. #declare PinkAlabaster =
  183. // Underlying surface is very subtly mottled with bozo
  184. texture {
  185.     pigment {
  186.         bozo
  187.         turbulence 0.25
  188.         color_map {
  189.             [0 rgb <0.9, 0.75, 0.75>]
  190.             [1 rgb <0.6, 0.6,  0.6 >]
  191.         }
  192.     scale 0.4
  193.     }
  194.     finish{ ambient 0.25 }
  195. }
  196.  
  197. // Second layer texture has some filter values, yet a fair amount of color
  198. // Viening is kept quite thin in color map and by the largish scale.
  199. texture {
  200.     pigment {
  201.         granite
  202.         color_map {
  203.             [0.0 rgbf <0.52, 0.39, 0.39, 1.0>]
  204.             [0.9 rgbf <0.52, 0.39, 0.39, 0.5>]
  205.             [0.9 rgbf <0.42, 0.14, 0.55, 0.0>]
  206.         }
  207.     scale 2  
  208.     }
  209.     finish {
  210.         specular 1   
  211.         roughness 0.0001
  212.         phong 0.25
  213.         phong_size 75
  214.         brilliance 4
  215.     }
  216. }
  217.  
  218.  
  219. //*****************************************************************************
  220. //                           SKY PIGMENTS
  221. //*****************************************************************************
  222. #declare Blue_Sky_Map =
  223. color_map {
  224.     [0.5 rgb <0.25, 0.25, 0.5>]
  225.     [0.6 rgb 0.7]
  226.     [1.0 rgb 0.3]
  227. }
  228.  
  229. // Basic Blue Sky w/ clouds.
  230. #declare Blue_Sky = 
  231. pigment {
  232.     bozo
  233.     color_map { Blue_Sky_Map }
  234.     turbulence 0.3
  235. }
  236.  
  237. // Bright Blue Sky w/ very white clouds.
  238. #declare Bright_Blue_Sky = 
  239. pigment {
  240.     bozo
  241.     turbulence 0.56
  242.     color_map {
  243.         [0.5 rgb <0.5, 0.5, 1.0>]
  244.         [0.6 rgb 1.0]
  245.         [1.0 rgb 0.5]
  246.     }
  247. }
  248.  
  249. // Another sky
  250. #declare Blue_Sky2 =
  251. pigment {
  252.     agate
  253.     color_map {
  254.         [0.3 rgb <0, 0, 1>]
  255.         [1.0 rgb 1]
  256.     }
  257.     scale .75
  258. }
  259.  
  260. // Small puffs of white clouds
  261. #declare Blue_Sky3 = 
  262. pigment {
  263.     granite
  264.     turbulence 0.1
  265.     color_map {
  266.         [0.3 rgb <0, 0, 1>]
  267.         [1.0 rgb 1]
  268.     }
  269.     scale .75
  270. }
  271.  
  272. // Red sky w/ yellow clouds -- very surreal.
  273. #declare Blood_Sky = 
  274. pigment {
  275.     bozo
  276.     turbulence 0.5
  277.     color_map {
  278.         [0.0 rgb <0.9, 0.700, 0.0>]
  279.         [0.5 rgb <0.3, 0.200, 0.0>]
  280.         [0.5 rgb <0.6, 0.025, 0.0>]
  281.         [0.6 rgb <0.9, 0.700, 0.0>]
  282.         [0.6 rgb <0.6, 0.025, 0.0>]
  283.     }
  284. }
  285.  
  286. // Black sky with red and purple clouds 
  287. // Try adding turbulence values from 0.1 - 5.0 -- CdW
  288. #declare Apocalypse = 
  289. pigment {
  290.     bozo
  291.     color_map {
  292.         [0.0 rgb <0.8, 0.0, 0.0>]
  293.         [0.4 rgb <0.4, 0.0, 0.4>]
  294.         [0.6 rgb <0.0, 0.0, 0.2>]
  295.         [1.0 rgb 0.0]
  296.     }
  297. }
  298.  
  299. // White clouds w/ transparent sky.
  300. #declare Clouds = 
  301. pigment {
  302.     bozo
  303.     color_map {
  304.         [0.1 rgbf <0.8, 0.8, 0.8, 0.0>]
  305.         [0.5 rgbf <1.0, 1.0, 1.0, 1.0>] 
  306.     }
  307. }
  308.  
  309. #declare FBM_Clouds =
  310. pigment {
  311.     bozo
  312.     turbulence 0.65
  313.     octaves 6
  314.     omega 0.7
  315.     lambda 2
  316.     color_map { 
  317.         [0.0 rgb 0.85]
  318.         [0.1 rgb 0.75] 
  319.         [0.5 rgb 0.75] 
  320.         [0.5 rgbf <1,1,1,1>]
  321.     } 
  322. scale <6, 1, 6>
  323. }
  324.  
  325. #declare Shadow_Clouds =
  326. texture {                          // The blue sky background for the clouds 
  327.     pigment { rgb <0.196078, 0.6, 0.8> }
  328.     finish { ambient 0.7 diffuse 0 }
  329. }
  330. texture {                          // The upper part of the clouds
  331.     pigment { FBM_Clouds }
  332.     finish { ambient 1.0 diffuse 0 }
  333. }
  334. texture {                          // The darker underside of the clouds
  335.     pigment { FBM_Clouds  translate -0.15*y }
  336.     finish { ambient 0.6 diffuse 0 }
  337. }
  338.  
  339.  
  340.  
  341. //*****************************************************************************
  342. //                           WOODEN PIGMENTS
  343. //*****************************************************************************
  344.  
  345. // Several wooden pigments by Tom Price:
  346. //