home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / INCLUDE / WOODS.INC < prev   
Text File  |  1999-10-30  |  19KB  |  732 lines

  1. #ifdef(Woods_Inc_Temp)
  2. // do nothing
  3. #else
  4. #declare Woods_Inc_Temp=version;
  5.  
  6. #ifdef(View_POV_Include_Stack)
  7. #   debug "including woods.inc\n"
  8. #end
  9.  
  10. #include "woodmaps.inc"
  11.  
  12. /*
  13.  
  14.               Persistence of Vision Raytracer Version 3.1
  15.                          Basic wooden textures
  16.  
  17.   Credits:
  18.   Textures T_Wood1 through T_Wood30 by Dan Farmer
  19.  
  20.   Textures T_Wood31 through T_Wood35 contributed by
  21.   Paul Novak, 75274.1613@compuserve.com
  22.  
  23.   Notes on layered textures T_Wood1 through T_Wood30:
  24.  
  25.   The pigment definitions:
  26.   ========================
  27.   Declares pigments P_Woodgrain1A through P_Woodgrain19A and
  28.   P_Woodgrain1B through P_Woodgrain19B.  The only difference between the
  29.   "A" designations and the "B" designations is in design.  The "A"'s
  30.   were designed to generally work better as underlying patterns, using
  31.   opaque color_maps,  while the "B" pigments were designed to work
  32.   better as top layers, with some degree of transparency in their
  33.   color_maps.
  34.  
  35.   The pigments with the "A" and "B" designations are combinations that
  36.   were designed to work well together, but do not neccessarily have to
  37.   be used as pairs.
  38.  
  39.   These pigment definitions do not have colormaps assigned so
  40.   that they can mix 'n matched in various combinations by the user when
  41.   designing their own colors.  In this file, the color_maps are added at
  42.   the point of defining the final textures.
  43.  
  44.  
  45.   The color_map definitions:
  46.   ==========================
  47.   These are declared in the #include file "woodmaps.inc".  They are
  48.   named M_Wood1A through M_Wood19A and M_Wood1B through M_Wood19B.
  49.  
  50.   There are two types of declarations in woodmaps.inc. The "A" color_maps
  51.   are intended as the 1st layer of multi-layer textures, but many work
  52.   well by themselves, as well.
  53.  
  54.   The "B" color_maps contain transparent colors and are intended for
  55.   use as top layers to influence the "A" maps.
  56.  
  57.  
  58.   The wood textures
  59.   =================
  60.   Here the various P_WoodGrainx textures are combined with color_maps to
  61.   create textures named T_Wood1 through T_Wood30.
  62.  
  63.  
  64.   General
  65.   =======
  66.   Wood textures are designed with the major axis of the woodgrain
  67.   "cylinder" aligned along the Z axis.  With the exception of the few
  68.   of the textures below that have a small amount of x-axis rotation
  69.   built-in, the textures below will exhibit a very straight grain
  70.   pattern unless you apply a small amount of x-axis rotation to them
  71.   (generally 2 to 4 degrees seems to work well).
  72.  
  73. */
  74.  
  75.  
  76.  
  77. #declare P_WoodGrain1A =
  78. pigment {
  79.     wood
  80.     turbulence 0.04
  81.     octaves 3
  82.     scale <0.05, .05, 1>
  83. }
  84.  
  85. #declare P_WoodGrain1B =
  86. pigment {
  87.     wood
  88.     turbulence <0.1, 0.5, 1>
  89.     octaves 5
  90.     lambda 3.25
  91.     scale <0.15, .5, 1>
  92.     rotate <5, 10, 5>
  93.     translate -x*2
  94. }
  95.  
  96. #declare P_WoodGrain2A =
  97. pigment {
  98.     wood
  99.     turbulence 0.04
  100.     octaves 3
  101.     scale <0.15, .15, 1>
  102. }
  103.  
  104. #declare P_WoodGrain2B =
  105. pigment {
  106.     wood  
  107.     turbulence <0.1, 0.35, 0.1>
  108.     octaves 5
  109.     lambda 3.25
  110.     scale <0.25, .25, 1>
  111.     rotate <5, 10, 5>
  112.     translate -x*2
  113. }
  114.  
  115. #declare P_WoodGrain3A = 
  116. pigment {
  117.     wood  
  118.     turbulence 0.04
  119.     octaves 3
  120.     scale <0.05, .05, 1>
  121.     rotate <2,2,0>
  122. }
  123.  
  124. #declare P_WoodGrain3B =
  125. pigment {
  126.     wood  
  127.     turbulence <0.1, 0.5, 1> 
  128.     octaves 5
  129.     lambda 3.25
  130.     scale <0.15, .5, 1>
  131.     rotate <5, 10, 5>
  132.     translate -x*2
  133. }
  134.  
  135. #declare P_WoodGrain4A = 
  136. pigment {
  137.     wood
  138.     turbulence 0.04
  139.     octaves 4
  140.     omega 1.25
  141.     scale <0.15, .15, 1>
  142. }
  143.  
  144. #declare P_WoodGrain4B =
  145. pigment {
  146.     bozo
  147.     turbulence <0.03, 0.03, 0.1>
  148.     octaves 5
  149.     lambda 3.25
  150.     scale <0.025, .025, 1.0>
  151. }
  152. #declare P_WoodGrain5A =
  153. pigment {
  154.     wood  
  155.     turbulence <0.04, 0.04, 0.1>
  156.     octaves 4
  157.     omega 1.25
  158.     scale <0.15, .15, 1>
  159. }
  160.  
  161. #declare P_WoodGrain5B =
  162. pigment {
  163.     wood  
  164.     turbulence <0.025, 0.025, 0.1>
  165.     octaves 4
  166.     omega 1.3
  167.     scale <0.30, .20, 1>
  168.     translate <0.1, 0.1, 0.20>
  169. }
  170.  
  171.  
  172. #declare P_WoodGrain6A =
  173. pigment {
  174.     wood 
  175.     turbulence <0.05, 0.08, 1>
  176.     octaves 4
  177.     scale <0.15, .15, 1>
  178.     translate -x*100
  179. }
  180.  
  181. #declare P_WoodGrain6B =
  182. pigment {
  183.     wood  
  184.     turbulence <0.05, 0.05, 0>
  185.     octaves 4
  186.     omega 0.95
  187.     scale <0.20, 0.20, 1>             
  188.     rotate x*20
  189. }
  190.  
  191.  
  192. #declare P_WoodGrain7A =
  193. pigment {
  194.     wood
  195.     turbulence <0.05, 0.08, 1000>
  196.     octaves 4
  197.     scale <0.15, .15, 1>
  198. }
  199.  
  200. #declare P_WoodGrain7B =
  201. pigment {
  202.     bozo
  203.     scale <0.01, 0.01, 100000>
  204. }
  205.  
  206.  
  207. #declare P_WoodGrain8A =
  208. pigment {
  209.     wood
  210.     turbulence 0.04
  211.     octaves 3
  212.     scale <0.05, .05, 1>
  213. }
  214.  
  215. #declare P_WoodGrain8B =
  216. pigment {
  217.     wood
  218.     turbulence <0.04, 0.04, 1>
  219.     octaves 4
  220.     scale <0.05, 0.05, 1> * 0.66
  221. }
  222.  
  223.  
  224. #declare P_WoodGrain9A =
  225. pigment {
  226.     wood  
  227.     turbulence 0.1
  228.     octaves 4
  229.     lambda 3
  230.     scale 0.2
  231.     rotate <0.125, 0.125, 0>
  232. }
  233.  
  234. #declare P_WoodGrain9B =
  235. pigment {
  236.     wood
  237.     turbulence 0.1          
  238.     octaves 4
  239.     lambda 3.5
  240.     scale 0.2
  241.     rotate <0.125, 0.125, 0>
  242.     translate <0.015, 0.015, 0.015>
  243. }
  244.  
  245.  
  246. #declare P_WoodGrain10A =
  247. pigment {
  248.     wood  
  249.     turbulence 0.02
  250.     octaves 4
  251.     lambda 3
  252.     scale 0.175
  253.     rotate <2, 2, 0>
  254. }
  255.  
  256.  
  257. #declare P_WoodGrain10B =
  258. pigment {
  259.     wood
  260.     turbulence 0.02
  261.     octaves 4
  262.     lambda 2.8
  263.     scale 0.2
  264.     rotate <2, 2, 0>
  265.     translate <0.0175, 0.0175, 0.0175>
  266. }
  267.  
  268.  
  269. #declare P_WoodGrain11A =
  270. pigment {
  271.     wood
  272.     turbulence 0.02
  273.     scale 0.1
  274.     translate <10, 0, 0>
  275. }
  276.  
  277. #declare P_WoodGrain11B =
  278. pigment {
  279.     wood
  280.     turbulence 0.01
  281.     scale 0.5
  282.     translate <10, 0, 0>
  283. }
  284.  
  285.  
  286. #declare P_WoodGrain12A =
  287. pigment {
  288.     bozo
  289.     turbulence 0.04
  290.     lambda 2.5
  291.     omega 0.1
  292.     octaves 7
  293.     scale <0.5, 0.05, 0.05>
  294. }
  295.  
  296. #declare P_WoodGrain12B =
  297. pigment {
  298.     wood
  299.     turbulence <0.1, 0.04, 1>
  300.     scale <0.15, 0.5, 1>
  301. //    translate <10, 0, 0>
  302.     rotate x*2
  303. }
  304.  
  305.  
  306. #declare P_WoodGrain13A =
  307. pigment {
  308.     wood
  309.     turbulence 0.02
  310.     scale 0.1
  311.     translate <10, 0, 0>
  312. }
  313.  
  314. #declare P_WoodGrain13B =
  315. pigment {
  316.     wood
  317.     turbulence 0.01
  318.     scale 0.05 
  319. //    translate <10, 0, 0>
  320. }
  321.  
  322.  
  323. #declare P_WoodGrain14A =
  324. pigment {
  325.     wood
  326.     colour_map { M_Wood14A }
  327.     turbulence 0.065
  328.     octaves 2
  329.     scale <0.15, .15, 1>
  330.     translate < -1 0 0 >
  331.     rotate <-3, -3, 0>
  332. }
  333.  
  334. #declare P_WoodGrain14B=
  335. pigment {
  336.     wood
  337.     colour_map { M_Wood14B }
  338.     turbulence <0, 0.1, 0>
  339.     lambda 2.75
  340.     omega 1.15
  341.     octaves 4
  342.     scale <5, 0.075, 1>
  343.     rotate x*90
  344. }
  345.  
  346.  
  347. #declare P_WoodGrain15A =
  348. pigment {
  349.     bozo
  350.     colour_map { M_Wood15A }
  351.     turbulence 0.04
  352.     scale <0.05 0.05 1>
  353. }
  354.  
  355.  
  356. #declare P_WoodGrain15B =
  357. pigment {
  358.     wood
  359.     colour_map { M_Wood15B }
  360.     scale <0.20 0.20 1>
  361.     turbulence 0.04
  362.     rotate <-2, 2, 0>
  363. }
  364.  
  365.  
  366. #declare P_WoodGrain16A =
  367. pigment {
  368.     bozo
  369.     colour_map { M_Wood16A }
  370.     turbulence 0.04
  371.     scale <0.02 0.02 1>
  372. }
  373.  
  374.  
  375. #declare P_WoodGrain16B =
  376. pigment {
  377.     wood
  378.     colour_map { M_Wood16B }
  379.     scale <0.075 0.075 1>
  380.     turbulence 0.035
  381.     rotate <-2, 2, 0>
  382. }
  383.  
  384.  
  385. #declare P_WoodGrain17A = 
  386. pigment {
  387.     wood
  388.     colour_map { M_Wood17A }
  389.     turbulence 0.04
  390.     omega 0.4
  391.     scale <0.1 0.1 1>
  392.     rotate -x*4
  393. }
  394.  
  395. #declare P_WoodGrain17B =
  396. pigment {
  397.     wood
  398.     colour_map { M_Wood17B }
  399.     turbulence 0.05
  400.     omega 0.65
  401.     scale <0.2 0.2 1>
  402.     rotate -x*2
  403. }
  404.  
  405. #declare P_WoodGrain18A =
  406. pigment {
  407.     wood
  408.     colour_map { M_Wood18A }
  409.     turbulence 0.02
  410.     octaves 4
  411.     lambda 4
  412. //    scale 0.3
  413.     scale 0.1
  414.     rotate <2, 0, 0>
  415. }
  416.  
  417.  
  418. #declare P_WoodGrain18B =
  419. pigment {
  420.     wood
  421.     colour_map { M_Wood18B }
  422.     turbulence 0.02
  423.     octaves 6
  424.     lambda 2.8
  425.     omega 0.6
  426. //    scale 0.1
  427.     scale 0.05
  428.     rotate <2, 0, 0>
  429. }
  430.  
  431. #declare P_WoodGrain19A =
  432. pigment {
  433.     wood
  434.     scale <0.075, 0.075, 1>
  435.     turbulence 0.065
  436.     omega 0.45
  437.     lambda 2.3
  438.     color_map { M_Wood19A }
  439.     rotate x*4
  440. }
  441. #declare P_WoodGrain19B =
  442. pigment {
  443.