home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #7
/
amigamamagazinepolishissue1998.iso
/
varia
/
povray3
/
povray3_fpu
/
povscn
/
level2
/
waterbow.pov
< prev
next >
Wrap
Text File
|
1997-12-12
|
3KB
|
118 lines
// Persistence Of Vision raytracer version 3.0 sample file.
// File by Various and Sundry
// Revision Note:
// Reworked both the declared wood texture (turb and colormap) and
// the application of it on the floor plane.
// Note that wood doesn't really look like much until you get around
// 640x480. Anti-aliasing helps even more to bring out the detail. -dmf
#version 3.0
global_settings { assumed_gamma 1.0 }
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
// a light tan wood with brown rings
#declare New_Tan_Wood = pigment {
wood
turbulence 0.03
colour_map {
[0.0 0.4 colour red 0.6 green 0.45 blue 0.25
colour red 0.65 green 0.45 blue 0.25]
[0.4 1.01 colour red 0.6 green 0.4 blue 0.2
colour red 0.25 green 0.15 blue 0.05]
}
}
camera {
location <0, 25, -40>
up y
right x*4/3
direction z
look_at 0
}
// A bowl
intersection {
sphere { <0.0, 0.0, 0.0>, 1.0 }
sphere { <0.0, 0.0, 0.0> 0.9 inverse }
plane { y, 0.5 }
scale 20.0
pigment { Black }
normal {
wrinkles 0.5
scale 2
}
finish {
reflection 0.6
}
}
// Water
union {
disc { 0, y, 17.2 translate y*9.14
pigment { Blue }
finish {
reflection 0.6
}
}
disc { 0, y, 17.2 translate y*9.15
pigment { White filter 0.95}
normal {
ripples 0.5
frequency 100.0
scale 100.0
}
finish {
reflection 0.3
refraction 0.6
ior 1.2
}
}
}
// Wood floor
plane { y, -20.0
pigment { // seems to reduce "moire" effect on the grain
New_Tan_Wood // Think of a log, facing you...
scale <2, 2, 1> // z is infinite, so 1 is ok...
rotate <0, 90, 0> // turn the "log" to the x axis
rotate <0.0, 0.0, 10.0> // tilt the log just a little bit
translate <0, -4, 0> // lift it to where the rings are larger
rotate <5, 0, 0> // tip it again, this time on x axis
warp { repeat z*50 offset <0.1, 0.1, 0.1> flip y }
}
finish {
crand 0.015
ambient 0.15
diffuse 0.35
}
}
// Back wall
plane { z, 100.0
pigment {
Red_Marble
scale 100.0
}
finish {
ambient 0.15
diffuse 0.15
}
}
// A sky to reflect in the water
plane { y, 150.0
pigment { colour red 0.5 green 0.5 blue 1.0 }
finish {
ambient 1
}
}
// Light source
light_source { <100.0, 120.0, -130.0> colour White }