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

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

# the value theta_offset is used in animations to make
# the surface move
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 160, 160
}

define white <1,1,1>
define DarkSlateGray <0.184314, 0.309804, 0.309804>
define red <1, 0, 0>
define SkyBlue <0.196078, 0.6, 0.8>

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

# Define the color of the sphere
define glossy_red
texture {
surface {
ambient red, 0.2
diffuse red, 0.7
specular white, 0.4
}
}

define two_sphere
object { sphere <0,0,0>, 2 }

# Define a sinusoidal surface
object {
function y - 0.25 * sin(18.85 * x * z + theta_offset)
glossy_red
bounds two_sphere
}



  3 Responses to “Category : Printer + Display Graphics
Archive   : PLYDAT.ZIP
Filename : SINSURF.PI

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/