Category : Printer + Display Graphics
Archive   : PLYDAT.ZIP
Filename : SINFN.PI

 
Output of file : SINFN.PI contained in archive : PLYDAT.ZIP

# File demonstrating height field function
# Polyray input file: Alexander Enzmann

# Define range of frames for animated sequence of images
#start_frame 0
#total_frames 29
#outfile sinsf

define theta_offset radians(frame * 12)

# Set up the camera
viewpoint {
from <0,5,-5>
at <0,0,0>
up <0,1,0>
angle 30
resolution 256, 256
}

# Get various surface finishes
include "colors.inc"

# Set up background color & lights
background SkyBlue
light <10,10,-10>

# Define a sinusoidal surface
object {
height_fn 80, -2, 2, -2, 2, 0.25 * sin(18.85 * x * z + theta_offset)
shiny_red
}