home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
pvrayfiles
/
Twister
/
TwistTest
Wrap
Text File
|
1988-06-16
|
1KB
|
73 lines
// Persistence of Vision Raytracer
// Sample File
// © Scintillating Graphics Co.
// To test the little twister program.
// In order to render, you will need to drag the accompanying file
// "Twisted" into the "Inc" directory inside the PVRay appliaction.
#include "<PVRay$Dir>.Dat.Colors"
#include "<PVRay$Dir>.Dat.Shapes"
#include "<PVRay$Dir>.Dat.Textures"
{// helix - comment the other one out to create a helix.
#declare OS = quadric
QSphere
Translate <2.0 0.0 0.0>
end_quadric}
// macaroni
#declare OS = quadric
QSphere
scale <3.0 1.0 1.0>
end_quadric
#include "<PVLib$Dir>.Inc.Twisted"
object
Twist
bounded_by
quadric
Cylinder_Y
scale <3.0 1.0 3.0>
end_quadric
end_bound
texture
colour CRed
phong 0.4
phongsize 60
end_texture
end_object
object
plane <0.0 1.0 0.0> -2 end_plane
texture
colour CBlue
end_texture
end_object
object
plane <0.0 0.0 1.0> -100 end_plane
texture
colour CGreen
end_texture
end_object
object
sphere <0 0 0> 1 end_sphere
texture
colour White
end_texture
light_source
colour White
translate <5 20 -20>
end_object
view_point
location <0 2 -10>
direction <0 0 1>
up <0 1 0>
right <1.3 0 0>
end_view_point