home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TopWare 18: Liquid
/
Image.iso
/
liquid
/
top1089
/
polyray.pi
< prev
next >
Wrap
Text File
|
1993-11-22
|
1KB
|
50 lines
// Polyray input File for RDS generation
// Set up the camera
viewpoint {
from <0,0,6>
at <0,0,0>
up <0,1,0>
angle 30
resolution 640, 480
aspect 4/3
}
// Light the scene
light <-24, 8, -24>
// Define color of CSG object
define hot_red
texture {
surface {
ambient red, 1
specular white, 0.3
microfacet Reitz 10
}
}
/* object{
disc <0, 0, -1>, <0, 0, 1>, 20
texture{ surface{ ambient black, 1 } }
} */
// Define primitives for CSG shape
define cyl1 object { cylinder <5, 0, 0>, <-5, 0, 0>, 0.5 }
define cyl2 object { cylinder <0, 5, 0>, <0, -5, 0>, 0.5 }
define cyl3 object { cylinder <0, 0, 5>, <0, 0, -5>, 0.5 }
define sphere1 object { sphere <0, 0, 0>, 1 }
// Define a CSG shape by deleting three cylinders from the sphere
object {
object { sphere1 hot_red } -
object { cyl1 } -
object { cyl2 } -
object { cyl3 }
rotate <45, 45, 0>
translate <0, 0, -1>
}