home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ANews 3
/
AnewsCD3.iso
/
atari
/
GRAPHX
/
POV
/
68030.060
/
POV31G30
/
POVRAY_3.1G
/
INCLUDE
/
WOODS.INC
< prev
Wrap
Text File
|
1999-10-30
|
19KB
|
732 lines
#ifdef(Woods_Inc_Temp)
// do nothing
#else
#declare Woods_Inc_Temp=version;
#ifdef(View_POV_Include_Stack)
# debug "including woods.inc\n"
#end
#include "woodmaps.inc"
/*
Persistence of Vision Raytracer Version 3.1
Basic wooden textures
Credits:
Textures T_Wood1 through T_Wood30 by Dan Farmer
Textures T_Wood31 through T_Wood35 contributed by
Paul Novak, 75274.1613@compuserve.com
Notes on layered textures T_Wood1 through T_Wood30:
The pigment definitions:
========================
Declares pigments P_Woodgrain1A through P_Woodgrain19A and
P_Woodgrain1B through P_Woodgrain19B. The only difference between the
"A" designations and the "B" designations is in design. The "A"'s
were designed to generally work better as underlying patterns, using
opaque color_maps, while the "B" pigments were designed to work
better as top layers, with some degree of transparency in their
color_maps.
The pigments with the "A" and "B" designations are combinations that
were designed to work well together, but do not neccessarily have to
be used as pairs.
These pigment definitions do not have colormaps assigned so
that they can mix 'n matched in various combinations by the user when
designing their own colors. In this file, the color_maps are added at
the point of defining the final textures.
The color_map definitions:
==========================
These are declared in the #include file "woodmaps.inc". They are
named M_Wood1A through M_Wood19A and M_Wood1B through M_Wood19B.
There are two types of declarations in woodmaps.inc. The "A" color_maps
are intended as the 1st layer of multi-layer textures, but many work
well by themselves, as well.
The "B" color_maps contain transparent colors and are intended for
use as top layers to influence the "A" maps.
The wood textures
=================
Here the various P_WoodGrainx textures are combined with color_maps to
create textures named T_Wood1 through T_Wood30.
General
=======
Wood textures are designed with the major axis of the woodgrain
"cylinder" aligned along the Z axis. With the exception of the few
of the textures below that have a small amount of x-axis rotation
built-in, the textures below will exhibit a very straight grain
pattern unless you apply a small amount of x-axis rotation to them
(generally 2 to 4 degrees seems to work well).
*/
#declare P_WoodGrain1A =
pigment {
wood
turbulence 0.04
octaves 3
scale <0.05, .05, 1>
}
#declare P_WoodGrain1B =
pigment {
wood
turbulence <0.1, 0.5, 1>
octaves 5
lambda 3.25
scale <0.15, .5, 1>
rotate <5, 10, 5>
translate -x*2
}
#declare P_WoodGrain2A =
pigment {
wood
turbulence 0.04
octaves 3
scale <0.15, .15, 1>
}
#declare P_WoodGrain2B =
pigment {
wood
turbulence <0.1, 0.35, 0.1>
octaves 5
lambda 3.25
scale <0.25, .25, 1>
rotate <5, 10, 5>
translate -x*2
}
#declare P_WoodGrain3A =
pigment {
wood
turbulence 0.04
octaves 3
scale <0.05, .05, 1>
rotate <2,2,0>
}
#declare P_WoodGrain3B =
pigment {
wood
turbulence <0.1, 0.5, 1>
octaves 5
lambda 3.25
scale <0.15, .5, 1>
rotate <5, 10, 5>
translate -x*2
}
#declare P_WoodGrain4A =
pigment {
wood
turbulence 0.04
octaves 4
omega 1.25
scale <0.15, .15, 1>
}
#declare P_WoodGrain4B =
pigment {
bozo
turbulence <0.03, 0.03, 0.1>
octaves 5
lambda 3.25
scale <0.025, .025, 1.0>
}
#declare P_WoodGrain5A =
pigment {
wood
turbulence <0.04, 0.04, 0.1>
octaves 4
omega 1.25
scale <0.15, .15, 1>
}
#declare P_WoodGrain5B =
pigment {
wood
turbulence <0.025, 0.025, 0.1>
octaves 4
omega 1.3
scale <0.30, .20, 1>
translate <0.1, 0.1, 0.20>
}
#declare P_WoodGrain6A =
pigment {
wood
turbulence <0.05, 0.08, 1>
octaves 4
scale <0.15, .15, 1>
translate -x*100
}
#declare P_WoodGrain6B =
pigment {
wood
turbulence <0.05, 0.05, 0>
octaves 4
omega 0.95
scale <0.20, 0.20, 1>
rotate x*20
}
#declare P_WoodGrain7A =
pigment {
wood
turbulence <0.05, 0.08, 1000>
octaves 4
scale <0.15, .15, 1>
}
#declare P_WoodGrain7B =
pigment {
bozo
scale <0.01, 0.01, 100000>
}
#declare P_WoodGrain8A =
pigment {
wood
turbulence 0.04
octaves 3
scale <0.05, .05, 1>
}
#declare P_WoodGrain8B =
pigment {
wood
turbulence <0.04, 0.04, 1>
octaves 4
scale <0.05, 0.05, 1> * 0.66
}
#declare P_WoodGrain9A =
pigment {
wood
turbulence 0.1
octaves 4
lambda 3
scale 0.2
rotate <0.125, 0.125, 0>
}
#declare P_WoodGrain9B =
pigment {
wood
turbulence 0.1
octaves 4
lambda 3.5
scale 0.2
rotate <0.125, 0.125, 0>
translate <0.015, 0.015, 0.015>
}
#declare P_WoodGrain10A =
pigment {
wood
turbulence 0.02
octaves 4
lambda 3
scale 0.175
rotate <2, 2, 0>
}
#declare P_WoodGrain10B =
pigment {
wood
turbulence 0.02
octaves 4
lambda 2.8
scale 0.2
rotate <2, 2, 0>
translate <0.0175, 0.0175, 0.0175>
}
#declare P_WoodGrain11A =
pigment {
wood
turbulence 0.02
scale 0.1
translate <10, 0, 0>
}
#declare P_WoodGrain11B =
pigment {
wood
turbulence 0.01
scale 0.5
translate <10, 0, 0>
}
#declare P_WoodGrain12A =
pigment {
bozo
turbulence 0.04
lambda 2.5
omega 0.1
octaves 7
scale <0.5, 0.05, 0.05>
}
#declare P_WoodGrain12B =
pigment {
wood
turbulence <0.1, 0.04, 1>
scale <0.15, 0.5, 1>
// translate <10, 0, 0>
rotate x*2
}
#declare P_WoodGrain13A =
pigment {
wood
turbulence 0.02
scale 0.1
translate <10, 0, 0>
}
#declare P_WoodGrain13B =
pigment {
wood
turbulence 0.01
scale 0.05
// translate <10, 0, 0>
}
#declare P_WoodGrain14A =
pigment {
wood
colour_map { M_Wood14A }
turbulence 0.065
octaves 2
scale <0.15, .15, 1>
translate < -1 0 0 >
rotate <-3, -3, 0>
}
#declare P_WoodGrain14B=
pigment {
wood
colour_map { M_Wood14B }
turbulence <0, 0.1, 0>
lambda 2.75
omega 1.15
octaves 4
scale <5, 0.075, 1>
rotate x*90
}
#declare P_WoodGrain15A =
pigment {
bozo
colour_map { M_Wood15A }
turbulence 0.04
scale <0.05 0.05 1>
}
#declare P_WoodGrain15B =
pigment {
wood
colour_map { M_Wood15B }
scale <0.20 0.20 1>
turbulence 0.04
rotate <-2, 2, 0>
}
#declare P_WoodGrain16A =
pigment {
bozo
colour_map { M_Wood16A }
turbulence 0.04
scale <0.02 0.02 1>
}
#declare P_WoodGrain16B =
pigment {
wood
colour_map { M_Wood16B }
scale <0.075 0.075 1>
turbulence 0.035
rotate <-2, 2, 0>
}
#declare P_WoodGrain17A =
pigment {
wood
colour_map { M_Wood17A }
turbulence 0.04
omega 0.4
scale <0.1 0.1 1>
rotate -x*4
}
#declare P_WoodGrain17B =
pigment {
wood
colour_map { M_Wood17B }
turbulence 0.05
omega 0.65
scale <0.2 0.2 1>
rotate -x*2
}
#declare P_WoodGrain18A =
pigment {
wood
colour_map { M_Wood18A }
turbulence 0.02
octaves 4
lambda 4
// scale 0.3
scale 0.1
rotate <2, 0, 0>
}
#declare P_WoodGrain18B =
pigment {
wood
colour_map { M_Wood18B }
turbulence 0.02
octaves 6
lambda 2.8
omega 0.6
// scale 0.1
scale 0.05
rotate <2, 0, 0>
}
#declare P_WoodGrain19A =
pigment {
wood
scale <0.075, 0.075, 1>
turbulence 0.065
omega 0.45
lambda 2.3
color_map { M_Wood19A }
rotate x*4
}
#declare P_WoodGrain19B =
pigment {