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

 
Output of file : BOXES.PI contained in archive : PLYDAT.ZIP
# File demonstrating boxes
# Polyray input file: Alexander Enzmann

# Set up the camera
viewpoint {
from <0,8,-28>
at <0,0,10>
up <0,1,0>
angle 45
hither 1
resolution 160, 160
}

# Get various surface finishes
background <0, 0, 0>
light <1, 1, 1>, <-10,10, -5>
light <1, 1, 1>, <30, 5, 0>

# Set up background color & lights
include "colors.inc"

# Define a short pyramid made out of progressively smaller boxes
define pyramid
object {
object { box <-1, 3, -1>, <1, 4, 1> }
+ object { box <-2, 2, -2>, <2, 3, 2> }
+ object { box <-3, 1, -3>, <3, 2, 3> }
+ object { box <-4, 0, -4>, <4, 1, 4> }
matte_blue
}

# Put together a couple of pyramids, a connecting box, and a couple of spheres
object {
object { sphere <-6, 7, 0>, 1 shiny_red }
+ object { sphere < 6, 7, 0>, 1 shiny_green }
+ pyramid { translate <-6, 0, 0> }
+ pyramid { translate < 6, 0, 0> }
+ object { box <-6.5, 4, -0.5>, <6.5, 5, 0.5> matte_blue }
rotate <0, 30, 0>
}

# Create a ground plane
object {
polynomial y + 0.01
texture { checker matte_white, matte_black }
scale <10, 10, 10>
translate <0,-0.01,0>
}


  3 Responses to “Category : Printer + Display Graphics
Archive   : PLYDAT.ZIP
Filename : BOXES.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/