Category : Printer + Display Graphics
Archive   : PLYDAT16.ZIP
Filename : MAP1.PI

 
Output of file : MAP1.PI contained in archive : PLYDAT16.ZIP
// Sample file demonstrating the mapping of an image onto a box
// Polyray input file: Alexander Enzmann

viewpoint {
from <0,3,-10>
at <0,0,5>
up <0,1,0>
angle 45
resolution 160, 160
}

// Get various surface finishes
include "..\colors.inc"

// Set up background color & lights
background <0, 0, 0>
light white, <10, 20, -50>

// Pull in a Targa file
define ball_image image("m22u.tga")
define box_image_texture
texture {
special surface {
color planar_imagemap(ball_image, P, 1)
ambient 0.2
diffuse 0.8
}
}

define ball_image_texture
texture {
special surface {
color spherical_imagemap(ball_image, P)
ambient 0.2
diffuse 0.8
}
}

define can_image_texture
texture {
special surface {
color cylindrical_imagemap(ball_image, P, 1)
ambient 0.2
diffuse 0.8
}
}

define basic_box object { box <-2, 0, -2>, <2, 1, 2> }

basic_box {
box_image_texture { scale <2, 1, 2> }
rotate <-30, 30, 0>
translate <1, 0, -1>
}

object {
sphere <0, 0, 0>, 1
ball_image_texture
rotate <30, 45, 0>
translate <0, 3, 0>
}

object {
cylinder <0, 0, 0>, <0, 3, 0>, 1
can_image_texture { rotate <0, 180, 0> } // { scale <1, 3, 1> }
translate <-3, 0, 1>
}

// Create a ground plane
object {
disc <0, -0.001, 0>, <0, 1, 0>, 0, 1000
texture { checker matte_white, matte_black }
scale <10, 10, 10>
translate <0,-0.01,0>
}


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