home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
cover.rrt
< prev
next >
Wrap
Text File
|
1980-01-06
|
2KB
|
102 lines
// Real Ray Tracer
// The David F. Rogers cover's book : Procedural elements for computer graphics
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
camera {
location <-5.5 1.4 -8>
point_at <0 0 0>
angle 35
}
environment {
clouds
color_map {
[0 1 color Blue color White ]
}
brightness 1.1
}
object {
light_source { <4 10 -10> intensity 20 color White }
}
object {
light_source { <-6 8 0> intensity 17 color White }
}
#declare Tube = object {
difference {
intersection {
Cylinder_Y
slab { <0 1 0> -0.5 0.5 }
}
object { Cylinder_Y scale <0.95 1 0.95> }
}
scale <0.5 5 0.5>
texture {
Jade
scale <0.8 0.8 0.8>
ambient 0.20
diffuse 0.40
phong 0.25
phong_size 90
}
}
#declare Bowl = object {
sphere { <0 0 0> 0.9 }
texture {
color Yellow
ambient 0.1
diffuse 0.06
reflection 0.25
refraction 0.70
ior 1.7 // glass
phong 0.25
phong_size 90
}
}
#declare Tubex4 = composite {
object { Tube translate <-2 0 -2> }
object { Tube translate <-2 0 2> }
object { Tube translate < 2 0 -2> }
object { Tube translate < 2 0 2> }
}
#declare Toy = object {
bound {
object { Tubex4 }
object { Tubex4 rotate <90 0 0> }
object { Tubex4 rotate <0 0 90> }
object { Bowl translate <-2 -2 -2> }
object { Bowl translate <-2 -2 2> }
object { Bowl translate <-2 2 -2> }
object { Bowl translate <-2 2 2> }
object { Bowl translate < 2 -2 -2> }
object { Bowl translate < 2 -2 2> }
object { Bowl translate < 2 2 -2> }
object { Bowl translate < 2 2 2> }
}
by box { <-2.9 -2.9 -2.9> <2.9 2.9 2.9> }
}
object { Toy }
object { Toy translate <-2 0 6> }
object {
plane { <0 1 0> -2.9 }
texture {
checker
texture { Red_Marble scale <0.3 0.3 0.3> diffuse 0.30 }
texture { White_Marble scale <0.25 0.25 0.25> diffuse 0.30 }
scale <3 0 3>
ambient 0.10
diffuse 0.25
}
}
end.