home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 1995 January
/
pcw-0195.iso
/
polymore
/
fig2-7.pi
< prev
next >
Wrap
Text File
|
1994-09-25
|
647b
|
38 lines
// "HEXAGON.PI" OR FIG2-7.PI
include "d:\polyray\include\colors.inc"
//////////////////////////////////
// The scene starts here
// Make a hexagon floor in red, white and blue
// PLANE (Polygon)
object {
polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
translate <0, -1, 0>
texture { hexagon matte_red, matte_white, matte_blue }
}
// Sphere
object
{
sphere<0, 0, 5>, 4
shiny_red
}
// The scene ends here
//////////////////////////////////
// Lights!
light<-5, 5, -5>
// Camera!
viewpoint
{
from <0, 0, -1>
at <0, 0, 5>
up <0, 1, 0>
aspect 1.6
}